]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Fix debug of filtering out prefix due to routemap
authorDonald Sharp <sharpd@nvidia.com>
Wed, 19 Oct 2022 16:44:55 +0000 (12:44 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 20 Oct 2022 11:43:45 +0000 (07:43 -0400)
The debug for notification about a filtered prefix was
just printing the nexthop ifindex and vrf id.  Not all
nexthops have this data.  Just print out the actual nexthop

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

index 1964c763c579ad6e51c3bceebc0e51239c6f52b7..e50023201be24689f7edb1c880106b6798813622 100644 (file)
@@ -2618,10 +2618,8 @@ skip_check:
        if (ret == RMAP_DENYMATCH) {
                if (IS_ZEBRA_DEBUG_RIB) {
                        zlog_debug(
-                               "%u:%pRN: Filtering out with NH out %s due to route map",
-                               re->vrf_id, rn,
-                               ifindex2ifname(nexthop->ifindex,
-                                              nexthop->vrf_id));
+                               "%u:%pRN: Filtering out with NH %pNHv due to route map",
+                               re->vrf_id, rn, nexthop);
                }
                UNSET_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE);
        }