mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-31 06:56:13 +00:00
zebra: Don't error on nexthop object support check
On startup when we are requesting all nexthop objects from the kernel and it doesn't support that, we should not produce an error message. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
4505578be0
commit
2f65aee06a
@ -891,15 +891,20 @@ int netlink_parse_info(int (*filter)(struct nlmsghdr *, ns_id_t, int),
|
||||
msg_type,
|
||||
err->msg.nlmsg_seq,
|
||||
err->msg.nlmsg_pid);
|
||||
} else
|
||||
flog_err(
|
||||
EC_ZEBRA_UNEXPECTED_MESSAGE,
|
||||
"%s error: %s, type=%s(%u), seq=%u, pid=%u",
|
||||
nl->name,
|
||||
safe_strerror(-errnum),
|
||||
nl_msg_type_to_str(msg_type),
|
||||
msg_type, err->msg.nlmsg_seq,
|
||||
err->msg.nlmsg_pid);
|
||||
} else {
|
||||
if ((msg_type != RTM_GETNEXTHOP)
|
||||
|| !startup)
|
||||
flog_err(
|
||||
EC_ZEBRA_UNEXPECTED_MESSAGE,
|
||||
"%s error: %s, type=%s(%u), seq=%u, pid=%u",
|
||||
nl->name,
|
||||
safe_strerror(-errnum),
|
||||
nl_msg_type_to_str(
|
||||
msg_type),
|
||||
msg_type,
|
||||
err->msg.nlmsg_seq,
|
||||
err->msg.nlmsg_pid);
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user