fix kwargs names so they wont spark a warning
This commit is contained in:
@@ -100,7 +100,7 @@ class MininetFacade( object ):
|
|||||||
|
|
||||||
class ControlNetwork( Topo ):
|
class ControlNetwork( Topo ):
|
||||||
"Control Network Topology"
|
"Control Network Topology"
|
||||||
def build( self, n, dataController=DataController, **kwargs ):
|
def build( self, n, dataController=DataController, **_kwargs ):
|
||||||
"""n: number of data network controller nodes
|
"""n: number of data network controller nodes
|
||||||
dataController: class for data network controllers"""
|
dataController: class for data network controllers"""
|
||||||
# Connect everything to a single switch
|
# Connect everything to a single switch
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ def runMultiLink():
|
|||||||
class simpleMultiLinkTopo( Topo ):
|
class simpleMultiLinkTopo( Topo ):
|
||||||
"Simple topology with multiple links"
|
"Simple topology with multiple links"
|
||||||
|
|
||||||
def build( self, n, **kwargs ):
|
def build( self, n, **_kwargs ):
|
||||||
h1, h2 = self.addHost( 'h1' ), self.addHost( 'h2' )
|
h1, h2 = self.addHost( 'h1' ), self.addHost( 'h2' )
|
||||||
s1 = self.addSwitch( 's1' )
|
s1 = self.addSwitch( 's1' )
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -27,7 +27,7 @@ from mininet.util import irange
|
|||||||
|
|
||||||
class InternetTopo(Topo):
|
class InternetTopo(Topo):
|
||||||
"Single switch connected to n hosts."
|
"Single switch connected to n hosts."
|
||||||
def build(self, n=2, **opts):
|
def build(self, n=2, **_kwargs ):
|
||||||
# set up inet switch
|
# set up inet switch
|
||||||
inetSwitch = self.addSwitch('s0')
|
inetSwitch = self.addSwitch('s0')
|
||||||
# add inet host
|
# add inet host
|
||||||
|
|||||||
Reference in New Issue
Block a user