Your message dated Fri, 26 Oct 2012 09:43:49 -0700
with message-id <20121026164349.gi22...@nicira.com>
and subject line Re: Bug#691508: ovs-vsctl: --may-exist --if-exists don't work
has caused the Debian Bug report #691508,
regarding ovs-vsctl: --may-exist --if-exists don't work
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
691508: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691508
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
On Fri, Oct 26, 2012 at 10:29:13AM -0500, Adam Heath wrote:
> 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'
There's a distinction between global options and options to a particular
command. These options are for a particular command so you need -- as a
separator:
ovs-vsctl -- --may-exist add-port bf-public bf-public
This is documented near the top of the manpage:
The ovs-vsctl command line begins with global options (see
OPTIONS below for details). The global options are followed by
one or more commands. Each command should begin with -- by
itself as a command- line argument, to separate it from the
global options and following commands. (If the first command
does not have any options, then the first -- may be omitted.)
The command itself starts with command-spe- cific options, if
any, followed by the command name and any arguments. See
EXAMPLES below for syntax examples.
along with examples:
Delete bridge br0, reporting an error if it does not exist:
ovs-vsctl del-br br0
Delete bridge br0 if it exists (the -- is required to separate
del-br's options from the global options):
ovs-vsctl -- --if-exists del-br br0
--- End Message ---
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev