Run in non-verbose mode, and print network sizes.
This commit is contained in:
@@ -69,6 +69,7 @@ def linearBandwidthTest( lengths ):
|
|||||||
hostCount = switchCount + 1
|
hostCount = switchCount + 1
|
||||||
|
|
||||||
for datapath in datapaths:
|
for datapath in datapaths:
|
||||||
|
print "*** testing", datapath, "datapath"
|
||||||
Switch = KernelSwitch if datapath == 'kernel' else UserSwitch
|
Switch = KernelSwitch if datapath == 'kernel' else UserSwitch
|
||||||
results[ datapath ] = []
|
results[ datapath ] = []
|
||||||
net = Mininet( topo=LinearTestTopo( hostCount ), switch=Switch )
|
net = Mininet( topo=LinearTestTopo( hostCount ), switch=Switch )
|
||||||
@@ -79,7 +80,7 @@ def linearBandwidthTest( lengths ):
|
|||||||
print "*** testing bandwidth"
|
print "*** testing bandwidth"
|
||||||
for n in lengths:
|
for n in lengths:
|
||||||
src, dst = net.hosts[ 0 ], net.hosts[ n ]
|
src, dst = net.hosts[ 0 ], net.hosts[ n ]
|
||||||
print "testing", src.name, "<->", dst.name
|
print "testing", src.name, "<->", dst.name,
|
||||||
bandwidth = net.iperf( [ src, dst ] )
|
bandwidth = net.iperf( [ src, dst ] )
|
||||||
print bandwidth
|
print bandwidth
|
||||||
flush()
|
flush()
|
||||||
@@ -99,7 +100,8 @@ def linearBandwidthTest( lengths ):
|
|||||||
print
|
print
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
lg.setLogLevel( 'info' )
|
lg.setLogLevel( 'warning' )
|
||||||
init()
|
init()
|
||||||
print "*** Running linearBandwidthTest"
|
sizes = [ 1, 10, 20 ]
|
||||||
linearBandwidthTest( [ 1, 10, 20 ] )
|
print "*** Running linearBandwidthTest", sizes
|
||||||
|
linearBandwidthTest( sizes )
|
||||||
|
|||||||
Reference in New Issue
Block a user