diff options
author | Mark Stapp <mjs@voltanet.io> | 2019-04-02 18:25:33 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2019-05-28 14:28:49 +0200 |
commit | 0024a559c81072f8877643af32dd42cbb6c68530 (patch) | |
tree | 9b4de026d6e9941adfe109a818198e11e407507b /zebra/zebra_dplane.h | |
parent | zebra: add a fib-specific nexthop-group (diff) | |
download | frr-0024a559c81072f8877643af32dd42cbb6c68530.tar.xz frr-0024a559c81072f8877643af32dd42cbb6c68530.zip |
zebra: add source plugin info to dplane context
Some updates may be the result of a plugin's actions - such
as an async notification. Add accessor so that we can
identify that an update was generated by a plugin.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_dplane.h')
-rw-r--r-- | zebra/zebra_dplane.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h index 0a487e071..75b7748cb 100644 --- a/zebra/zebra_dplane.h +++ b/zebra/zebra_dplane.h @@ -201,6 +201,9 @@ uint32_t dplane_ctx_get_old_seq(const struct zebra_dplane_ctx *ctx); 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); +bool dplane_ctx_is_from_notif(const struct zebra_dplane_ctx *ctx); +uint32_t dplane_ctx_get_notif_provider(const struct zebra_dplane_ctx *ctx); + /* Accessors for route update information */ void dplane_ctx_set_type(struct zebra_dplane_ctx *ctx, int type); int dplane_ctx_get_type(const struct zebra_dplane_ctx *ctx); |