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 # Temporary workaround required to bring up OVS
23 # post-install without which OVS daemon exits.
24 service openvswitch-switch restart
25 # Verify the OVS service status
26 service openvswitch-switch status
28 echo '---> Installing mininet'
29 apt-get install mininet
31 echo '---> Installing build pre-requisites'
32 apt-get install build-essential snmp libsnmp-dev snmpd libpcap-dev \
33 autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
35 git clone https://github.com/intracom-telecom-sdn/mtcbench.git
36 mtcbench/deploy/docker/provision.sh
37 # TODO: remove workaround for build issue with mtcbench
38 # when mtcbench dependency build correctly
39 # https://github.com/intracom-telecom-sdn/mtcbench/issues/10
40 mtcbench/build_mtcbench.sh || true
41 cd mtcbench/oflops/cbench
43 cp cbench /usr/local/bin/
45 echo '---> Installing exabgp'
46 apt-get install exabgp
48 # Install vlan for vlan based tests in VTN suites
51 # Install netaddr package which is needed by some custom mininet topologies
52 apt-get install python-netaddr