summaryrefslogtreecommitdiff
path: root/zebra/zebra_dplane.c
diff options
context:
space:
mode:
authorMark Stapp <mjs.ietf@gmail.com>2023-04-12 11:03:47 -0400
committerGitHub <noreply@github.com>2023-04-12 11:03:47 -0400
commit52ccf12c30c0bb62f8248199fffd3dcab98c827b (patch)
tree9b0fc19e443e968af038f49fd25b19767fa6f572 /zebra/zebra_dplane.c
parent4150fc5399f41884c5fd0f732b40d397b525c580 (diff)
parente25a0b138a196c7daf389989ebffbd09d345cd53 (diff)
Merge pull request #13249 from Pdoijode/connected-route-install-fix
zebra: Mark connected route as installed after interface flap event
Diffstat (limited to 'zebra/zebra_dplane.c')
-rw-r--r--zebra/zebra_dplane.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c
index f9253ebf76..e821572c5d 100644
--- a/zebra/zebra_dplane.c
+++ b/zebra/zebra_dplane.c
@@ -3745,6 +3745,11 @@ dplane_route_update_internal(struct route_node *rn,
NEXTHOP_FLAG_FIB);
}
+ if ((op == DPLANE_OP_ROUTE_UPDATE) && old_re && re &&
+ (old_re != re) &&
+ !CHECK_FLAG(re->status, ROUTE_ENTRY_INSTALLED))
+ SET_FLAG(re->status, ROUTE_ENTRY_INSTALLED);
+
dplane_ctx_free(&ctx);
return ZEBRA_DPLANE_REQUEST_SUCCESS;
}