summaryrefslogtreecommitdiffstats
path: root/pike/vagrant/bootstrap.sh
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2019-09-03 10:27:42 +0800
committersonggongjun <gongjun.song@intel.com>2019-09-03 15:34:49 +0800
commit65c7c6a5801df1c118a87f8741bc06b67dfaa919 (patch)
tree3618a87fc4c530df146dcc71a193aa0032bb2a93 /pike/vagrant/bootstrap.sh
parentce4644f69838660c02afba6f6393e9705cddee40 (diff)
Merge onap and openstack_pike.
Issue-ID: MULTICLOUD-798 Signed-off-by: songgongjun <gongjun.song@intel.com> Change-Id: I13fe7461c0d9c173970b080cdd2cb73dbae930b0
Diffstat (limited to 'pike/vagrant/bootstrap.sh')
-rw-r--r--pike/vagrant/bootstrap.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/pike/vagrant/bootstrap.sh b/pike/vagrant/bootstrap.sh
new file mode 100644
index 00000000..6393353e
--- /dev/null
+++ b/pike/vagrant/bootstrap.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+
+set -e
+
+sudo apt-get update -y
+sudo apt-get install git -y
+git clone https://github.com/openstack-dev/devstack
+cd devstack; git checkout stable/pike
+sudo apt-get install openvswitch-switch -y
+sudo ovs-vsctl add-br br-ex
+ip=$(ip a s eth2 | grep inet | grep -v inet6 | sed "s/.*inet//" | cut -f2 -d' ')
+sudo ip address flush eth2
+sudo ovs-vsctl add-port br-ex eth2
+sudo ip a a $ip dev br-ex
+sudo ip link set dev br-ex up
+sudo ip link set dev eth2 up