ovs-vsctl: Fix behavioral regression for "--if-exists del-port <bridge>".
authorBen Pfaff <blp@nicira.com>
Mon, 8 Jul 2013 17:47:37 +0000 (10:47 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 9 Jul 2013 22:22:49 +0000 (15:22 -0700)
commit25a27ba07c1acbda03c3ff08bf78e2921b48c90b
tree43d15dd9550e41ea1f07e61f6add1339241e648a
parent8d32c1d34b235d08007c8cf5ab1d0eee139d9e47
ovs-vsctl: Fix behavioral regression for "--if-exists del-port <bridge>".

Commit 89f3c258fe (ovs-vsctl: Improve error message for "ovs-vsctl del-port
<bridge>".) changed the behavior of
    ovs-vsctl --if-exists del-port <bridge>
from a silent no-op to a hard failure.  This commit fixes this regression.

This caused problems on XenServer, for which the Open vSwitch integration
runs commands like:
    /usr/bin/ovs-vsctl --timeout=20 \
        -- --with-iface --if-exists del-port xapi103 \
        -- --if-exists del-br xapi103

Bug #18276.
Reported-by: Michael Hu <mhu@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/ovs-vsctl.at
utilities/ovs-vsctl.c