From d9ea9e7a1c8ca7a457b75bc572524652d78fc1fc Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Fri, 9 Dec 2022 18:40:37 -0500 Subject: [PATCH] zebra: ignore GETVLAN errors at startup ignore GETVLAN errors at startup like we are doing for nexthop groups. Older platforms don't support the API. Signed-off-by: Stephen Worley --- zebra/kernel_netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index b6652aa824..fac6acae0c 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -1093,7 +1093,8 @@ static int netlink_parse_error(const struct nlsock *nl, struct nlmsghdr *h, nl_msg_type_to_str(msg_type), msg_type, err->msg.nlmsg_seq, err->msg.nlmsg_pid); } else { - if ((msg_type != RTM_GETNEXTHOP) || !startup) + if ((msg_type != RTM_GETNEXTHOP && msg_type != RTM_GETVLAN) || + !startup) flog_err(EC_ZEBRA_UNEXPECTED_MESSAGE, "%s error: %s, type=%s(%u), seq=%u, pid=%u", nl->name, safe_strerror(-errnum),