mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-21 11:50:07 +00:00
zebra: Check depends for validity, not dependents
When determining whether to set the nhg_hash_entry as invalid, we should have been checking the depends, not the dependents. If its a group and at least one of its depends is valid, the group is still valid. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
5a935f79d5
commit
0b4dadb385
@ -1081,8 +1081,7 @@ void zebra_nhg_set_invalid(struct nhg_hash_entry *nhe)
|
||||
struct nhg_connected *rb_node_dep = NULL;
|
||||
|
||||
/* If anthing else in the group is valid, the group is valid */
|
||||
frr_each(nhg_connected_tree, &nhe->nhg_dependents,
|
||||
rb_node_dep) {
|
||||
frr_each(nhg_connected_tree, &nhe->nhg_depends, rb_node_dep) {
|
||||
if (CHECK_FLAG(rb_node_dep->nhe->flags,
|
||||
NEXTHOP_GROUP_VALID))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user