projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9f4baa
)
ovs-brcompatd: Delete Bridge record when deleting a bridge.
author
Ben Pfaff
<blp@nicira.com>
Tue, 23 Feb 2010 20:49:27 +0000
(12:49 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 25 Feb 2010 22:48:16 +0000
(14:48 -0800)
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
patch
|
blob
|
history
diff --git
a/vswitchd/ovs-brcompatd.c
b/vswitchd/ovs-brcompatd.c
index d0568a48d91445e75030d41907848b02eeff5a73..bf571d743a11465ff7a8b4719f8b3f3056e57a74 100644
(file)
--- 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;