]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Add missing reason we could not make an active_nexthop check
authorDonald Sharp <sharpd@nvidia.com>
Tue, 29 Sep 2020 11:45:19 +0000 (07:45 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 7 Oct 2020 08:01:16 +0000 (11:01 +0300)
Add a missing reason as to why we are unable to make an active nexthop
check be successful.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_nhg.c

index aabbd875ecdb74eadf48cfeda59d2c8397e1f13c..b0a5dd900e217afa3d7a43178b585bd8e730c969 100644 (file)
@@ -1991,6 +1991,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.