Statistics
| Branch: | Tag: | Revision:

mininet / examples / treenet1024.py @ 55dd9368

History | View | Annotate | Download (367 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 import init, TreeNet
11

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