From 8cf8cc6606406eb9754cfb8a80ee29ebb69f344e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 5 Feb 2010 14:10:02 -0800 Subject: [PATCH] ovs-vsctl: When deleting a real bridge, delete ports of child fake bridges. Otherwise these ports and their interfaces hang around unreferenced. --- utilities/ovs-vsctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2