Skip to content
Permalink
Browse files

fix kwargs names so they wont spark a warning

  • Loading branch information...
None None
None authored and None committed Jan 17, 2019
1 parent fdc3156 commit 1888001555ed6a91213ee71ff9802406db267438
Showing with 3 additions and 3 deletions.
  1. +1 −1 examples/controlnet.py
  2. +1 −1 examples/multilink.py
  3. +1 −1 examples/natnet.py
@@ -100,7 +100,7 @@ def items( self ):

class ControlNetwork( Topo ):
"Control Network Topology"
def build( 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"""
# Connect everything to a single switch
@@ -21,7 +21,7 @@ def runMultiLink():
class simpleMultiLinkTopo( Topo ):
"Simple topology with multiple links"

def build( self, n, **kwargs ):
def build( self, n, **_kwargs ):
h1, h2 = self.addHost( 'h1' ), self.addHost( 'h2' )
s1 = self.addSwitch( 's1' )

@@ -27,7 +27,7 @@

class InternetTopo(Topo):
"Single switch connected to n hosts."
def build(self, n=2, **opts):
def build(self, n=2, **_kwargs ):
# set up inet switch
inetSwitch = self.addSwitch('s0')
# add inet host

0 comments on commit 1888001

Please sign in to comment.
You can’t perform that action at this time.