From: Mark Stapp Date: Wed, 27 Jun 2018 20:51:32 +0000 (-0400) Subject: zebra: capture old data for route delete X-Git-Tag: frr-7.1-dev~233^2~17 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ae2992851bcf4bf832d282bb1e8945de0da1974a;p=matthieu%2Ffrr.git zebra: capture old data for route delete Need to capture 'old' values in conversion from re to dplane context. Signed-off-by: Mark Stapp --- 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);