clean: don't wait forever for ovsdb
This could happen if OVS was installed but not running.
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ def cleanup():
|
|||||||
sh( 'dpctl deldp ' + dp )
|
sh( 'dpctl deldp ' + dp )
|
||||||
|
|
||||||
info( "*** Removing OVS datapaths" )
|
info( "*** Removing OVS datapaths" )
|
||||||
dps = sh("ovs-vsctl list-br").split( '\n' )
|
dps = sh("ovs-vsctl --timeout=1 list-br").split( '\n' )
|
||||||
for dp in dps:
|
for dp in dps:
|
||||||
if dp:
|
if dp:
|
||||||
sh( 'ovs-vsctl del-br ' + dp )
|
sh( 'ovs-vsctl del-br ' + dp )
|
||||||
|
|||||||
Reference in New Issue
Block a user