Skip to content
Snippets Groups Projects
Commit 93cd5583 authored by Rich Lane's avatar Rich Lane
Browse files

IVSSwitch: support batch shutdown

Not a single command like the OVS one, but it still greatly decreases the
shutdown time.

This does assume that stop() is called after batchShutdown(), which is true in
the current mininet code.
parent 5797f585
No related branches found
No related tags found
No related merge requests found
......@@ -1106,6 +1106,13 @@ def setup( cls ):
'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']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment