carlosmscabral | f40ecd1 | 2013-02-01 18:15:58 -0200 | [diff] [blame] | 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 OVSKernelSwitch |
| 13 | from mininet.topolib import TreeNet |
| 14 | |
| 15 | if __name__ == '__main__': |
| 16 | setLogLevel( 'info' ) |
| 17 | network = TreeNet( depth=2, fanout=32, switch=OVSKernelSwitch ) |
| 18 | network.run( CLI, network ) |