Skip to content

Commit

Permalink
zebra: Handle routes appropriately
Browse files Browse the repository at this point in the history
Signed-off-by: DennyAgussy <gkruparaju@msystechnologies.com>
  • Loading branch information
DennyAgussy committed Oct 9, 2024
1 parent 47cdfbd commit 3b81af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/zebra_nhg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2648,7 +2648,7 @@ static unsigned nexthop_active_check(struct route_node *rn,

ifp = if_lookup_by_index(nexthop->ifindex, nexthop->vrf_id);

if (ifp && ifp->vrf->vrf_id == vrf_id && if_is_up(ifp)) {
if (ifp && ifp->vrf->vrf_id == vrf_id && if_is_up(ifp) && if_connected_count(ifp->connected)) {
SET_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE);
goto skip_check;
}
Expand Down

0 comments on commit 3b81af5

Please sign in to comment.