From 36602be128d4f4e49c19555a194430b9691c9a30 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Tue, 18 Oct 2016 10:18:49 -0700 Subject: [PATCH] zebra: Move netlink error message under a debug In some circumstances, the quagga log is being filled with repetitive error messages reporting "network is down" with RTM_NEWROUTE. Moved this particular scenario under "debug zebra kernel" instead of making it an unprotected error message. Manually tested using the same script with and without the fix to verify the message is suppressed. Ticket: CM-11173 Signed-off-by: Don Slice Reviewed-by: Donald Sharp --- zebra/rt_netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 0549900650..5063ba6766 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -399,7 +399,8 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *, if (nl == &zns->netlink_cmd && ((msg_type == RTM_DELROUTE && (-errnum == ENODEV || -errnum == ESRCH)) - || (msg_type == RTM_NEWROUTE && -errnum == EEXIST))) + || (msg_type == RTM_NEWROUTE && + (-errnum == ENETDOWN ||-errnum == EEXIST)))) { if (IS_ZEBRA_DEBUG_KERNEL) zlog_debug ("%s: error: %s type=%s(%u), seq=%u, pid=%u", -- 2.39.5