]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: ignore GETVLAN errors at startup
authorStephen Worley <sworley@nvidia.com>
Fri, 9 Dec 2022 23:40:37 +0000 (18:40 -0500)
committerStephen Worley <sworley@nvidia.com>
Mon, 13 Feb 2023 23:12:05 +0000 (18:12 -0500)
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>
zebra/kernel_netlink.c

index b6652aa82480ad826a0d067d85d1d6eda6e59465..fac6acae0c8d52df4024b48b6d6358fa269f700f 100644 (file)
@@ -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),