--- vswitchd/bridge.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 2bfd926..a348e15 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1265,9 +1265,8 @@ iface_refresh_cfm_stats(struct iface *iface) fault = ofproto_port_get_cfm_fault(iface->port->bridge->ofproto, iface->ofp_port); - if (fault < 0) { - return false; + goto error; } if (cfg->n_cfm_fault != 1 || cfg->cfm_fault[0] != fault) { @@ -1277,6 +1276,15 @@ iface_refresh_cfm_stats(struct iface *iface) } return changed; + +error: + + if (cfg->n_cfm_fault) { + ovsrec_interface_set_cfm_fault(cfg, NULL, 0); + changed = true; + } + + return changed; } static bool -- 1.7.6.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev