Shutting down controller first
This commit is contained in:
+5
-5
@@ -404,6 +404,11 @@ class Mininet( object ):
|
|||||||
|
|
||||||
def stop( self ):
|
def stop( self ):
|
||||||
"Stop the controller(s), switches and hosts"
|
"Stop the controller(s), switches and hosts"
|
||||||
|
info( '*** Stopping %i controllers\n' % len( self.controllers ) )
|
||||||
|
for controller in self.controllers:
|
||||||
|
info( controller.name + ' ' )
|
||||||
|
controller.stop()
|
||||||
|
info( '\n' )
|
||||||
if self.terms:
|
if self.terms:
|
||||||
info( '*** Stopping %i terms\n' % len( self.terms ) )
|
info( '*** Stopping %i terms\n' % len( self.terms ) )
|
||||||
self.stopXterms()
|
self.stopXterms()
|
||||||
@@ -419,11 +424,6 @@ class Mininet( object ):
|
|||||||
for host in self.hosts:
|
for host in self.hosts:
|
||||||
info( host.name + ' ' )
|
info( host.name + ' ' )
|
||||||
host.terminate()
|
host.terminate()
|
||||||
info( '\n' )
|
|
||||||
info( '*** Stopping %i controllers\n' % len( self.controllers ) )
|
|
||||||
for controller in self.controllers:
|
|
||||||
info( controller.name + ' ' )
|
|
||||||
controller.stop()
|
|
||||||
info( '\n*** Done\n' )
|
info( '\n*** Done\n' )
|
||||||
|
|
||||||
def run( self, test, *args, **kwargs ):
|
def run( self, test, *args, **kwargs ):
|
||||||
|
|||||||
Reference in New Issue
Block a user