Statistics
| Branch: | Tag: | Revision:

mininet / examples / tree1024.py @ c5da46f1

History | View | Annotate | Download (534 Bytes)

1 45e82d09 Bob Lantz
#!/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 11782ae0 Bob Lantz
from mininet.node import OVSKernelSwitch
13 56278434 Bob Lantz
from mininet.topolib import TreeNet
14 41badb96 Bob Lantz
15 45e82d09 Bob Lantz
if __name__ == '__main__':
16
    setLogLevel( 'info' )
17 11782ae0 Bob Lantz
    network = TreeNet( depth=2, fanout=32, switch=OVSKernelSwitch )
18 45e82d09 Bob Lantz
    network.run( CLI, network )