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 <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2020-09-03 13:04:10 -04:00
parent 3509dd49c0
commit 3d3a9dc8a7

View 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)