Replaced example topologies __init__ with build

This commit is contained in:
None committed 2019-01-17 12:01:09 -08:00
1 parent cf6da391fa
commit fdc3156a91
5 files changed
+5 -17

No files matched your search

+1 -2
View File
@@ -100,10 +100,9 @@ class MininetFacade( object ):
class ControlNetwork( Topo ):
"Control Network Topology"
def __init__( self, n, dataController=DataController, **kwargs ):
def build( self, n, dataController=DataController, **kwargs ):
"""n: number of data network controller nodes
dataController: class for data network controllers"""
Topo.__init__( self, **kwargs )
# Connect everything to a single switch
cs0 = self.addSwitch( 'cs0' )
# Add hosts which will serve as data network controllers