Tweaks to pass code check.

This commit is contained in:
Bob Lantz
2010-03-01 15:21:29 -08:00
parent 2235f21698
commit e0cfcdd505
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ class MininetRunner( object ):
self.begin() self.begin()
def setCustom( self, name, value ): def setCustom( self, name, value ):
print "got", self, name, value "Set custom parameters for MininetRunner."
if name in ( 'topos', 'switches', 'hosts', 'controllers' ): if name in ( 'topos', 'switches', 'hosts', 'controllers' ):
# Update dictionaries # Update dictionaries
param = name.upper() param = name.upper()
+2 -2
View File
@@ -91,8 +91,8 @@ class CLI( Cmd ):
for switch in self.mn.switches: for switch in self.mn.switches:
info( '%s <->', switch.name ) info( '%s <->', switch.name )
for intf in switch.intfs: for intf in switch.intfs:
node, name = switch.connection[ intf ] name = switch.connection[ intf ][ 1 ]
info( ' %s' % node.name ) info( ' %s' % name )
info( '\n' ) info( '\n' )
def do_sh( self, args ): def do_sh( self, args ):