diff options
| author | Hiroki Shirokura <slank.dev@gmail.com> | 2020-12-19 09:28:38 +0900 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 10:24:48 -0400 |
| commit | 618538f8ab65eeee12323a460336dffb08cd36e8 (patch) | |
| tree | a4b84d101ffd7950ea21e256d0664e2c72391918 /lib/zclient.h | |
| parent | bfaab44d1e6ffa23cfc983ccd72d98e6082e38df (diff) | |
lib: add usual func to install SRv6 localsid (step4)
This commit add usuful function to configure SRv6 localsid
which is represented with seg6local lwt route.
Now, it can support only NEXTHOP_TYPE_IFINDEX route.
Actual configurationof SRv6 localsid is performed with
ZEBRA_ROUTE_ADD. So this is just a wrapper function
for route-install.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'lib/zclient.h')
| -rw-r--r-- | lib/zclient.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index 95f3775d5b..e06079673a 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -933,6 +933,11 @@ extern enum zclient_send_status zclient_send_vrf_label(struct zclient *zclient, vrf_id_t vrf_id, afi_t afi, mpls_label_t label, enum lsp_types_t ltype); +extern enum zclient_send_status +zclient_send_localsid(struct zclient *zclient, const struct in6_addr *sid, + ifindex_t oif, enum seg6local_action_t action, + const struct seg6local_context *context); + extern void zclient_send_reg_requests(struct zclient *, vrf_id_t); extern void zclient_send_dereg_requests(struct zclient *, vrf_id_t); extern enum zclient_send_status |
