From dcdf169e831c0697f04eecbdda216959eace2ce8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 23 Feb 2010 12:49:27 -0800 Subject: [PATCH] ovs-brcompatd: Delete Bridge record when deleting a bridge. del_bridge() removed the reference to the Bridge record from the Open_vSwitch table, but it didn't actually delete the Bridge record itself. This fixes the problem. Bug #2425. --- vswitchd/ovs-brcompatd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c index d0568a48..bf571d74 100644 --- a/vswitchd/ovs-brcompatd.c +++ b/vswitchd/ovs-brcompatd.c @@ -509,6 +509,9 @@ del_bridge(const struct ovsrec_open_vswitch *ovs, const char *br_name) ovsrec_open_vswitch_set_bridges(ovs, bridges, n); free(bridges); + /* Delete the bridge itself. */ + ovsrec_bridge_delete(br); + VLOG_INFO("delbr %s: success", br_name); return 0; -- 2.30.2