Fixed minor breakage due to code cleanup.

This commit is contained in:
Bob Lantz
2010-05-07 01:15:41 -07:00
parent e3f6ecca97
commit c26875cb55
3 changed files with 2 additions and 2 deletions
+1
View File
@@ -592,6 +592,7 @@ class MiniEdit( Frame ):
def start( self ): def start( self ):
"Start network." "Start network."
if self.net is None: if self.net is None:
self.net = self.build()
self.net.start() self.net.start()
def stop( self ): def stop( self ):
-1
View File
@@ -239,7 +239,6 @@ class CLI( Cmd ):
rest = ' '.join( rest ) rest = ' '.join( rest )
# Run cmd on node: # Run cmd on node:
builtin = isShellBuiltin( first ) builtin = isShellBuiltin( first )
print "builtin =", builtin
node.sendCmd( rest, printPid=( not builtin ) ) node.sendCmd( rest, printPid=( not builtin ) )
self.waitForNode( node ) self.waitForNode( node )
else: else:
+1 -1
View File
@@ -274,7 +274,7 @@ class Mininet( object ):
pass pass
info( '*** Adding controller\n' ) info( '*** Adding controller\n' )
self.addController( self.controller ) self.addController( 'c0' )
info( '*** Creating network\n' ) info( '*** Creating network\n' )
info( '*** Adding hosts:\n' ) info( '*** Adding hosts:\n' )
for hostId in sorted( topo.hosts() ): for hostId in sorted( topo.hosts() ):