diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-06-09 16:36:45 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-06-16 12:24:24 -0400 |
| commit | 2be4d61a863f36beb765e9298c39994e42a714ab (patch) | |
| tree | 7250faba941b162a3c910610b86db3eb8879c957 /sharpd/sharp_zebra.h | |
| parent | cba183561b53b3562ec7c4dd23115b02efc26e22 (diff) | |
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 7604f4b0a4..cb2f38a6ab 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, |
