Skip to content
Snippets Groups Projects
Commit e0cfcdd5 authored by Bob Lantz's avatar Bob Lantz
Browse files

Tweaks to pass code check.

parent 2235f216
No related branches found
No related tags found
No related merge requests found
......@@ -81,9 +81,9 @@ class MininetRunner( object ):
self.parseArgs()
self.setup()
self.begin()
def setCustom( self, name, value ):
print "got", self, name, value
"Set custom parameters for MininetRunner."
if name in ( 'topos', 'switches', 'hosts', 'controllers' ):
# Update dictionaries
param = name.upper()
......@@ -94,7 +94,7 @@ class MininetRunner( object ):
else:
# Add or modify global variable or class
globals()[ name ] = value
def parseCustomFile( self, fileName ):
"Parse custom file and add params before parsing cmd-line options."
custom = {}
......@@ -104,7 +104,7 @@ class MininetRunner( object ):
self.setCustom( name, custom[ name ] )
else:
raise Exception( 'could not find custom file: %s' % fileName )
def parseArgs( self ):
"""Parse command-line args and return options object.
returns: opts parse options dict"""
......
......@@ -91,8 +91,8 @@ def do_net( self, args ):
for switch in self.mn.switches:
info( '%s <->', switch.name )
for intf in switch.intfs:
node, name = switch.connection[ intf ]
info( ' %s' % node.name )
name = switch.connection[ intf ][ 1 ]
info( ' %s' % name )
info( '\n' )
def do_sh( self, args ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment