summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-02-09 10:51:33 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-03-27 16:19:28 -0400
commit7a230a9d0cd2ecf2183f0e679deb52c00e80a172 (patch)
tree60c6c54a43c56569e5a6aa52aefefdf7d1848047 /zebra/zebra_rib.c
parent9ef0c6ba876de49751fdd0ef8069adb3e8ef03ec (diff)
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c5
1 files 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,