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>
(cherry picked from commit
040a0e6d26cb446806f940130c2fac95c2b0f441)
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);
}