X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Fmininet-ovs-2.5.sh;h=c2ecaa759e99ecea036b28bdec912f4c0a0137ed;hb=f3c96c2c6fcda262b403b04b828dabd08f2175ef;hp=a3d1e423df9957fec48b5f6d3c8974cb9b441a18;hpb=c63f16d4cc357b4e3449ae5f0950be3a5165f221;p=releng%2Fbuilder.git diff --git a/packer/provision/mininet-ovs-2.5.sh b/packer/provision/mininet-ovs-2.5.sh index a3d1e423d..c2ecaa759 100644 --- a/packer/provision/mininet-ovs-2.5.sh +++ b/packer/provision/mininet-ovs-2.5.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x # vim: sw=4 ts=4 sts=4 et tw=72 : @@ -16,32 +16,50 @@ export DEBIAN_FRONTEND=noninteractive echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc echo '---> Install OpenVSwitch 2.5.0' -add-apt-repository -y ppa:sgauthier/openvswitch-dpdk -apt-get update -y --force-yes -apt-get install -y --force-yes openvswitch-switch openvswitch-vtep - -echo '---> Installing mininet 2.2.1' -git clone git://github.com/mininet/mininet -cd mininet -git checkout -b 2.2.1 2.2.1 -cd .. -mininet/util/install.sh -nf - -echo '---> Installing MT-Cbench' -apt-get install -y --force-yes build-essential snmp libsnmp-dev snmpd libpcap-dev \ +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 + +echo '---> Installing build pre-requisites' +apt-get install build-essential snmp libsnmp-dev snmpd libpcap-dev \ autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config + git clone https://github.com/intracom-telecom-sdn/mtcbench.git -mtcbench/build_mtcbench.sh -cp mtcbench/oflops/cbench/cbench /usr/local/bin/ +mtcbench/deploy/docker/provision.sh +# TODO: remove workaround for build issue with mtcbench +# when mtcbench dependency build correctly +# https://github.com/intracom-telecom-sdn/mtcbench/issues/10 +mtcbench/build_mtcbench.sh || true +cd mtcbench/oflops/cbench +make +cp cbench /usr/local/bin/ echo '---> Installing exabgp' -apt-get install -y --force-yes exabgp - -echo '---> All Python package installation should happen in virtualenv' -apt-get install -y --force-yes python-virtualenv python-pip +apt-get install exabgp # Install vlan for vlan based tests in VTN suites -apt-get install -y --force-yes -qq vlan +apt-get install vlan # Install netaddr package which is needed by some custom mininet topologies -apt-get install -y --force-yes -qq python-netaddr +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/