From 81194feec9cdb1d0ea6ea591c1ffe80878e5ac06 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 29 Sep 2020 07:45:19 -0400 Subject: [PATCH] zebra: Add missing reason we could not make an active_nexthop check Add a missing reason as to why we are unable to make an active nexthop check be successful. Signed-off-by: Donald Sharp --- zebra/zebra_nhg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 6aa9ba0ebc..4766fd1f3d 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -1985,6 +1985,11 @@ static int nexthop_active(afi_t afi, struct route_entry *re, || nexthop->type == NEXTHOP_TYPE_IPV6) nexthop->ifindex = newhop->ifindex; else if (nexthop->ifindex != newhop->ifindex) { + if (IS_ZEBRA_DEBUG_NHG_DETAIL) + zlog_debug( + "%s: %pNHv given ifindex does not match nexthops ifindex found found: %pNHv", + __func__, nexthop, + newhop); /* * NEXTHOP_TYPE_*_IFINDEX but ifindex * doesn't match what we found. -- 2.39.5