Skip to content

Commit

Permalink
zebra: don't uninstall kernel routes
Browse files Browse the repository at this point in the history
After the nexthop check is fixed, zebra will wrongly uninstall the kernel routes
with inactive nexthop.

This commit would skip the uninstallation for kernel routes.

Signed-off-by: anlan_cs <[email protected]>
  • Loading branch information
anlancs committed Dec 14, 2024
1 parent d371c20 commit 6cac71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/zebra_rib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ static void rib_process(struct route_node *rn)
rib_process_update_fib(zvrf, rn, old_fib, new_fib);
else if (new_fib)
rib_process_add_fib(zvrf, rn, new_fib);
else if (old_fib)
else if (old_fib && !RIB_SYSTEM_ROUTE(old_fib))
rib_process_del_fib(zvrf, rn, old_fib);

/* Remove all RE entries queued for removal */
Expand Down

0 comments on commit 6cac71a

Please sign in to comment.