Revision a0bc1002

View differences:

mininet/net.py
408 408
            info( '*** Stopping %i terms\n' % len( self.terms ) )
409 409
            self.stopXterms()
410 410
        info( '*** Stopping %i switches\n' % len( self.switches ) )
411
        swclass = type( self.switches[ 0 ] )
412
        if False and self.switches and hasattr( swclass, 'batchShutdown' ):
413
            swclass.batchShutdown( self.switches )
411
        if self.switches:
412
            swclass = type( self.switches[ 0 ] )
413
            if hasattr( swclass, 'batchShutdown' ):
414
                swclass.batchShutdown( self.switches )
414 415
        for switch in self.switches:
415 416
            info( switch.name + ' ' )
416 417
            switch.stop()

Also available in: Unified diff