summaryrefslogtreecommitdiffstats
path: root/examples/docker/mpls_demo/init
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-04-30 09:03:13 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-05-02 09:55:56 +0000
commit30b088af1c187d7d3abd65030089c2a56f5cf95b (patch)
treeee427c54a6885d644c69a300407445fefff24628 /examples/docker/mpls_demo/init
parent4b8bef208fc37b09008e3333db9d262d56b94192 (diff)
Move docker files to examples directory
Change-Id: Ib2eb3dbae76a1e9b5d98ce9e0d5eea9adba280cf Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit e4c58493ce5265ea0d1e17d160c339401c406186)
Diffstat (limited to 'examples/docker/mpls_demo/init')
-rwxr-xr-xexamples/docker/mpls_demo/init/vpp.sh19
-rw-r--r--examples/docker/mpls_demo/init/vpp1.cmd7
-rw-r--r--examples/docker/mpls_demo/init/vpp2.cmd7
-rw-r--r--examples/docker/mpls_demo/init/vpp3.cmd11
-rw-r--r--examples/docker/mpls_demo/init/vpp4.cmd11
5 files changed, 55 insertions, 0 deletions
diff --git a/examples/docker/mpls_demo/init/vpp.sh b/examples/docker/mpls_demo/init/vpp.sh
new file mode 100755
index 000000000..f12cb0a32
--- /dev/null
+++ b/examples/docker/mpls_demo/init/vpp.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Starts and initializes vpp.
+# Then starts honeycomb
+#
+# $1 - node name
+#
+
+/hc2vpp/vpp/start.sh
+echo "Waiting for vpp to start"
+sleep 5
+
+# Configure veth interfaces
+# (not yet fully supported by honeycomb)
+echo "Configuring vpp"
+vppctl exec /hc2vpp/mpls_demo/init/$1.cmd
+
+echo "Starting honeycomb"
+/hc2vpp/honeycomb/start.sh
diff --git a/examples/docker/mpls_demo/init/vpp1.cmd b/examples/docker/mpls_demo/init/vpp1.cmd
new file mode 100644
index 000000000..074c0a175
--- /dev/null
+++ b/examples/docker/mpls_demo/init/vpp1.cmd
@@ -0,0 +1,7 @@
+create host-interface name veth12
+set int state host-veth12 up
+set int ip address host-veth12 10.12.1.1/24
+
+create host-interface name veth13
+set int state host-veth13 up
+set int ip address host-veth13 10.13.1.1/24
diff --git a/examples/docker/mpls_demo/init/vpp2.cmd b/examples/docker/mpls_demo/init/vpp2.cmd
new file mode 100644
index 000000000..e9cac61a1
--- /dev/null
+++ b/examples/docker/mpls_demo/init/vpp2.cmd
@@ -0,0 +1,7 @@
+create host-interface name veth21
+set int state host-veth21 up
+set int ip address host-veth21 10.12.1.2/24
+
+create host-interface name veth24
+set int state host-veth24 up
+set int ip address host-veth24 10.24.1.2/24
diff --git a/examples/docker/mpls_demo/init/vpp3.cmd b/examples/docker/mpls_demo/init/vpp3.cmd
new file mode 100644
index 000000000..7e5a6231d
--- /dev/null
+++ b/examples/docker/mpls_demo/init/vpp3.cmd
@@ -0,0 +1,11 @@
+create host-interface name veth31
+set int state host-veth31 up
+set int ip address host-veth31 10.13.1.3/24
+
+create host-interface name veth341
+set int state host-veth341 up
+set int ip address host-veth341 10.34.1.3/24
+
+create host-interface name veth342
+set int state host-veth342 up
+set int ip address host-veth342 10.34.2.3/24
diff --git a/examples/docker/mpls_demo/init/vpp4.cmd b/examples/docker/mpls_demo/init/vpp4.cmd
new file mode 100644
index 000000000..b3a69eec9
--- /dev/null
+++ b/examples/docker/mpls_demo/init/vpp4.cmd
@@ -0,0 +1,11 @@
+create host-interface name veth42
+set int state host-veth42 up
+set int ip address host-veth42 10.24.1.4/24
+
+create host-interface name veth431
+set int state host-veth431 up
+set int ip address host-veth431 10.34.1.4/24
+
+create host-interface name veth432
+set int state host-veth432 up
+set int ip address host-veth432 10.34.2.4/24