Revision 37e1eafd

View differences:

mininet/node.py
601 601
            raise Exception( 'only contiguous, one-indexed port ranges '
602 602
                            'supported: %s' % self.intfs )
603 603
        intfs = [ self.intfs[ port ] for port in ports ]
604
        self.cmd( 'ovs-dpctl', 'add-if', self.dp, ' '.join( intfs ) )
604
        self.cmdPrint( 'ovs-dpctl', 'add-if', self.dp, ' '.join( intfs ) )
605 605
        # Run protocol daemon
606 606
        controller = controllers[ 0 ]
607 607
        self.cmd( 'ovs-openflowd ' + self.dp +
util/install.sh
35 35

  
36 36
DRIVERS_DIR=/lib/modules/${KERNEL_NAME}/kernel/drivers/net
37 37

  
38
#OVS_RELEASE=openvswitch-1.0.1
39
OVS_RELEASE=openvswitch # release 1.0.1 doesn't work with veth pairs.
40
OVS_DIR=~/$OVS_RELEASE
38
OVS_RELEASE=v1.1.1
39
OVS_DIR=~/openvswitch
41 40
OVS_KMOD=openvswitch_mod.ko
42 41

  
43 42
function kernel {
......
161 160
	#Install OVS from release
162 161
	cd ~/
163 162
	git clone git://openvswitch.org/openvswitch
164
	cd $OVS_RELEASE
163
	cd $OVS_DIR
164
    git checkout $OVS_RELEASE
165 165
	./boot.sh
166 166
    BUILDDIR=/lib/modules/${KERNEL_NAME}/build
167 167
    if [ ! -e $BUILDDIR ]; then

Also available in: Unified diff