summaryrefslogtreecommitdiffstats
path: root/examples/docker/mpls_demo/init/vpp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docker/mpls_demo/init/vpp.sh')
-rwxr-xr-xexamples/docker/mpls_demo/init/vpp.sh19
1 files changed, 19 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