adding comments and removing random access spaces

This commit is contained in:
cody burkard
2014-08-13 17:33:00 -07:00
parent 84c1c24ce2
commit 41a54f05cb
4 changed files with 5 additions and 2 deletions
+1
View File
@@ -122,6 +122,7 @@ class Intf( object ):
"Return whether interface is up"
if setUp:
cmdOutput = self.ifconfig( 'up' )
# no output indicates success
if cmdOutput:
error( "Error setting %s up: %s " % ( self.name, cmdOutput ) )
return False
+1 -1
View File
@@ -384,7 +384,7 @@ class Mininet( object ):
srcPort, dstPort = topo.port( srcName, dstName )
self.addLink( src, dst, srcPort, dstPort, **params )
info( '(%s, %s) ' % ( src.name, dst.name ) )
info( '\n' )
def configureControlNetwork( self ):
+1 -1
View File
@@ -1190,7 +1190,7 @@ class IVSSwitch(Switch):
args.append( self.opts )
logfile = '/tmp/ivs.%s.log' % self.name
self.cmd( ' '.join(args) + ' >' + logfile + ' 2>&1 </dev/null &' )
def stop( self ):
+2
View File
@@ -192,6 +192,8 @@ def moveIntfNoRetry( intf, dstNode, srcNode=None, printError=False ):
cmdOutput = srcNode.cmd( cmd )
else:
cmdOutput = quietRun( cmd )
# If ip link set does not produce any output, then we can assume
# that the link has been moved successfully.
if cmdOutput:
if printError:
error( '*** Error: moveIntf: ' + intf +