feat(wedge): Added command script (03) which can be run with bf_shell -f and adjusted python script (04) to run with bf_shell -b
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
10
scripts/03-wedge_port_configure.command
Normal file
10
scripts/03-wedge_port_configure.command
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
ucli
|
||||||
|
pm
|
||||||
|
port-add 31/- 10G NONE
|
||||||
|
an-set 31/- 2
|
||||||
|
port-enb 31/-
|
||||||
|
port-add 32/- 10G NONE
|
||||||
|
an-set 32/- 2
|
||||||
|
port-enb 32/-
|
||||||
|
exit
|
||||||
|
exit
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# from bf_shell
|
# from bf_shell
|
||||||
bfrt_python
|
# bfrt_python
|
||||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||||
egress_port=266, dst_addr="10.0.1.1"
|
egress_port=266, dst_addr="10.0.1.1"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user