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.5.0'
20 apt-get install openvswitch-switch openvswitch-vtep
22 echo '---> Installing mininet'
23 apt-get install mininet
25 echo '---> Installing build pre-requisites'
26 apt-get install build-essential snmp libsnmp-dev snmpd libpcap-dev \
27 autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
29 git clone https://github.com/intracom-telecom-sdn/mtcbench.git
30 mtcbench/deploy/docker/provision.sh
31 # TODO: remove workaround for build issue with mtcbench
32 # when mtcbench dependency build correctly
33 # https://github.com/intracom-telecom-sdn/mtcbench/issues/10
34 mtcbench/build_mtcbench.sh || true
35 cd mtcbench/oflops/cbench
37 cp cbench /usr/local/bin/
39 echo '---> Installing exabgp'
40 apt-get install exabgp
42 # Install vlan for vlan based tests in VTN suites
45 # Install netaddr package which is needed by some custom mininet topologies
46 apt-get install python-netaddr