diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-25 14:45:16 -0400 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-26 08:46:13 +0200 |
| commit | 6ab5222f78d40cfd146674bee9f01e5cd29c4747 (patch) | |
| tree | ce0833e4ac0e4506a50df2369001d605e164e8fa | |
| parent | d4d71f1133e02d1b9595b5f9a3599859ba780611 (diff) | |
zebra: Add a breadcrumb for when we ignore a route
When we receive a route that we think we own and we
are not in startup conditions, then add a small debug
to help debug the issue when this happens, instead
of silently just ignoring the route.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | zebra/rt_netlink.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 1ea2b85362..08c81d037a 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -310,8 +310,12 @@ static int netlink_route_change_read_unicast(struct sockaddr_nl *snl, return 0; if (!startup && is_selfroute(rtm->rtm_protocol) - && h->nlmsg_type == RTM_NEWROUTE) + && h->nlmsg_type == RTM_NEWROUTE) { + if (IS_ZEBRA_DEBUG_KERNEL) + zlog_debug("Route type: %d Received that we think we have originated, ignoring", + rtm->rtm_protocol); return 0; + } /* We don't care about change notifications for the MPLS table. */ /* TODO: Revisit this. */ |
