]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: limit no re-install to NHG PROTO using routes
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 3 Sep 2020 17:04:10 +0000 (13:04 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 28 Sep 2020 16:41:00 +0000 (12:41 -0400)
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 <sworley@cumulusnetworks.com>
zebra/zebra_dplane.c

index 77abe8bb6de0a270e30933179cc54f59e426fbb1..d888ceff2c944bbf7af79b4edb71b196357b1c18 100644 (file)
@@ -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)