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 -4
View File
@@ -13,12 +13,9 @@ from mininet.topo import Topo
class MyTopo( Topo ):
"Simple topology example."
def __init__( self ):
def build( self ):
"Create custom topo."
# Initialize topology
Topo.__init__( self )
# Add hosts and switches
leftHost = self.addHost( 'h1' )
rightHost = self.addHost( 'h2' )