if (!pim_nht_lookup_ecmp(pim, &rp_info->rp.source_nexthop, nht_p, &rp_info->group,
true)) {
if (PIM_DEBUG_PIM_NHT_RP)
- zlog_debug(
- "Unable to lookup nexthop for rp specified");
+ zlog_debug("%s: unable to lookup nexthop for rp %pPA", __func__,
+ &rp_info->rp.rpf_addr);
+
pim_nht_rp_del(rp_info);
}
}
__func__, &nht_p, &rp_info->group);
pim_nht_find_or_track(pim, nht_p, NULL, rp_info, NULL);
pim_rpf_set_refresh_time(pim);
- pim_nht_lookup_ecmp(pim, &rp_info->rp.source_nexthop, nht_p, &rp_info->group, true);
+ if (!pim_nht_lookup_ecmp(pim, &rp_info->rp.source_nexthop, nht_p, &rp_info->group,
+ true))
+ if (PIM_DEBUG_PIM_NHT_RP)
+ zlog_debug("%s: unable to lookup nexthop for rp %pPA", __func__,
+ &rp_info->rp.rpf_addr);
+
return (&rp_info->rp);
}
up = pim_upstream_find(pim, &sg);
if (up) {
memcpy(&nexthop, &up->rpf.source_nexthop, sizeof(struct pim_nexthop));
- pim_nht_lookup_ecmp(pim, &nexthop, vif_source, &grp, false);
+ if (!pim_nht_lookup_ecmp(pim, &nexthop, vif_source, &grp, false))
+ if (PIM_DEBUG_PIM_NHT_RP)
+ zlog_debug("%s: Nexthop Lookup failed vif_src:%pPA, sg.src:%pPA, sg.grp:%pPA",
+ __func__, &vif_source, &sg.src, &sg.grp);
+
if (nexthop.interface)
input_iface_vif_index = pim_if_find_vifindex_by_ifindex(
pim, nexthop.interface->ifindex);