Files
mininet/examples/cli.py
T
Brandon Heller 51270ce4a2 Use setuptools to install python files
Now, to reference mininet files, use 'import mininet.mininet'.

PYTHONPATH mods are no longer required for installation.
2009-12-18 12:12:37 -08:00

11 lines
229 B
Python
Executable File

#!/usr/bin/python
"Create a tree network and run the CLI on it."
from mininet.mininet import init, TreeNet, Cli
if __name__ == '__main__':
init()
network = TreeNet( depth=2, fanout=4, kernel=True )
network.run( Cli )