From: Donald Sharp Date: Sat, 9 Feb 2019 15:51:33 +0000 (-0500) Subject: zebra: On route install/update failure correctly indicate in rib X-Git-Tag: 7.1_pulled~129^2~14 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7a230a9d0cd2ecf2183f0e679deb52c00e80a172;p=mirror%2Ffrr.git 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 --- 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,