forked from Mirror/frr
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>
This commit is contained in:
parent
0024a559c8
commit
9651af6181
|
@ -729,6 +729,14 @@ uint32_t dplane_ctx_get_notif_provider(const struct zebra_dplane_ctx *ctx)
|
||||||
return ctx->zd_notif_provider;
|
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)
|
void dplane_ctx_set_type(struct zebra_dplane_ctx *ctx, int type)
|
||||||
{
|
{
|
||||||
DPLANE_CTX_VALID(ctx);
|
DPLANE_CTX_VALID(ctx);
|
||||||
|
|
|
@ -202,6 +202,8 @@ void dplane_ctx_set_vrf(struct zebra_dplane_ctx *ctx, vrf_id_t vrf);
|
||||||
vrf_id_t dplane_ctx_get_vrf(const struct zebra_dplane_ctx *ctx);
|
vrf_id_t dplane_ctx_get_vrf(const struct zebra_dplane_ctx *ctx);
|
||||||
|
|
||||||
bool dplane_ctx_is_from_notif(const struct zebra_dplane_ctx *ctx);
|
bool dplane_ctx_is_from_notif(const struct zebra_dplane_ctx *ctx);
|
||||||
|
void dplane_ctx_set_notif_provider(struct zebra_dplane_ctx *ctx,
|
||||||
|
uint32_t id);
|
||||||
uint32_t dplane_ctx_get_notif_provider(const struct zebra_dplane_ctx *ctx);
|
uint32_t dplane_ctx_get_notif_provider(const struct zebra_dplane_ctx *ctx);
|
||||||
|
|
||||||
/* Accessors for route update information */
|
/* Accessors for route update information */
|
||||||
|
|
Loading…
Reference in a new issue