From a0bc10028976611dc9aa8e1df757a6ebb96103bd Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 26 Feb 2014 06:13:18 -0800 Subject: [PATCH] Enable batch shutdown for OVS. --- mininet/net.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mininet/net.py b/mininet/net.py index 2b3ce04..08dc61f 100755 --- a/mininet/net.py +++ b/mininet/net.py @@ -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()