ovs-brcompatd: Delete ports when netdevs on fake bridges disappear.
authorBen Pfaff <blp@nicira.com>
Thu, 15 Sep 2011 22:55:45 +0000 (15:55 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 15 Sep 2011 22:56:59 +0000 (15:56 -0700)
commit45a1c58bdb929f771db666f0aed525e64e7f5bb0
tree6953d710905feeb4bf2ba07a83bac59027f00008
parente087eb215b346ac42fc9d7b96faeb272aa5d68e7
ovs-brcompatd: Delete ports when netdevs on fake bridges disappear.

Until now, when a network device disappeared, netdev_changed_cb() passed
the name of the bridge that contained the network device to ovs-vsctl as
part of the "del-port" command.  However, when the network device was
actually a "fake bridge", it would pass the name of the real bridge, which
ovs-vsctl rejected as wrong (expecting the name of the fake bridge) and
not remove the port.

This fixes the problem by dropping the bridge name, which is simpler than
trying to get the name of the fake bridge in this case.

Reported-by: Tyler Coumbes <coumbes@gmail.com>
Tested-by: Tyler Coumbes <coumbes@gmail.com>
vswitchd/ovs-brcompatd.c