OVS 2.5 image packer script is enhanced for openvswitch-vtep installation
[releng/builder.git] / packer / provision / mininet-ovs-2.5.sh
1 #!/bin/bash
2
3 # vim: sw=4 ts=4 sts=4 et tw=72 :
4
5 # Ensure that necessary variables are set to enable noninteractive mode in
6 # commands.
7 export DEBIAN_FRONTEND=noninteractive
8
9 # To handle the prompt style that is expected all over the environment
10 # with how use use robotframework we need to make sure that it is
11 # consistent for any of the users that are created during dynamic spin
12 # ups
13 echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
14
15 echo '---> Install OpenVSwitch 2.5.0'
16 add-apt-repository -y ppa:sgauthier/openvswitch-dpdk
17 apt-get update -y --force-yes
18 apt-get install -y --force-yes openvswitch-switch openvswitch-vtep
19
20 echo '---> Installing mininet 2.2.2'
21 git clone git://github.com/mininet/mininet
22 cd mininet
23 git checkout -b 2.2.2 2.2.2
24 cd ..
25 mininet/util/install.sh -nf
26
27 echo '---> Installing MT-Cbench'
28 apt-get install -y --force-yes build-essential snmp libsnmp-dev snmpd libpcap-dev \
29 autoconf make automake libtool libconfig-dev libssl-dev libffi-dev libssl-doc pkg-config
30 git clone https://github.com/intracom-telecom-sdn/mtcbench.git
31 mtcbench/build_mtcbench.sh
32 cp mtcbench/oflops/cbench/cbench /usr/local/bin/
33
34 echo '---> Installing exabgp'
35 apt-get install -y --force-yes exabgp
36
37 echo '---> All Python package installation should happen in virtualenv'
38 apt-get install -y --force-yes python-virtualenv python-pip