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:
Stephen Worley 2019-05-14 15:47:20 -07:00
parent 4505578be0
commit 2f65aee06a

View File

@ -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;
}