Skip to content

Commit

Permalink
zebra: Fix debug of filtering out prefix due to routemap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
donaldsharp committed Oct 20, 2022
1 parent 4ca1225 commit 040a0e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zebra/zebra_nhg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2618,10 +2618,8 @@ static unsigned nexthop_active_check(struct route_node *rn,
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);
}
Expand Down

0 comments on commit 040a0e6

Please sign in to comment.