Revision b7a112cb mininet/net.py

View differences:

mininet/net.py
404 404

  
405 405
    def stop( self ):
406 406
        "Stop the controller(s), switches and hosts"
407
        info( '*** Stopping %i controllers\n' % len( self.controllers ) )
408
        for controller in self.controllers:
409
            info( controller.name + ' ' )
410
            controller.stop()
411
        info( '\n' )
407 412
        if self.terms:
408 413
            info( '*** Stopping %i terms\n' % len( self.terms ) )
409 414
            self.stopXterms()
......
419 424
        for host in self.hosts:
420 425
            info( host.name + ' ' )
421 426
            host.terminate()
422
        info( '\n' )
423
        info( '*** Stopping %i controllers\n' % len( self.controllers ) )
424
        for controller in self.controllers:
425
            info( controller.name + ' ' )
426
            controller.stop()
427 427
        info( '\n*** Done\n' )
428 428

  
429 429
    def run( self, test, *args, **kwargs ):

Also available in: Unified diff