summaryrefslogtreecommitdiff
path: root/sharpd/sharp_zebra.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-02-07 16:50:01 -0500
committerMark Stapp <mjs@voltanet.io>2020-02-25 10:55:51 -0500
commitc9e5adba735ca856e2294f95e01917a6a80e0aaa (patch)
treedc8e58726cd777902db5c9739570be6bc8f1e296 /sharpd/sharp_zebra.h
parent0d60f61f18549c72e7c4182c536ee2856ab77fe0 (diff)
sharpd: add support for install/remove lsps
First round of support for exercising the lsp and ftn paths using sharpd. This supports lsp-only, and binding to ipv4 prefix. Also use the common lib nexthop-to-zapi helper api instead of sharpd's open-coded version. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'sharpd/sharp_zebra.h')
-rw-r--r--sharpd/sharp_zebra.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sharpd/sharp_zebra.h b/sharpd/sharp_zebra.h
index 57ffcc7690..c995d557af 100644
--- a/sharpd/sharp_zebra.h
+++ b/sharpd/sharp_zebra.h
@@ -37,4 +37,8 @@ extern void sharp_install_routes_helper(struct prefix *p, vrf_id_t vrf_id,
uint32_t routes);
extern void sharp_remove_routes_helper(struct prefix *p, vrf_id_t vrf_id,
uint8_t instance, uint32_t routes);
+
+int sharp_install_lsps_helper(bool install_p, const struct prefix *p,
+ uint8_t type, int instance, uint32_t in_label,
+ const struct nexthop_group *nhg);
#endif