diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2018-04-30 09:03:13 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-05-02 09:55:56 +0000 |
commit | 30b088af1c187d7d3abd65030089c2a56f5cf95b (patch) | |
tree | ee427c54a6885d644c69a300407445fefff24628 /docker/bgp_demo/init/init.sh | |
parent | 4b8bef208fc37b09008e3333db9d262d56b94192 (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 'docker/bgp_demo/init/init.sh')
-rwxr-xr-x | docker/bgp_demo/init/init.sh | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/docker/bgp_demo/init/init.sh b/docker/bgp_demo/init/init.sh deleted file mode 100755 index 8ed4cd25c..000000000 --- a/docker/bgp_demo/init/init.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -# Starts and initializes vpp. -# Then starts honeycomb -# - -NODE_ID=$1 -NODE_NAME=vpp$1 - -echo "Enable tuntap interface in startup.conf" -echo -e "tuntap {\n enable\n}\n" >> /etc/vpp/startup.conf - -/hc2vpp/vpp/start.sh & VPP_PID=$! -echo "Waiting 5s for vpp to start" -sleep 5 -VPP_VERSION=$(vppctl show version) -if [ "${VPP_VERSION}" != "" ] -then - echo "VPP started successfully. Version:" - echo "${VPP_VERSION}" -else - echo "VPP failed to start. Stopping initialization script." - exit 1 -fi - -# Configure veth interfaces using VPP CLI -# (not fully supported by hc2vpp 18.01) -echo "Configuring vpp" -vppctl exec /hc2vpp/bgp_demo/init/$NODE_NAME.cmd - -# Update address of interface BGP is listening on -IP="10.12.1.${NODE_ID}" -jshon -s $IP -i "bgp-binding-address" -I -F /opt/honeycomb/config/bgp.json - -# Set AS number -AS_NUMBER=$((65000+NODE_ID)) -jshon -n $AS_NUMBER -i "bgp-as-number" -I -F /opt/honeycomb/config/bgp.json - -# Update module configuration -# Enables BGP and disables some of the modules not used in the example -cp /hc2vpp/bgp_demo/init/*-module-config /opt/honeycomb/modules - -echo "Starting honeycomb" -/hc2vpp/honeycomb/start.sh |