Rename NIC feature
[releng/builder.git] / vagrant / basic-mininet-node / bootstrap.sh
index b606fb1f04f1d6254da965c7b4f8b4ae5f1e61a8..5dbe823cbb53a36849835f6877fad307db0c7c8a 100644 (file)
@@ -51,16 +51,18 @@ Port 830
 Subsystem netconf /usr/bin/netopeer-server-sl
 EOSSH
 
-# set the system up for VTN as well (note we are not adding all the bits
-# to allow VTN to operate in the Hydrogen design erra)
-mkdir /usr/local/vtn
-
-yum install -q -y http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm
-yum install -q -y postgresql93{,-{contrib,libs,server,odbc}}
-chkconfig postgresql-9.3 off
-
-# the current deploy_vtn.sh script used by integration will be pushed
-# into the system during dynamic spin-up as it has changed often enough
-# that sticking it into the image may not be good as changing it would
-# either require updating the image or doing it during the dynamic
-# spin-up anyway.
+# cbench installation for running openflow performance tests
+
+OF_DIR=$HOME/openflow  # Directory that contains OpenFlow code
+OFLOPS_DIR=$HOME/oflops  # Directory that contains oflops repo
+
+yum install -q -y net-snmp-devel libpcap-devel autoconf make automake libtool libconfig-devel
+
+git clone git://gitosis.stanford.edu/openflow.git $OF_DIR &> /dev/null
+git clone https://github.com/andi-bigswitch/oflops.git $OFLOPS_DIR &> /dev/null
+
+cd $OFLOPS_DIR
+./boot.sh &> /dev/null
+./configure --with-openflow-src-dir=$OF_DIR &> /dev/null
+make &> /dev/null
+make install &> /dev/null