Cleanup of doc files.
Fixed xterm.py (and cleanup) to clean up screen sessions. Cleaned up sshd.py (though interface is still in flux.) Added 1024-node network example (treenet1024.py). Added example showing multiple tests on a single network (multitest.py). Renamed examples to make them easier to type!
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
"Create a 64-node tree network, and test connectivity using ping."
|
||||
|
||||
from mininet import init, TreeNet, pingTestVerbose
|
||||
|
||||
def treePing64():
|
||||
results = {}
|
||||
datapaths = [ 'kernel', 'user' ]
|
||||
|
||||
print "*** Testing Mininet with kernel and user datapaths"
|
||||
|
||||
for datapath in datapaths:
|
||||
k = datapath == 'kernel'
|
||||
network = TreeNet( depth=2, fanout=8, kernel=k )
|
||||
result = network.run( pingTestVerbose )
|
||||
results[ datapath ] = result
|
||||
|
||||
print
|
||||
print "*** TreeNet ping results:"
|
||||
for datapath in datapaths:
|
||||
print "%s:" % datapath, results[ datapath ]
|
||||
print
|
||||
|
||||
if __name__ == '__main__':
|
||||
init()
|
||||
treePing64()
|
||||
|
||||
Reference in New Issue
Block a user