zebra: Better handle replacing our route by a system route

When a operator has a FRR based route installed into the
FIB and a better route comes in from the system.  There
is code in the data plane to schedule the batching
and continue processing.  But in this case we are done
so we can just return

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-11-02 19:22:15 -04:00
parent 457fb2c846
commit 6b390b3c7b

View File

@ -2702,7 +2702,7 @@ netlink_put_route_update_msg(struct nl_batch *bth, struct zebra_dplane_ctx *ctx)
*/ */
if (RSYSTEM_ROUTE(dplane_ctx_get_type(ctx)) if (RSYSTEM_ROUTE(dplane_ctx_get_type(ctx))
&& !RSYSTEM_ROUTE(dplane_ctx_get_old_type(ctx))) && !RSYSTEM_ROUTE(dplane_ctx_get_old_type(ctx)))
netlink_batch_add_msg( return netlink_batch_add_msg(
bth, ctx, netlink_delroute_msg_encoder, bth, ctx, netlink_delroute_msg_encoder,
true); true);
} else { } else {