summaryrefslogtreecommitdiff
path: root/zebra/zebra_dplane.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-04-03 04:46:14 -0400
committerMark Stapp <mjs@voltanet.io>2019-05-28 08:29:00 -0400
commit9651af6181fb402cf5a67abcfc77c7943a53d90c (patch)
tree20674fec036cebe42b124d00598501999c9c8130 /zebra/zebra_dplane.c
parent0024a559c81072f8877643af32dd42cbb6c68530 (diff)
zebra: add 'set' api for dplane context provider
Add a setter for the 'source provider' attribute in dplane contexts. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_dplane.c')
-rw-r--r--zebra/zebra_dplane.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c
index a98a1bce79..6b3d24aeb3 100644
--- a/zebra/zebra_dplane.c
+++ b/zebra/zebra_dplane.c
@@ -729,6 +729,14 @@ uint32_t dplane_ctx_get_notif_provider(const struct zebra_dplane_ctx *ctx)
return ctx->zd_notif_provider;
}
+void dplane_ctx_set_notif_provider(struct zebra_dplane_ctx *ctx,
+ uint32_t id)
+{
+ DPLANE_CTX_VALID(ctx);
+
+ ctx->zd_notif_provider = id;
+}
+
void dplane_ctx_set_type(struct zebra_dplane_ctx *ctx, int type)
{
DPLANE_CTX_VALID(ctx);