]> 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)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 29 Sep 2020 11:45:19 +0000 (07:45 -0400)
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 6aa9ba0ebc95eed4efd9d0da46541b9740759223..4766fd1f3deace5aff51ca116ef7dd9c241bc149 100644 (file)
@@ -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.