From 2f7d15cb736d324f118620962bbf9d82d3336aab Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 20 Apr 2009 09:56:27 -0700 Subject: [PATCH] brcomapt: Delete VLANs and bonding entries for deleted ports. Otherwise these entries can hang around past reboot and cause trouble later as vif numbers are reused. Probably another part of the full solution is to delete the whole configuration file on reboot. Bug #1216. --- vswitchd/brcompatd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vswitchd/brcompatd.c b/vswitchd/brcompatd.c index 5fa0fd97..6054bb46 100644 --- a/vswitchd/brcompatd.c +++ b/vswitchd/brcompatd.c @@ -299,6 +299,8 @@ modify_config(const char *br_name, const char *port_name, enum bmc_action act) case BMC_DEL_PORT: cfg_del_entry("bridge.%s.port=%s", br_name, port_name); + cfg_del_match("bonding.*.slave=%s", port_name); + cfg_del_match("vlan.%s.*", port_name); break; } -- 2.30.2