ovs-vsctl: Prevent creating duplicate VLAN bridges.
authorBen Pfaff <blp@nicira.com>
Thu, 6 Nov 2014 22:59:40 +0000 (14:59 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 25 Nov 2014 17:02:52 +0000 (09:02 -0800)
commit5dd9826c9d3914265e6d4daa8eb80bbf3b1495a7
tree03d8507b5c3424795643e95d472c4f78bd650834
parent64746850d17146d34868e35991b6953a98056595
ovs-vsctl: Prevent creating duplicate VLAN bridges.

ovs-vsctl has the concept of a VLAN (or "fake") bridge, which is a
sort of a sub-bridge that receives only packets on a particular VLAN.
There is no way to distinguish two VLAN bridges with the same parent on the
same VLAN, but until now ovs-vsctl did not prevent creating duplicates or
report them.  This commit fixes the problem.

Reported-by: rwxybh
Reported-at: https://github.com/openvswitch/ovs/issues/21
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
tests/ovs-vsctl.at
utilities/ovs-vsctl.8.in
utilities/ovs-vsctl.c