diff options
| author | anlan_cs <anlan_cs@126.com> | 2024-12-14 18:30:18 +0800 | 
|---|---|---|
| committer | anlan_cs <anlan_cs@126.com> | 2024-12-17 16:14:30 +0800 | 
| commit | 298bc623e78a15ae950bfbac9a103e24ac57e8bd (patch) | |
| tree | 5cb9901076519629bd174b4f0f2c635342a48332 /zebra | |
| parent | b9538fe481d1955090e41c04d86b2322362a83f5 (diff) | |
zebra: don't uninstall kernel routes
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 <anlan_cs@126.com>
Diffstat (limited to 'zebra')
| -rw-r--r-- | zebra/zebra_rib.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index e64a620f00..0521029e6c 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -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 */  | 
