Statistics
| Branch: | Tag: | Revision:

mininet / examples / treeInteract.py @ 748e35d5

History | View | Annotate | Download (271 Bytes)

1
#!/usr/bin/python
2

    
3
"""Create a tree network and run the CLI on it."""
4

    
5
from mininet import init, TreeNet, Cli
6

    
7
def treeInteract():
8
   network = TreeNet( depth=2, fanout=4, kernel=True )
9
   network.run( Cli )
10
      
11
if __name__ == '__main__':
12
   init()
13
   treeInteract()
14