From 2f1bcbd5d42fa3eddf726c26140dcf51c16be8ae Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Fri, 27 Dec 2024 19:09:48 +0100 Subject: [PATCH] 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 --- scripts/03-wedge_port_configure.command | 10 ++++++++++ scripts/04-wedge_route_configure.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 scripts/03-wedge_port_configure.command diff --git a/scripts/03-wedge_port_configure.command b/scripts/03-wedge_port_configure.command new file mode 100644 index 0000000..0eb0a93 --- /dev/null +++ b/scripts/03-wedge_port_configure.command @@ -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 diff --git a/scripts/04-wedge_route_configure.py b/scripts/04-wedge_route_configure.py index 824d022..0db8c54 100644 --- a/scripts/04-wedge_route_configure.py +++ b/scripts/04-wedge_route_configure.py @@ -1,5 +1,5 @@ # from bf_shell -bfrt_python +# bfrt_python bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send( egress_port=266, dst_addr="10.0.1.1" )