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 -3
View File
@@ -21,9 +21,7 @@ def runMultiLink():
class simpleMultiLinkTopo( Topo ):
"Simple topology with multiple links"
def __init__( self, n, **kwargs ):
Topo.__init__( self, **kwargs )
def build( self, n, **kwargs ):
h1, h2 = self.addHost( 'h1' ), self.addHost( 'h2' )
s1 = self.addSwitch( 's1' )