summaryrefslogtreecommitdiffstats
path: root/pathd/path_nb.c
diff options
context:
space:
mode:
authorJavier Garcia <javier.garcia@voltanet.io>2021-04-22 16:04:42 +0200
committerJavier Garcia <javier.garcia@voltanet.io>2021-05-10 15:24:59 +0200
commitf2b9485d6f5aa1508334a7e92d26d95faf0e1733 (patch)
tree18d754185d84e48675820d0c4fb658b53e78d1e6 /pathd/path_nb.c
parentpathd. TED support . Client to link State - [part 1/4] (diff)
downloadfrr-f2b9485d6f5aa1508334a7e92d26d95faf0e1733.tar.xz
frr-f2b9485d6f5aa1508334a7e92d26d95faf0e1733.zip
pathd. TED support . Validation of candidate path - [part 2/4]
- Explicit segment list nai will be resolved to corresponded sid. - Dynamic segment list (from pce) will be validated. - If segment list could not be resolved or validated won't be used. - Now this new config is supported segment-list sl-1 index 10 nai prefix 10.1.2.1/32 iface 1 index 30 nai adjacency 10.2.5.2 10.2.5.5 index 40 nai prefix 10.10.10.5/32 algorithm 0 Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
Diffstat (limited to 'pathd/path_nb.c')
-rw-r--r--pathd/path_nb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pathd/path_nb.c b/pathd/path_nb.c
index a210e31b9..9c622883b 100644
--- a/pathd/path_nb.c
+++ b/pathd/path_nb.c
@@ -90,6 +90,7 @@ const struct frr_yang_module_info frr_pathd_info = {
.xpath = "/frr-pathd:pathd/srte/segment-list/segment/sid-value",
.cbs = {
.modify = pathd_srte_segment_list_segment_sid_value_modify,
+ .destroy = pathd_srte_segment_list_segment_sid_value_destroy,
},
.priority = NB_DFLT_PRIORITY - 1
},
@@ -115,6 +116,10 @@ const struct frr_yang_module_info frr_pathd_info = {
.cbs = {.modify = dummy_modify, .destroy = dummy_destroy}
},
{
+ .xpath = "/frr-pathd:pathd/srte/segment-list/segment/nai/local-prefix-len",
+ .cbs = {.modify = dummy_modify, .destroy = dummy_destroy}
+ },
+ {
.xpath = "/frr-pathd:pathd/srte/segment-list/segment/nai/remote-address",
.cbs = {.modify = dummy_modify, .destroy = dummy_destroy}
},
@@ -123,6 +128,10 @@ const struct frr_yang_module_info frr_pathd_info = {
.cbs = {.modify = dummy_modify, .destroy = dummy_destroy}
},
{
+ .xpath = "/frr-pathd:pathd/srte/segment-list/segment/nai/algorithm",
+ .cbs = {.modify = dummy_modify, .destroy = dummy_destroy}
+ },
+ {
.xpath = "/frr-pathd:pathd/srte/policy",
.cbs = {
.create = pathd_srte_policy_create,