Merge pull request #286 from lantz/devel/ovsbatch

Enable batch startup/shutdown of OVS

Not perfect, but it moves us forward at least.
This commit is contained in:
lantz
2014-04-13 18:44:11 -07:00
3 changed files with 27 additions and 22 deletions
+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()