vrrpd: better messaging for interface binds

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2019-02-13 22:37:41 +00:00
parent 2198a5bbc9
commit e6341d212b

View File

@ -320,15 +320,15 @@ static bool vrrp_attach_interface(struct vrrp_router *r)
if (candidates == 0)
zlog_warn(VRRP_LOGPFX VRRP_LOGPFX_VRID
"No interface found w/ MAC %s",
r->vr->vrid, ethstr);
"%s interface: None (no interface found w/ MAC %s)",
r->vr->vrid, family2str(r->family), ethstr);
else if (candidates > 1)
zlog_warn(VRRP_LOGPFX VRRP_LOGPFX_VRID
"Multiple VRRP interfaces found; using %s",
r->vr->vrid, selection->name);
"%s interface: Multiple interfaces found; using %s",
r->vr->vrid, family2str(r->family), selection->name);
else
zlog_info(VRRP_LOGPFX VRRP_LOGPFX_VRID "Selected %s",
r->vr->vrid, selection->name);
zlog_info(VRRP_LOGPFX VRRP_LOGPFX_VRID "%s interface: %s",
r->vr->vrid, family2str(r->family), selection->name);
r->mvl_ifp = selection;