From d8391312733858591cd13f36f6ba6e5411f34a69 Mon Sep 17 00:00:00 2001 From: Olivier Dugeon Date: Wed, 20 May 2020 11:18:31 +0200 Subject: isisd: Add Segment Routing Local Block support Segment Routing Local Block (SRLB) is part of RFC8667. This change introduces the possibility for isisd to advertize SRLB in LSP. Base and Range of SRLB could be configured through CLI or Yang. Adjacency-SID are now using this SRLB for label allocation. SRLB could also be used for SID-Binding (e.g. LDP to SR). Signed-off-by: Olivier Dugeon --- isisd/isis_nb.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'isisd/isis_nb.c') diff --git a/isisd/isis_nb.c b/isisd/isis_nb.c index f1f183cc5..1d842eb13 100644 --- a/isisd/isis_nb.c +++ b/isisd/isis_nb.c @@ -465,6 +465,7 @@ const struct frr_yang_module_info frr_isisd_info = { .xpath = "/frr-isisd:isis/instance/segment-routing/srgb", .cbs = { .apply_finish = isis_instance_segment_routing_srgb_apply_finish, + .pre_validate = isis_instance_segment_routing_srgb_pre_validate, .cli_show = cli_show_isis_srgb, }, }, @@ -480,6 +481,26 @@ const struct frr_yang_module_info frr_isisd_info = { .modify = isis_instance_segment_routing_srgb_upper_bound_modify, }, }, + { + .xpath = "/frr-isisd:isis/instance/segment-routing/srlb", + .cbs = { + .apply_finish = isis_instance_segment_routing_srlb_apply_finish, + .pre_validate = isis_instance_segment_routing_srlb_pre_validate, + .cli_show = cli_show_isis_srlb, + }, + }, + { + .xpath = "/frr-isisd:isis/instance/segment-routing/srlb/lower-bound", + .cbs = { + .modify = isis_instance_segment_routing_srlb_lower_bound_modify, + }, + }, + { + .xpath = "/frr-isisd:isis/instance/segment-routing/srlb/upper-bound", + .cbs = { + .modify = isis_instance_segment_routing_srlb_upper_bound_modify, + }, + }, { .xpath = "/frr-isisd:isis/instance/segment-routing/msd/node-msd", .cbs = { -- cgit v1.2.3