3 # vim: sw=4 ts=4 sts=4 et tw=72 :
5 # force any errors to cause the script and job to end in failure
8 # Ensure that necessary variables are set to enable noninteractive mode in
10 export DEBIAN_FRONTEND=noninteractive
12 # To handle the prompt style that is expected all over the environment
13 # with how use use robotframework we need to make sure that it is
14 # consistent for any of the users that are created during dynamic spin
16 echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
18 echo '---> Install OpenVSwitch 2.6.1'
20 apt-get install dh-autoreconf debhelper autoconf automake libssl-dev pkg-config bzip2 openssl python-all procps python-qt4 python-zopeinterface python-twisted-conch
24 wget http://openvswitch.org/releases/openvswitch-2.6.1.tar.gz
25 tar -xzvf openvswitch-2.6.1.tar.gz -C /root/ovs --strip-components=1
27 DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
29 dpkg -i openvswitch-common_2.6.1-1_amd64.deb openvswitch-switch_2.6.1-1_amd64.deb python-openvswitch_2.6.1-1_all.deb openvswitch-vtep_2.6.1-1_amd64.deb
30 systemctl unmask openvswitch-switch
31 service openvswitch-switch start
32 service openvswitch-vtep start
33 echo '---> Waiting 15 secs for services to start'
39 echo '---> Finished installing OpenVSwitch 2.6.1'
41 echo '---> Installing mininet'
42 apt-get install mininet
44 echo '---> Installing build pre-requisites'
45 apt-get install build-essential snmp libsnmp-dev snmpd libpcap-dev \
46 autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
48 git clone https://github.com/intracom-telecom-sdn/mtcbench.git
49 mtcbench/deploy/docker/provision.sh
50 # TODO: remove workaround for build issue with mtcbench
51 # when mtcbench dependency build correctly
52 # https://github.com/intracom-telecom-sdn/mtcbench/issues/10
53 mtcbench/build_mtcbench.sh || true
54 cd mtcbench/oflops/cbench
56 cp cbench /usr/local/bin/
58 echo '---> Installing exabgp'
59 apt-get install exabgp
61 # Install vlan for vlan based tests in VTN suites
64 # Install netaddr package which is needed by some custom mininet topologies
65 apt-get install python-netaddr
67 # Check out quagga , compile and install for router functionalities
68 echo "Installing the Quagga..."
69 mkdir -p /tmp/build_quagga
71 git clone https://github.com/6WIND/zrpcd.git
74 chmod a+x /tmp/build_quagga/zrpcd/pkgsrc/dev_compile_script.sh
75 /tmp/build_quagga/zrpcd/pkgsrc/dev_compile_script.sh -d -b -t
77 # Removing the build_quagga folder
78 rm -rf /tmp/build_quagga/