From: Ethan Jackson Date: Wed, 7 Sep 2011 00:13:24 +0000 (-0700) Subject: bridge: Clear fault when CFM is not configured. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f0d2ae5dada602d17a700dfb6e261bafa62dd0b;p=openvswitch bridge: Clear fault when CFM is not configured. --- diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 99fa7617..9783cc96 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -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); } }