Update and rename MantenerFIFO to MantenerFIFO.md
[vsorcdistro/.git] / mininet / examples / tree1024.py
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. Check util/sysctl_addon.
8 """
9
10 from mininet.cli import CLI
11 from mininet.log import setLogLevel
12 from mininet.node import OVSSwitch
13 from mininet.topolib import TreeNet
14
15 if __name__ == '__main__':
16     setLogLevel( 'info' )
17     network = TreeNet( depth=2, fanout=32, switch=OVSSwitch )
18     network.run( CLI, network )