diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-06-09 22:36:45 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2020-06-16 18:24:24 +0200 |
commit | 2be4d61a863f36beb765e9298c39994e42a714ab (patch) | |
tree | 7250faba941b162a3c910610b86db3eb8879c957 /sharpd/sharp_zebra.h | |
parent | Merge pull request #6390 from opensourcerouting/bfd-cp-fix (diff) | |
download | frr-2be4d61a863f36beb765e9298c39994e42a714ab.tar.xz frr-2be4d61a863f36beb765e9298c39994e42a714ab.zip |
sharpd: add zclient session create and delete
Add a couple of clis and some simple support that allows sharpd to
create extra zapi client sessions.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'sharpd/sharp_zebra.h')
-rw-r--r-- | sharpd/sharp_zebra.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sharpd/sharp_zebra.h b/sharpd/sharp_zebra.h index 7604f4b0a..cb2f38a6a 100644 --- a/sharpd/sharp_zebra.h +++ b/sharpd/sharp_zebra.h @@ -24,6 +24,10 @@ extern void sharp_zebra_init(void); +/* Add and delete extra zapi client sessions, for testing */ +int sharp_zclient_create(uint32_t session_id); +int sharp_zclient_delete(uint32_t session_id); + extern void vrf_label_add(vrf_id_t vrf_id, afi_t afi, mpls_label_t label); extern void route_add(const struct prefix *p, vrf_id_t, uint8_t instance, const struct nexthop_group *nhg, |