[ovs-dev] Bug#691508: ovs-vsctl: --may-exist --if-exists don't work

Adam Heath doogie at brainfood.com
Fri Oct 26 15:29:13 UTC 2012


Package: openvswitch-switch
Version: 1.4.2+git20120612-9

>From the man page:

       [--may-exist] add-br bridge
       [--may-exist] add-br bridge parent vlan
       [--may-exist] add-port bridge port [column[:key]=value]...
       [--if-exists] del-port [bridge] port

>From my script:

++ ovs-vsctl --may-exist add-port bf-public bf-public
ovs-vsctl: unrecognized option '--may-exist'
++ ovs-vsctl --may-exist add-br bf-public
ovs-vsctl: unrecognized option '--may-exist'

I can work around the --may/--if not being supported for bridge
add/remove.  For port add/remove, it's a bit harder, as I have to
parse the output of list-ports to see if the port exists or not.



More information about the dev mailing list