5 sudo apt-get install git -y
6 git clone https://github.com/openstack-dev/devstack
7 cd devstack; git checkout stable/newton
8 sudo apt-get install openvswitch-switch -y
9 sudo ovs-vsctl add-br br-ex
10 inet=$(ip a | grep 'inet.*enp0s9' | cut -f6 -d' ')
11 sudo ip addr flush enp0s9
12 sudo ovs-vsctl add-port br-ex enp0s9
13 sudo ifconfig br-ex $inet up
14 echo "source /vagrant/openrc" >> $HOME/.bash_profile