From ae2992851bcf4bf832d282bb1e8945de0da1974a Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Wed, 27 Jun 2018 16:51:32 -0400 Subject: [PATCH] zebra: capture old data for route delete Need to capture 'old' values in conversion from re to dplane context. Signed-off-by: Mark Stapp --- zebra/zebra_dplane.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 43b08641a9..7ec0b6e9cb 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -463,6 +463,7 @@ static int dplane_ctx_route_init(dplane_ctx_h ctx, ctx->zd_op = op; ctx->zd_type = re->type; + ctx->zd_old_type = re->type; /* Prefixes: dest, and optional source */ srcdest_rnode_prefixes(rn, &p, &src_p); @@ -483,6 +484,7 @@ static int dplane_ctx_route_init(dplane_ctx_h ctx, ctx->zd_nexthop_mtu = re->nexthop_mtu; ctx->zd_instance = re->instance; ctx->zd_tag = re->tag; + ctx->zd_old_tag = re->tag; ctx->zd_distance = re->distance; table = srcdest_rnode_table(rn); -- 2.39.5