Files
mininet/examples/nox.py
T
Bob Lantz 9dbb68df9e Fixed iperf test.
Not sure if I want nox_core -v in nox.py - it's useful for debugging.
ripcordtest.py (and grid.py) still depend on routing, which I haven't been
able to test yet.
2009-12-14 22:37:19 -08:00

18 lines
529 B
Python
Executable File

#!/usr/bin/python
"Instantiate a Tree network and use NOX as the controller."
from mininet import init, Controller, TreeNet, Cli
class NoxController( Controller ):
def __init__( self, name, **kwargs ):
Controller.__init__( self, name,
controller='nox_core',
cargs='--libdir=/usr/local/lib -i ptcp: pyswitch',
cdir='/usr/local/bin', **kwargs)
if __name__ == '__main__':
init()
network = TreeNet( depth=2, fanout=4, kernel=True, Controller=NoxController)
network.run( Cli )