summaryrefslogtreecommitdiffstats
path: root/vagrant/bootstrap.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-05-12 13:43:35 +0000
committerGerrit Code Review <gerrit@onap.org>2017-05-12 13:43:35 +0000
commit00929652c87ccd38b2d526bd2d382c31673928ab (patch)
treeb4023832790f0ec67f396a67edf00db468af2db7 /vagrant/bootstrap.sh
parent1eedef71fae11bc1ceeb8e79543905d3a4905d41 (diff)
parent5a14ee34314b6d500c63dc19523ee4748734c8c0 (diff)
Merge "setup onap demo by vagrant"
Diffstat (limited to 'vagrant/bootstrap.sh')
-rw-r--r--vagrant/bootstrap.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
new file mode 100644
index 00000000..fea28a5e
--- /dev/null
+++ b/vagrant/bootstrap.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+set -ex
+
+sudo apt-get update -y
+sudo apt-get install git -y
+git clone https://github.com/openstack-dev/devstack
+cd devstack; git checkout stable/newton
+sudo apt-get install openvswitch-switch -y
+sudo ovs-vsctl add-br br-ex
+inet=$(ip a | grep 'inet.*enp0s9' | cut -f6 -d' ')
+sudo ip addr flush enp0s9
+sudo ovs-vsctl add-port br-ex enp0s9
+sudo ifconfig br-ex $inet up
+echo "source /vagrant/openrc" >> $HOME/.bash_profile