blob: 9397131b95e0847374659bad37f9682aa02195a8 [file] [log] [blame]
carlosmscabralf40ecd12013-02-01 18:15:58 -02001#!/usr/bin/python
2
3"""
4Create a 1024-host network, and run the CLI on it.
5If this fails because of kernel limits, you may have
6to adjust them, e.g. by adding entries to /etc/sysctl.conf
7and running sysctl -p. Check util/sysctl_addon.
8"""
9
10from mininet.cli import CLI
11from mininet.log import setLogLevel
12from mininet.node import OVSKernelSwitch
13from mininet.topolib import TreeNet
14
15if __name__ == '__main__':
16 setLogLevel( 'info' )
17 network = TreeNet( depth=2, fanout=32, switch=OVSKernelSwitch )
18 network.run( CLI, network )