Merge "Move gbp and p-verify definition to releng-packer"
[releng/builder.git] / packer / provision / mininet-ovs-2.5.sh
index 4afb693411b92e81bfed2e27cd01cbd0dcb5d81e..c2ecaa759e99ecea036b28bdec912f4c0a0137ed 100644 (file)
@@ -19,6 +19,12 @@ echo '---> Install OpenVSwitch 2.5.0'
 apt-get update -m
 apt-get install openvswitch-switch openvswitch-vtep
 
+# Temporary workaround required to bring up OVS
+# post-install without which OVS daemon exits.
+service openvswitch-switch restart
+# Verify the OVS service status
+service openvswitch-switch status
+
 echo '---> Installing mininet'
 apt-get install mininet
 
@@ -44,3 +50,16 @@ apt-get install vlan
 
 # Install netaddr package which is needed by some custom mininet topologies
 apt-get install python-netaddr
+
+# Check out quagga , compile and install for router functionalities
+echo "Installing the Quagga..."
+mkdir -p /tmp/build_quagga
+cd /tmp/build_quagga
+git clone https://github.com/6WIND/zrpcd.git
+cd zrpcd
+git checkout 20170731
+chmod a+x /tmp/build_quagga/zrpcd/pkgsrc/dev_compile_script.sh
+/tmp/build_quagga/zrpcd/pkgsrc/dev_compile_script.sh -d -b -t
+
+# Removing the build_quagga folder
+rm -rf /tmp/build_quagga/