diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-10-19 12:44:55 -0400 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2022-10-21 04:44:21 +0000 |
| commit | 6f95deb06c3f7e414b9d3f731054cf67a16a77ee (patch) | |
| tree | 8af8a4d951004ea39968eec6d81f97d5921cd04b | |
| parent | 5e82185636dd92334b0595186a90ef2c6f63c3bf (diff) | |
zebra: Fix debug of filtering out prefix due to routemap
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)
| -rw-r--r-- | zebra/zebra_nhg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 1964c763c5..e50023201b 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -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); } |
