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'
37 # We want to see the entire ps output not just the pid
38 # shellcheck disable=SC2009
40 # shellcheck disable=SC2009
42 echo '---> Finished installing OpenVSwitch 2.6.1'
44 echo '---> Installing mininet'
45 apt-get install mininet
47 echo '---> Installing build pre-requisites'
48 apt-get install build-essential snmp libsnmp-dev snmpd libpcap-dev \
49 autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
51 git clone https://github.com/intracom-telecom-sdn/mtcbench.git
52 mtcbench/deploy/docker/provision.sh
53 # TODO: remove workaround for build issue with mtcbench
54 # when mtcbench dependency build correctly
55 # https://github.com/intracom-telecom-sdn/mtcbench/issues/10
56 mtcbench/build_mtcbench.sh || true
57 cd mtcbench/oflops/cbench
59 cp cbench /usr/local/bin/
61 echo '---> Installing exabgp'
62 apt-get install exabgp
64 # Install vlan for vlan based tests in VTN suites
67 # Install netaddr package which is needed by some custom mininet topologies
68 apt-get install python-netaddr