Add support for batch shutdown of OVS switches.

This saves about 10 seconds for a 200 switch network.
This commit is contained in:
Bob Lantz
2014-02-06 17:56:32 -08:00
parent 9cf9b7b223
commit 06115a0456
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -408,6 +408,9 @@ 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 )
for switch in self.switches:
info( switch.name + ' ' )
switch.stop()