From: Alex Wang Date: Thu, 12 Sep 2013 19:51:53 +0000 (-0700) Subject: vswitchd: Clear bfd_status column when bfd is disabled or not supported X-Git-Tag: sliver-openvswitch-2.0.90-1~14^2~33 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=b6843801d24eb4c875151e6520b5740e387ffdd0 vswitchd: Clear bfd_status column when bfd is disabled or not supported This commit makes vswitchd clear the 'bfd_status' column in ovsdb when bfd is disabled or not supported. Reported-by: Ansis Atteka Signed-off-by: Alex Wang Signed-off-by: Ben Pfaff --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 2dc552966..da2dc4240 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -2259,10 +2259,9 @@ instant_stats_run(void) iface_refresh_cfm_stats(iface); smap_init(&smap); - if (!ofproto_port_get_bfd_status(br->ofproto, iface->ofp_port, - &smap)) { - ovsrec_interface_set_bfd_status(iface->cfg, &smap); - } + ofproto_port_get_bfd_status(br->ofproto, iface->ofp_port, + &smap); + ovsrec_interface_set_bfd_status(iface->cfg, &smap); smap_destroy(&smap); } }