Skip to content

Commit

Permalink
Merge pull request FRRouting#15598 from louis-6wind/fix-nhg-iface
Browse files Browse the repository at this point in the history
zebra: fix rejected route due to wrong nexthop-group
  • Loading branch information
mjstapp authored Mar 26, 2024
2 parents 73e0b7a + 2a13b47 commit 4989677
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebra/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ static void if_nhg_dependents_release(const struct interface *ifp)
frr_each(nhg_connected_tree, &zif->nhg_dependents, rb_node_dep) {
rb_node_dep->nhe->ifp = NULL; /* Null it out */
zebra_nhg_check_valid(rb_node_dep->nhe);
if (CHECK_FLAG(rb_node_dep->nhe->flags,
NEXTHOP_GROUP_KEEP_AROUND) &&
rb_node_dep->nhe->refcnt == 1)
zebra_nhg_decrement_ref(rb_node_dep->nhe);
}
}

Expand Down

0 comments on commit 4989677

Please sign in to comment.