Skip to content

Commit

Permalink
ovs-vsctl: When deleting a real bridge, delete ports of child fake br…
Browse files Browse the repository at this point in the history
…idges.

Otherwise these ports and their interfaces hang around unreferenced.
  • Loading branch information
blp committed Feb 8, 2010
1 parent f89d818 commit 8cf8cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/ovs-vsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8cf8cc6

Please sign in to comment.