mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
When an interface is disabled, a Cumulus kernel patch causes route deletes to
be issued to Quagga. Quagga will in turn try to re-add the route(s) back to the kernel and this will result in an error back from the kernel. This change is to make sure these error messages are not logged by default. Subsequent changes will cleanup this handling (to address CM-4577). Note: This patch should not be upstreamed.
This commit is contained in:
parent
85ca2dfd2d
commit
b881a42484
@ -375,10 +375,24 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *),
|
||||
return 0;
|
||||
}
|
||||
|
||||
zlog_err ("%s error: %s, type=%s(%u), seq=%u, pid=%u",
|
||||
if (nl == &netlink_cmd
|
||||
&& msg_type == RTM_NEWROUTE && -errnum == ESRCH)
|
||||
{
|
||||
/* This is known to happen in some situations, don't log
|
||||
* as error.
|
||||
*/
|
||||
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||
zlog_debug ("%s error: %s, type=%s(%u), seq=%u, pid=%u",
|
||||
nl->name, safe_strerror (-errnum),
|
||||
lookup (nlmsg_str, msg_type),
|
||||
msg_type, err->msg.nlmsg_seq, err->msg.nlmsg_pid);
|
||||
}
|
||||
else
|
||||
zlog_err ("%s error: %s, type=%s(%u), seq=%u, pid=%u",
|
||||
nl->name, safe_strerror (-errnum),
|
||||
lookup (nlmsg_str, msg_type),
|
||||
msg_type, err->msg.nlmsg_seq, err->msg.nlmsg_pid);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user