diff --git a/mininet/node.py b/mininet/node.py index 27d1e16..fdc855e 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -1106,6 +1106,13 @@ class IVSSwitch(Switch): 'not be loaded. Try modprobe openvswitch.\n' ) exit( 1 ) + @classmethod + def batchShutdown( cls, switches ): + "Kill each IVS switch, to be waited on later in stop()" + for switch in switches: + if type(switch) == cls: + switch.cmd( 'kill %ivs' ) + def start( self, controllers ): "Start up a new IVS switch" args = ['ivs']