ovs-vsctl: Improve error message for "ovs-vsctl del-port <bridge>".
authorBen Pfaff <blp@nicira.com>
Wed, 19 Jun 2013 04:01:33 +0000 (21:01 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 20 Jun 2013 06:04:41 +0000 (23:04 -0700)
commit89f3c258fe969df2fde29c21423cd705f4d8b472
treeaafe7898937113ee4fb49478a95def943662c671
parent1dd35f8afe13fe2e9144052b2d61086e5be6e448
ovs-vsctl: Improve error message for "ovs-vsctl del-port <bridge>".

Previously, commands like this:
    ovs-vsctl add-br br0
    ovs-vsctl del-port br0
yielded an error message like:
    no port named br0
which is confusing.  This commit improves the error message to:
    cannot delete port br0 because it is the local port for bridge br0
    (deleting this port requires deleting the entire bridge)

Bug #17994.
Reported-by: Reid Price <reid@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/ovs-vsctl.at
utilities/ovs-vsctl.c