Added ripcord.py, which attempts to make a FatTree using ripcord and

instantiate a mininet Network based on its topology.

Also minor cleanup of nox.py and GridNet class in mininet.py.
This commit is contained in:
Bob Lantz
2009-12-14 21:01:45 -08:00
parent 2f53491343
commit 0b084dd51a
3 changed files with 52 additions and 3 deletions
+2 -2
View File
@@ -578,9 +578,9 @@ class GridNet( Network ):
"""An N x M grid/mesh network of switches, with hosts at the edges.
This class also demonstrates creating a somewhat complicated
topology."""
def __init__( self, n, m, kernel=True, linear=False, **kwargs ):
def __init__( self, n, m, linear=False, **kwargs ):
self.n, self.m, self.linear = n, m, linear and m == 1
Network.__init__( self, kernel, **kwargs )
Network.__init__( self, **kwargs )
def makeNet( self, controller ):
snames, hnames, dpnames = defaultNames()
n, m = self.n, self.m