This commit makes vswitchd clear the 'bfd_status' column in ovsdb when bfd is disabled or not supported.
Reported-by: Ansis Atteka <aatt...@nicira.com> Signed-off-by: Alex Wang <al...@nicira.com> --- v1 -> v2: - clear the 'bfd_status' column when bfd is not supported. --- vswitchd/bridge.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 2dc5529..da2dc42 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); } } -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev