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
@@ -27,9 +27,7 @@ from mininet.util import irange
class InternetTopo(Topo):
"Single switch connected to n hosts."
def __init__(self, n=2, **opts):
Topo.__init__(self, **opts)
def build(self, n=2, **opts):
# set up inet switch
inetSwitch = self.addSwitch('s0')
# add inet host