From 3d3a9dc8a7873f0384492f36a910571da1de142d Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Thu, 3 Sep 2020 13:04:10 -0400 Subject: [PATCH] zebra: limit no re-install to NHG PROTO using routes Limit the not re-installation of routes with the same NHG ID to routes that are using the new NHG PROTO API. This would only include sharpd and EVPN-MH for now. Signed-off-by: Stephen Worley --- zebra/zebra_dplane.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 77abe8bb6d..d888ceff2c 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -2367,7 +2367,8 @@ dplane_route_update_internal(struct route_node *rn, */ if ((dplane_ctx_get_type(ctx) == dplane_ctx_get_old_type(ctx)) && (dplane_ctx_get_nhe_id(ctx) - == dplane_ctx_get_old_nhe_id(ctx))) { + == dplane_ctx_get_old_nhe_id(ctx)) + && (dplane_ctx_get_nhe_id(ctx) >= ZEBRA_NHG_PROTO_LOWER)) { struct nexthop *nexthop; if (IS_ZEBRA_DEBUG_DPLANE) -- 2.39.5