Statistics
| Branch: | Tag: | Revision:

mininet / examples / tree1024.py @ 51270ce4

History | View | Annotate | Download (380 Bytes)

1
#!/usr/bin/python
2

    
3
"""
4
Create a 1024-host network, and run the CLI on it.
5
If this fails because of kernel limits, you may have
6
to adjust them, e.g. by adding entries to /etc/sysctl.conf
7
and running sysctl -p.
8
"""
9
   
10
from mininet.mininet import init, TreeNet, Cli
11

    
12
if __name__ == '__main__':
13
   init()
14
   network = TreeNet( depth=2, fanout=32, kernel=True )
15
   network.run( Cli )