Fixed minor breakage due to code cleanup.
This commit is contained in:
@@ -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 ):
|
||||||
|
|||||||
@@ -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
@@ -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() ):
|
||||||
|
|||||||
Reference in New Issue
Block a user