summaryrefslogtreecommitdiffstats
path: root/docker/bgp_demo/run_terminals.sh
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-12-13 12:25:58 +0100
committerMarek Gradzki <mgradzki@cisco.com>2018-01-08 15:11:17 +0000
commit686309091cf77d9b35cf5ae19c80172ad29d68b6 (patch)
tree9c623ddef516d80f2ae981ae0512db8e54e97526 /docker/bgp_demo/run_terminals.sh
parentc127a6e1f1f7c37864bf9e11887cb7b84dfad826 (diff)
BGP-HC docker example
Shows how to announce BGP prefix from one HC instance to another. Configuration (RESTCONF) is done over builtin docker0 network. Data plane is using veth pair that connects containers. BGP is also using veth but via unnumbered tuntap. Change-Id: Ia18b0729e12a4893ba559d0a68a9e962e58d2a2f Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
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'"