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/zapi_msg.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/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 86e4f2570c..e59c49f15e 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -849,7 +849,9 @@ void zsend_rule_notify_owner(const struct zebra_dplane_ctx *ctx,  	s = stream_new(ZEBRA_MAX_PACKET_SIZ); -	zclient_create_header(s, ZEBRA_RULE_NOTIFY_OWNER, VRF_DEFAULT); +	zclient_create_header(s, ZEBRA_RULE_NOTIFY_OWNER, +			      dplane_ctx_rule_get_vrfid(ctx)); +  	stream_put(s, ¬e, sizeof(note));  	stream_putl(s, dplane_ctx_rule_get_seq(ctx));  	stream_putl(s, dplane_ctx_rule_get_priority(ctx));  | 
