Skip to content
Snippets Groups Projects
Commit 6ab1f1ff authored by Bob Lantz's avatar Bob Lantz
Browse files

Run in non-verbose mode, and print network sizes.

parent 736038f8
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,7 @@ def linearBandwidthTest( lengths ):
hostCount = switchCount + 1
for datapath in datapaths:
print "*** testing", datapath, "datapath"
Switch = KernelSwitch if datapath == 'kernel' else UserSwitch
results[ datapath ] = []
net = Mininet( topo=LinearTestTopo( hostCount ), switch=Switch )
......@@ -79,7 +80,7 @@ def linearBandwidthTest( lengths ):
print "*** testing bandwidth"
for n in lengths:
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 ] )
print bandwidth
flush()
......@@ -99,7 +100,8 @@ def linearBandwidthTest( lengths ):
print
if __name__ == '__main__':
lg.setLogLevel( 'info' )
lg.setLogLevel( 'warning' )
init()
print "*** Running linearBandwidthTest"
linearBandwidthTest( [ 1, 10, 20 ] )
sizes = [ 1, 10, 20 ]
print "*** Running linearBandwidthTest", sizes
linearBandwidthTest( sizes )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment