Skip to content

Commit 8ce0e51

Browse files
committed
zebra: Send nht resolved entry up to concerned protocols in all cases
There existed the idea, from Volta, that a nexthop group would not have the same nexthops installed -vs- what FRR actually sent down. The dplane would notify you. With the addition of 06525c4 the code was put behind a bit of a wall controlled the usage of it. The flag ROUTE_ENTRY_USE_FIB_NHG flag was being used to control which set was being sent up to concerned parties in nexthop tracking. Put this flag behind the wall and do not necessarily set it when we receive a data plane notification about a route being installed or not. Fixes: #12706 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
1 parent 9eca0bd commit 8ce0e51

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

zebra/zebra_rib.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,9 +1788,12 @@ static bool rib_update_re_from_ctx(struct route_entry *re,
17881788
ctxnhg->nexthop != NULL ? "" : " (empty)");
17891789

17901790
/* Set the flag about the dedicated fib list */
1791-
SET_FLAG(re->status, ROUTE_ENTRY_USE_FIB_NHG);
1792-
if (ctxnhg->nexthop)
1793-
copy_nexthops(&(re->fib_ng.nexthop), ctxnhg->nexthop, NULL);
1791+
if (zrouter.asic_notification_nexthop_control) {
1792+
SET_FLAG(re->status, ROUTE_ENTRY_USE_FIB_NHG);
1793+
if (ctxnhg->nexthop)
1794+
copy_nexthops(&(re->fib_ng.nexthop), ctxnhg->nexthop,
1795+
NULL);
1796+
}
17941797

17951798
check_backups:
17961799

0 commit comments

Comments
 (0)