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