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

IVSSwitch: wait for ivs to terminate before tearing down node

This was a problem when running IVS in a container. IVS would begin the process
of closing controller connections on receiving SIGTERM, but often mininet would
have continued on and removed the control network interface from the container
before it could send the FIN. The controller wouldn't know the connection had
been closed until it timed out much later.
parent 0fe73a67
No related branches found
No related tags found
No related merge requests found
......@@ -1124,6 +1124,7 @@ def start( self, controllers ):
def stop( self ):
"Terminate IVS switch."
self.cmd( 'kill %ivs' )
self.cmd( 'wait' )
self.deleteIntfs()
def attach( self, intf ):
......
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