From 99742410bf0a57e933ea3a7ecaca4004b08e5f30 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Thu, 13 Feb 2025 10:51:28 +0100 Subject: [PATCH] yang: Extend staticd YANG model to support the SRv6 uA behavior The SRv6 uA behavior is associated with a L3 adjacency. This commit extends the staticd YANG model by adding two leafs `interface` and `next-hop` under the `static-sids` container. This extension allows us to associate an interface and a nexthop when configuring an SRv6 uA SID. Signed-off-by: Carmine Scarpitta --- yang/frr-staticd.yang | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/yang/frr-staticd.yang b/yang/frr-staticd.yang index 8d0e58c0a5..3bf3a5e817 100644 --- a/yang/frr-staticd.yang +++ b/yang/frr-staticd.yang @@ -12,6 +12,10 @@ module frr-staticd { prefix frr-nexthop; } + import frr-interface { + prefix frr-interface; + } + import ietf-inet-types { prefix inet; } @@ -240,6 +244,24 @@ module frr-staticd { description "The VRF name."; } + list paths { + key "path-index"; + leaf path-index { + type uint8; + description + "Path index"; + } + leaf interface { + type frr-interface:interface-ref; + description + "Interface name."; + } + leaf next-hop { + type inet:ip-address; + description + "Nexthop IP address."; + } + } } } }