pimd: Add whether or not the rpf succeeded or not to the debug

Hard to know what is going on if the debug doesn't tell us.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2023-08-12 11:40:30 -04:00
parent fc6115ced7
commit 5385202399

View File

@ -461,15 +461,15 @@ static int pim_update_upstream_nh_helper(struct hash_bucket *bucket, void *arg)
} }
if (PIM_DEBUG_PIM_NHT) { if (PIM_DEBUG_PIM_NHT) {
zlog_debug( zlog_debug("%s: NHT upstream %s(%s) old ifp %s new ifp %s rpf_result: %d",
"%s: NHT upstream %s(%s) old ifp %s new ifp %s", __func__, up->sg_str, pim->vrf->name,
__func__, up->sg_str, pim->vrf->name, old.source_nexthop.interface ? old.source_nexthop
old.source_nexthop.interface ? old.source_nexthop .interface->name
.interface->name : "Unknown",
: "Unknown", up->rpf.source_nexthop.interface ? up->rpf.source_nexthop
up->rpf.source_nexthop.interface ? up->rpf.source_nexthop .interface->name
.interface->name : "Unknown",
: "Unknown"); rpf_result);
} }
return HASHWALK_CONTINUE; return HASHWALK_CONTINUE;