]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Make nexthop_active check use the same debug
authorDonald Sharp <sharpd@nvidia.com>
Tue, 29 Sep 2020 11:54:35 +0000 (07:54 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 7 Oct 2020 08:01:16 +0000 (11:01 +0300)
When debugging why a route was not successfully installed into the
rib, it would be preferable that the end user only have to turn
on `debug zebra rib detail` as that is what we have been telling
people to do for the last couple of years.  Consolidate *back*
to this.

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

index b0a5dd900e217afa3d7a43178b585bd8e730c969..04f1a633f740d150f85a5a89ac11775eef7ccebb 100644 (file)
@@ -1829,13 +1829,13 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
        if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ONLINK)) {
                ifp = if_lookup_by_index(nexthop->ifindex, nexthop->vrf_id);
                if (!ifp) {
-                       if (IS_ZEBRA_DEBUG_NHG_DETAIL)
+                       if (IS_ZEBRA_DEBUG_RIB_DETAILED)
                                zlog_debug("nexthop %pNHv marked onlink but nhif %u doesn't exist",
                                           nexthop, nexthop->ifindex);
                        return 0;
                }
                if (!if_is_operative(ifp)) {
-                       if (IS_ZEBRA_DEBUG_NHG_DETAIL)
+                       if (IS_ZEBRA_DEBUG_RIB_DETAILED)
                                zlog_debug("nexthop %pNHv marked onlink but nhif %s is not operational",
                                           nexthop, ifp->name);
                        return 0;
@@ -1991,7 +1991,7 @@ 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)
+                                       if (IS_ZEBRA_DEBUG_RIB_DETAILED)
                                                zlog_debug(
                                                        "%s: %pNHv given ifindex does not match nexthops ifindex found found: %pNHv",
                                                        __func__, nexthop,
@@ -2017,7 +2017,7 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
 
                        /* Only useful if installed */
                        if (!CHECK_FLAG(match->status, ROUTE_ENTRY_INSTALLED)) {
-                               if (IS_ZEBRA_DEBUG_NHG_DETAIL)
+                               if (IS_ZEBRA_DEBUG_RIB_DETAILED)
                                        zlog_debug("%s: match %p (%u) not installed",
                                                   __func__, match,
                                                   match->nhe->id);