mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 13:27:53 +00:00
zebra: capture old data for route delete
Need to capture 'old' values in conversion from re to dplane context. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
97f5b44182
commit
ae2992851b
@ -463,6 +463,7 @@ static int dplane_ctx_route_init(dplane_ctx_h ctx,
|
|||||||
ctx->zd_op = op;
|
ctx->zd_op = op;
|
||||||
|
|
||||||
ctx->zd_type = re->type;
|
ctx->zd_type = re->type;
|
||||||
|
ctx->zd_old_type = re->type;
|
||||||
|
|
||||||
/* Prefixes: dest, and optional source */
|
/* Prefixes: dest, and optional source */
|
||||||
srcdest_rnode_prefixes(rn, &p, &src_p);
|
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_nexthop_mtu = re->nexthop_mtu;
|
||||||
ctx->zd_instance = re->instance;
|
ctx->zd_instance = re->instance;
|
||||||
ctx->zd_tag = re->tag;
|
ctx->zd_tag = re->tag;
|
||||||
|
ctx->zd_old_tag = re->tag;
|
||||||
ctx->zd_distance = re->distance;
|
ctx->zd_distance = re->distance;
|
||||||
|
|
||||||
table = srcdest_rnode_table(rn);
|
table = srcdest_rnode_table(rn);
|
||||||
|
Loading…
Reference in New Issue
Block a user