mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 18:01:54 +00:00
zebra: zebra_nhg_rib_find() handle recursive case
When going through the zebra_nhg_rib_find(), we now handle the case of if that nexthop has been recursively resolved. A depend is created and passed along to zebra_nhg_find(). Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
583965448f
commit
360aefc018
@ -772,6 +772,10 @@ zebra_nhg_rib_find(uint32_t id, struct nexthop_group *nhg, afi_t rt_afi)
|
||||
/* change the afi/vrf_id since its a group */
|
||||
nhg_afi = AFI_UNSPEC;
|
||||
nhg_vrf_id = 0;
|
||||
} else if (CHECK_FLAG(nhg->nexthop->flags, NEXTHOP_FLAG_RECURSIVE)) {
|
||||
nhg_connected_head_init(&nhg_depends);
|
||||
handle_recursive_depend(&nhg_depends, nhg->nexthop->resolved,
|
||||
rt_afi);
|
||||
}
|
||||
|
||||
if (!zebra_nhg_find(&nhe, id, nhg, &nhg_depends, nhg_vrf_id, nhg_afi,
|
||||
|
Loading…
Reference in New Issue
Block a user