From: Shih-Hao Li <shi...@vmware.com> Change-Id: I026f197a69799b6f1522d2c9e410d91158bb2663 Signed-off-by: Shih-Hao Li <shi...@vmware.com> --- ovs-had/l3ha.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/ovs-had/l3ha.c b/ovs-had/l3ha.c index 401c284..df2ab8a 100644 --- a/ovs-had/l3ha.c +++ b/ovs-had/l3ha.c @@ -32,6 +32,8 @@ VLOG_DEFINE_THIS_MODULE(l3ha); +static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5); + /* Layer 3 HA implementation. * * The l3ha state machine works in conjunction with the controller to implement @@ -706,12 +708,16 @@ update_ovsdb(const struct ovsrec_bridge *nvp_patch) if (smap_clone_with_key(&new_other_config, &iface->other_config, "cfm_opstate", healthy ? "up" : "down")) { + VLOG_INFO_RL(&rl, "CFM opstate of %s changed: %s", + iface->name, healthy ? "up" : "down"); ovsrec_interface_set_other_config(iface, &new_other_config); smap_destroy(&new_other_config); } /* If extender is healthy, set cpath_down to false. Else, true */ if (smap_clone_with_key(&new_bfd, &iface->bfd, "cpath_down", healthy ? "false" : "true")) { + VLOG_INFO_RL(&rl, "BFD cpath_down of %s changed: %s", + iface->name, healthy ? "false" : "true"); ovsrec_interface_set_bfd(iface, &new_bfd); smap_destroy(&new_bfd); } -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev