summaryrefslogtreecommitdiffstats
path: root/examples/docker/mpls_demo/run_terminals.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docker/mpls_demo/run_terminals.sh')
-rwxr-xr-xexamples/docker/mpls_demo/run_terminals.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/docker/mpls_demo/run_terminals.sh b/examples/docker/mpls_demo/run_terminals.sh
new file mode 100755
index 000000000..aee7feb94
--- /dev/null
+++ b/examples/docker/mpls_demo/run_terminals.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# Opens connections to hc2vpp containers
+
+xfce4-terminal --title=vpp1 --command="docker exec -it vpp1 \
+ bash -c '/hc2vpp/mpls_demo/init/vpp.sh vpp1; exec $SHELL'"
+
+xfce4-terminal --title=vpp2 --command="docker exec -it vpp2 \
+ bash -c '/hc2vpp/mpls_demo/init/vpp.sh vpp2; exec $SHELL'"
+
+xfce4-terminal --title=vpp3 --command="docker exec -it vpp3 \
+ bash -c '/hc2vpp/mpls_demo/init/vpp.sh vpp3; exec $SHELL'"
+
+xfce4-terminal --title=vpp4 --command="docker exec -it vpp4 \
+ bash -c '/hc2vpp/mpls_demo/init/vpp.sh vpp4; exec $SHELL'"