Skip to content
Snippets Groups Projects
Commit 77131e8f authored by Bob Lantz's avatar Bob Lantz
Browse files

OK, now we run 'routing' for the nox configurations with loops.

Unfortunately, I can't test this at the moment since nox seems not to
be able to find the routing module.

Added/renamed examples: grid.py, tree1024.py

Added -v flag to nox arguments, so we have some chance of figuring
out why nox is dying, as it generally is.
parent c53fa3ba
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,7 @@ rm -f /tmp/vconn* /tmp/vlogs* /tmp/*.out /tmp/*.log ...@@ -26,6 +26,7 @@ rm -f /tmp/vconn* /tmp/vlogs* /tmp/*.out /tmp/*.log
echo "Killing nox" echo "Killing nox"
killall lt-nox_core killall lt-nox_core
killall nox_core
echo "Removing old screen sessions" echo "Removing old screen sessions"
screen -ls | egrep -o '[0-9]+\.[hsc][0-9]+' | sed 's/\.[hsc][0-9]*//g' | kill -9 screen -ls | egrep -o '[0-9]+\.[hsc][0-9]+' | sed 's/\.[hsc][0-9]*//g' | kill -9
......
#!/usr/bin/python
"Instantiate a Grid network and use NOX as the controller."
from mininet import init, Controller, GridNet, Cli
class NoxController( Controller ):
def __init__( self, name, **kwargs ):
Controller.__init__( self, name,
controller='nox_core',
cargs='-v --libdir=/usr/local/lib -i ptcp: routing',
cdir='/usr/local/bin', **kwargs)
if __name__ == '__main__':
init()
network = GridNet( 2, 2, kernel=True, Controller=NoxController)
network.run( Cli )
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
from mininet import createLink, flush from mininet import createLink, flush
class NoxController( Controller ): class NoxController( Controller ):
"A customized Controller that uses NOX." def __init__( self, name, kernel=False **kwargs ):
def __init__( self, name, **kwargs ): Controller.__init__( self, name, kernel=kernel,
Controller.__init__( self, name, controller='nox_core',
controller='nox_core', cargs='-i ptcp pyswitch', cargs='-v --libdir=/usr/local/lib -i ptcp: routing',
cdir='/usr/local/bin', **kwargs) cdir='/usr/local/bin', **kwargs)
class FatTree( Network ): class FatTree( Network ):
......
#!/usr/bin/python
"""
Create a 1024-host network, and run the CLI on it.
If this fails because of kernel limits, you may have
to adjust them, e.g. by adding entries to /etc/sysctl.conf
and running sysctl -p.
"""
from mininet import init, TreeNet
if __name__ == '__main__':
init()
network = TreeNet( depth=2, fanout=32, kernel=True )
network.run( Cli )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment