summaryrefslogtreecommitdiff
path: root/isisd/isis_nb.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-01-27 16:04:49 +0100
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-09-11 17:34:55 +0200
commit95096e9585e254f6b56578fb159ffb2495384f9e (patch)
tree29cf35576cc5da5f2a0245546a55401843d42f66 /isisd/isis_nb.c
parent6b881e41aeca4b0ad9518bc04074538767a25a91 (diff)
isisd: Add nb command to configure an SRv6 locator
Add a northbound command to configure an SRv6 locator for a specific IS-IS area. After configuring a locator, `isis_zebra_srv6_manager_get_locator_chunk` is called to ask zebra to allocate a chunk from the configured locator. The allocated chunk will be owned by IS-IS. IS-IS can allocate SIDs from its chunk. Currently, we support only one locator per-area. Therefore, before configuring a locator we unset the previously configured locator, if there was any. Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'isisd/isis_nb.c')
-rw-r--r--isisd/isis_nb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/isisd/isis_nb.c b/isisd/isis_nb.c
index 4c42d18eb7..4fae0836bf 100644
--- a/isisd/isis_nb.c
+++ b/isisd/isis_nb.c
@@ -868,6 +868,12 @@ const struct frr_yang_module_info frr_isisd_info = {
},
},
{
+ .xpath = "/frr-isisd:isis/instance/segment-routing-srv6/locator",
+ .cbs = {
+ .modify = isis_instance_segment_routing_srv6_locator_modify,
+ },
+ },
+ {
.xpath = "/frr-isisd:isis/instance/mpls/ldp-sync",
.cbs = {
.cli_show = cli_show_isis_mpls_ldp_sync,