fixed linearbandwidth and waitconnected

This commit is contained in:
Cody Burkard
2014-07-09 19:24:22 -07:00
parent c23c992f14
commit 3a52ad2f53
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ of switches, this example demonstrates:
""" """
from mininet.net import Mininet from mininet.net import Mininet
from mininet.node import UserSwitch, OVSKernelSwitch from mininet.node import UserSwitch, OVSKernelSwitch, Controller
from mininet.topo import Topo from mininet.topo import Topo
from mininet.log import lg from mininet.log import lg
from mininet.util import irange from mininet.util import irange
@@ -76,7 +76,7 @@ def linearBandwidthTest( lengths ):
print "*** testing", datapath, "datapath" print "*** testing", datapath, "datapath"
Switch = switches[ datapath ] Switch = switches[ datapath ]
results[ datapath ] = [] results[ datapath ] = []
net = Mininet( topo=topo, switch=Switch, waitConnected=True ) net = Mininet( topo=topo, switch=Switch, controller=Controller, waitConnected=True )
net.start() net.start()
print "*** testing basic connectivity" print "*** testing basic connectivity"
for n in lengths: for n in lengths: