748e35d50f
Added new example to create xterms. Other minor changes.
27 lines
675 B
Python
Executable File
27 lines
675 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
"""Create a tree network of depth 4 and fanout 2, and
|
|
test connectivity using pingTest."""
|
|
|
|
from mininet import init, TreeNet, iperfTest
|
|
|
|
def bigTreePing64():
|
|
results = {}
|
|
|
|
print "*** Testing Mininet with kernel and user datapath"
|
|
|
|
for datapath in [ 'kernel', 'user' ]:
|
|
k = datapath == 'kernel'
|
|
results[ datapath ] = []
|
|
for switchCount in range( 1, 4 ):
|
|
network = TreeNet( depth=4, fanout=4, kernel=k )
|
|
testResult = network.run( pingTest )
|
|
results[ datapath ] += testResult
|
|
|
|
print "*** Test results:", results
|
|
|
|
if __name__ == '__main__':
|
|
init()
|
|
linearBandwidthTest()
|
|
|