vswitchd: Clear bfd_status column when bfd is disabled or not supported
authorAlex Wang <alexw@nicira.com>
Thu, 12 Sep 2013 19:51:53 +0000 (12:51 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 12 Sep 2013 21:33:59 +0000 (14:33 -0700)
This commit makes vswitchd clear the 'bfd_status' column
in ovsdb when bfd is disabled or not supported.

Reported-by: Ansis Atteka <aatteka@nicira.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
vswitchd/bridge.c

index 57a4faf..b3ca42b 100644 (file)
@@ -2262,10 +2262,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);
             }
         }