]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: capture old data for route delete
authorMark Stapp <mjs@voltanet.io>
Wed, 27 Jun 2018 20:51:32 +0000 (16:51 -0400)
committerMark Stapp <mjs@voltanet.io>
Thu, 25 Oct 2018 12:34:30 +0000 (08:34 -0400)
Need to capture 'old' values in conversion from re to dplane
context.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_dplane.c

index 43b08641a9855e974c14ea25992036520eb5b9ed..7ec0b6e9cb77bb9f7532fd95e73361e676a52c1b 100644 (file)
@@ -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);