summaryrefslogtreecommitdiff
path: root/zebra/kernel_netlink.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2022-12-09 18:40:37 -0500
committerStephen Worley <sworley@nvidia.com>2023-02-13 18:12:05 -0500
commitd9ea9e7a1c8ca7a457b75bc572524652d78fc1fc (patch)
tree1a2959560114cc7483c2f5e58b4b0bdb5b753477 /zebra/kernel_netlink.c
parent1dd3cd10b827c16d1a77ab4fb6cc56aff7b7a7be (diff)
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 <sworley@nvidia.com>
Diffstat (limited to 'zebra/kernel_netlink.c')
-rw-r--r--zebra/kernel_netlink.c3
1 files changed, 2 insertions, 1 deletions
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),