From 352d5b4bf46b58c9cf37aad3165efba2b63fcd41 Mon Sep 17 00:00:00 2001 From: Durbek-Gafur Date: Tue, 30 Aug 2022 16:06:19 -0500 Subject: [PATCH] replaced commented(undeclared) parameter to new switch_interface_args --- .../P4_bmv2/scripts/router_setup_p4_bmv2_container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric_examples/complex_recipes/P4_bmv2/scripts/router_setup_p4_bmv2_container.sh b/fabric_examples/complex_recipes/P4_bmv2/scripts/router_setup_p4_bmv2_container.sh index a9c08ebf..667dcaab 100644 --- a/fabric_examples/complex_recipes/P4_bmv2/scripts/router_setup_p4_bmv2_container.sh +++ b/fabric_examples/complex_recipes/P4_bmv2/scripts/router_setup_p4_bmv2_container.sh @@ -54,7 +54,7 @@ echo Starting switch docker exec -w /root/tutorials/exercises/basic_tunnel fabric_p4 sh -c 'cp basic_tunnel.p4 basic_tunnel.working.p4' docker exec -w /root/tutorials/exercises/basic_tunnel fabric_p4 sh -c 'cp solution/basic_tunnel.p4 basic_tunnel.p4' docker exec -w /root/tutorials/exercises/basic_tunnel fabric_p4 sh -c 'p4c --p4runtime-files basic_tunnel.txt --target bmv2 --arch v1model basic_tunnel.p4' -docker exec -d -it fabric_p4 sh -c 'simple_switch --interface 1@'${port1_iface}' --interface 2@'${port2_iface}' --interface 3@'${port3_iface}' /root/tutorials/exercises/basic_tunnel/basic_tunnel.json' +docker exec -d -it fabric_p4 sh -c 'simple_switch '${switch_interface_args}' /root/tutorials/exercises/basic_tunnel/basic_tunnel.json' #docker exec -it fabric_p4 simple_switch_CLI #sudo sh -c 'cat commands.txt | docker exec -i fabric_p4 simple_switch_CLI --thrift-port 9090 #sudo sh -c 'echo table_dump myTunnel_exact | docker exec -i fabric_p4 simple_switch_CLI --thrift-port 9090 '