bridge: Clear fault when CFM is not configured.
authorEthan Jackson <ethan@nicira.com>
Wed, 7 Sep 2011 00:13:24 +0000 (17:13 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 9 Sep 2011 21:11:14 +0000 (14:11 -0700)
vswitchd/bridge.c

index 99fa76176e5863c30acd7659bb3412027cc7e206..9783cc96f2fe98f040da8294fea1dea945a209ce 100644 (file)
@@ -1269,6 +1269,8 @@ iface_refresh_cfm_stats(struct iface *iface)
     if (fault >= 0) {
         bool fault_bool = fault;
         ovsrec_interface_set_cfm_fault(cfg, &fault_bool, 1);
+    } else {
+        ovsrec_interface_set_cfm_fault(cfg, NULL, 0);
     }
 }