diff options
| author | Mark Stapp <mjs@labn.net> | 2023-10-05 11:02:42 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@labn.net> | 2023-10-05 16:22:40 -0400 |
| commit | 4fabe90c7f2a1e7b956b6c79945f6d3679c8ccf9 (patch) | |
| tree | 417f1e300c87f7dac17ad605a75bc2a53010ef1d /zebra/zebra_dplane.c | |
| parent | 36518032216956915968628864e6d4f1c5fb31f5 (diff) | |
lib,*: add vrf id to pbr rule results zapi message
The iprule/pbr rule object has a vrf id, and zebra uses
that internally, but the vrf id isn't returned to clients
who install rules and are waiting for results. Include the
vrf_id sent by the client in the zapi result notification
message; update the existing clients so they decode the id.
Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'zebra/zebra_dplane.c')
| -rw-r--r-- | zebra/zebra_dplane.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 03d7bb88a2..099a6e2725 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -3031,6 +3031,13 @@ void dplane_ctx_rule_set_dp_flow_ptr(struct zebra_dplane_ctx *ctx, ctx->u.rule.new.dp_flow_ptr = dp_flow_ptr; } +vrf_id_t dplane_ctx_rule_get_vrfid(const struct zebra_dplane_ctx *ctx) +{ + DPLANE_CTX_VALID(ctx); + + return ctx->u.rule.new.prule.vrf_id; +} + /*********************************************************************** * PBR RULE ACCESSORS - end **********************************************************************/ |
