Wait for controller shutdown.
Unfortunately, this can slow things down a bit - perhaps 100-200 ms in the case of ovs-controller, but I am hoping that it may help slightly with #399.
This commit is contained in:
@@ -1293,6 +1293,7 @@ class Controller( Node ):
|
|||||||
def stop( self ):
|
def stop( self ):
|
||||||
"Stop controller."
|
"Stop controller."
|
||||||
self.cmd( 'kill %' + self.command )
|
self.cmd( 'kill %' + self.command )
|
||||||
|
self.cmd( 'wait %' + self.command )
|
||||||
self.terminate()
|
self.terminate()
|
||||||
|
|
||||||
def IP( self, intf=None ):
|
def IP( self, intf=None ):
|
||||||
|
|||||||
Reference in New Issue
Block a user