Enable batch shutdown for OVS.

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