From 7a230a9d0cd2ecf2183f0e679deb52c00e80a172 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 9 Feb 2019 10:51:33 -0500 Subject: [PATCH] zebra: On route install/update failure correctly indicate in rib When we get a route install failure from the kernel, actually indicate in the rib the status of the routes. Signed-off-by: Donald Sharp --- zebra/zebra_rib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 77cb38855d..aaf9c40271 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -2010,9 +2010,10 @@ static void rib_process_result(struct zebra_dplane_ctx *ctx) zsend_route_notify_owner_ctx(ctx, ZAPI_ROUTE_INSTALLED); } else { - if (re) + if (re) { SET_FLAG(re->status, ROUTE_ENTRY_FAILED); - if (old_re) + UNSET_FLAG(re->status, ROUTE_ENTRY_INSTALLED); + } if (old_re) SET_FLAG(old_re->status, ROUTE_ENTRY_FAILED); if (re) zsend_route_notify_owner(re, dest_pfx, -- 2.39.5