From: Ben Pfaff Date: Fri, 5 Feb 2010 22:10:02 +0000 (-0800) Subject: ovs-vsctl: When deleting a real bridge, delete ports of child fake bridges. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cf8cc6606406eb9754cfb8a80ee29ebb69f344e;p=openvswitch ovs-vsctl: When deleting a real bridge, delete ports of child fake bridges. Otherwise these ports and their interfaces hang around unreferenced. --- diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index 981a4e29..8ee18d78 100644 --- a/utilities/ovs-vsctl.c +++ b/utilities/ovs-vsctl.c @@ -897,7 +897,7 @@ cmd_del_br(struct vsctl_context *ctx) SHASH_FOR_EACH (node, &info.ports) { struct vsctl_port *port = node->data; - if (port->bridge == bridge + if (port->bridge == bridge || port->bridge->parent == bridge || !strcmp(port->port_cfg->name, bridge->name)) { del_port(&info, port); }