Skip to content
Snippets Groups Projects
Commit 1fda4865 authored by Bob Lantz's avatar Bob Lantz
Browse files

Try batch deleting OVS instances.

parent f0e55e10
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,9 @@ def cleanup():
info( "*** Removing OVS datapaths" )
dps = sh("ovs-vsctl --timeout=1 list-br").split( '\n' )
sh( "ovs-vsctl " + " -- ".join( "--if-exists del-br " + dp for dp in dps if dp ) )
# And in case the above didn't work...
dps = sh("ovs-vsctl --timeout=1 list-br").split( '\n' )
for dp in dps:
if dp:
sh( 'ovs-vsctl del-br ' + dp )
......
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