From b6843801d24eb4c875151e6520b5740e387ffdd0 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Thu, 12 Sep 2013 12:51:53 -0700 Subject: [PATCH] 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 --- vswitchd/bridge.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); } } -- 2.20.1