From: Stephen Worley Date: Thu, 3 Sep 2020 17:04:10 +0000 (-0400) Subject: zebra: limit no re-install to NHG PROTO using routes X-Git-Tag: base_7.6~489^2~7 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3d3a9dc8a7873f0384492f36a910571da1de142d;p=matthieu%2Ffrr.git 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 --- 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)