Statistics
| Branch: | Tag: | Revision:

mininet / examples / multitest.py @ 51270ce4

History | View | Annotate | Download (358 Bytes)

1
#!/usr/bin/python
2

    
3
"Run multiple tests on a network."
4
   
5
from mininet.mininet import init, TreeNet, pingTestVerbose, iperfTest, Cli
6

    
7
if __name__ == '__main__':
8
   init()
9
   network = TreeNet( depth=2, fanout=2, kernel=True )
10
   network.start()
11
   network.runTest( pingTestVerbose )
12
   network.runTest( iperfTest)
13
   network.runTest( Cli )
14
   network.stop()