feat(ncs-node01,ncs-node02,ncs-wedge): Setup namespace and interface config and switch configs for l1switch
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
28
scripts/04-wedge_route_configure.py
Normal file
28
scripts/04-wedge_route_configure.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# from bf_shell
|
||||
bfrt_python
|
||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||
egress_port=266, dst_addr="10.0.1.1"
|
||||
)
|
||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||
egress_port=267, dst_addr="10.0.1.2"
|
||||
)
|
||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||
egress_port=265, dst_addr="10.0.1.3"
|
||||
)
|
||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||
egress_port=264, dst_addr="10.0.1.4"
|
||||
)
|
||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||
egress_port=256, dst_addr="10.0.2.1"
|
||||
)
|
||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||
egress_port=258, dst_addr="10.0.2.2"
|
||||
)
|
||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||
egress_port=257, dst_addr="10.0.2.3"
|
||||
)
|
||||
bfrt.l1switch.pipe.SwitchIngress.t_l1_forwarding.add_with_send(
|
||||
egress_port=258, dst_addr="10.0.2.4"
|
||||
)
|
||||
|
||||
bfrt.complete_operations()
|
||||
Reference in New Issue
Block a user