p4_testbed/scripts/04-wedge_route_configure.py
2024-12-27 19:09:48 +01:00

29 lines
914 B
Python

# 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()