Enable batch shutdown for OVS.

This commit is contained in:
Bob Lantz
2014-02-28 18:45:41 -08:00
parent 5e60ee266b
commit a0bc100289
+2 -1
View File
@@ -408,8 +408,9 @@ class Mininet( object ):
info( '*** Stopping %i terms\n' % len( self.terms ) ) info( '*** Stopping %i terms\n' % len( self.terms ) )
self.stopXterms() self.stopXterms()
info( '*** Stopping %i switches\n' % len( self.switches ) ) info( '*** Stopping %i switches\n' % len( self.switches ) )
if self.switches:
swclass = type( self.switches[ 0 ] ) swclass = type( self.switches[ 0 ] )
if False and self.switches and hasattr( swclass, 'batchShutdown' ): if hasattr( swclass, 'batchShutdown' ):
swclass.batchShutdown( self.switches ) swclass.batchShutdown( self.switches )
for switch in self.switches: for switch in self.switches:
info( switch.name + ' ' ) info( switch.name + ' ' )