X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Fmininet.sh;h=9274388204f752c3f592037f72b34cbe3edc9d6e;hb=232b598a0a1476a7e48c2de802364849079cedd8;hp=40fb4b5903681496cffb218ab8a2f7325b2fd072;hpb=e9d41b313881d8f71282e504dbf07798b042ff0b;p=releng%2Fbuilder.git diff --git a/packer/provision/mininet.sh b/packer/provision/mininet.sh index 40fb4b590..927438820 100644 --- a/packer/provision/mininet.sh +++ b/packer/provision/mininet.sh @@ -2,6 +2,9 @@ # vim: sw=4 ts=4 sts=4 et tw=72 : +# force any errors to cause the script and job to end in failure +set -xeu -o pipefail + # Ensure that necessary variables are set to enable noninteractive mode in # commands. export DEBIAN_FRONTEND=noninteractive @@ -48,40 +51,11 @@ git apply -p0 < ../newOptions.patch cd ./util ./install.sh -nfv -echo '---> Install CPqD and dependencies' -apt-get install -y --force-yes -qq build-essential cmake flex -apt-get install -y --force-yes -qq libpcre++-dev libxerces-c-dev libpcap-dev libboost-all-dev - -cd /tmp -wget -nc http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.5.dfsg-2.1_amd64.deb \ - http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/libbison-dev_2.5.dfsg-2.1_amd64.deb - -dpkg -i bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb -rm bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb - -wget -nc http://www.nbee.org/download/nbeesrc-jan-10-2013.zip -unzip nbeesrc-jan-10-2013.zip -cd nbeesrc-jan-10-2013/src -cmake . -make -cp ../bin/libn*.so /usr/local/lib -ldconfig -cp -R ../include/* /usr/include/ -cd ../.. - -git clone https://github.com/CPqD/ofsoftswitch13.git -cd ofsoftswitch13 -./boot.sh -./configure -make -make install -cd .. - echo '---> Installing cbench installation for running openflow performance tests' OF_DIR=$HOME/openflow # Directory that contains OpenFlow code OFLOPS_DIR=$HOME/oflops # Directory that contains oflops repo -apt-get install -y --force-yes -qq libsnmp-dev libpcap-dev libconfig-dev +apt-get install -y --force-yes libsnmp-dev libpcap-dev libconfig-dev git clone git://gitosis.stanford.edu/openflow.git $OF_DIR git clone https://github.com/andi-bigswitch/oflops.git $OFLOPS_DIR @@ -93,7 +67,7 @@ make make install echo '---> Installing vlan for vlan based tests in VTN suites' -apt-get install -y --force-yes -qq vlan +apt-get install -y --force-yes vlan -echo '---> All Python package installation should happen in virtualenv' -apt-get install -y --force-yes -qq python-virtualenv python-pip +# Install netaddr package which is needed by some custom mininet topologies +apt-get install -y --force-yes -qq python-netaddr