From: Carmine Scarpitta Date: Thu, 20 Feb 2025 10:12:50 +0000 (+0100) Subject: yang: Add encap behavior to SRv6 nexthop X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=86aae0264a9a6e529b22dee8af87dbd9f356a480;p=mirror%2Ffrr.git yang: Add encap behavior to SRv6 nexthop This commit extends the frr-nexthop YANG model by adding the encapsulation behavior to the SRv6 nexthop. This change enables daemons to specify one of the encapsulation behaviors defined in RFC 8986 when configuring a nexthop. Signed-off-by: Carmine Scarpitta --- diff --git a/yang/frr-nexthop.yang b/yang/frr-nexthop.yang index 175487d78b..93837e4ea7 100644 --- a/yang/frr-nexthop.yang +++ b/yang/frr-nexthop.yang @@ -20,6 +20,10 @@ module frr-nexthop { prefix frr-vrf; } + import ietf-srv6-types { + prefix srv6-types; + } + organization "FRRouting"; contact @@ -327,6 +331,13 @@ module frr-nexthop { type inet:ipv6-address; } } + leaf encap-behavior { + type identityref { + base srv6-types:srv6-headend-type; + } + description + "The SRv6 Headend Behavior for the encap."; + } } } container frr-nexthop-group { diff --git a/yang/frr-staticd.yang b/yang/frr-staticd.yang index 3bf3a5e817..ec8fa0a26c 100644 --- a/yang/frr-staticd.yang +++ b/yang/frr-staticd.yang @@ -28,6 +28,10 @@ module frr-staticd { prefix frr-vrf; } + import ietf-srv6-types { + prefix srv6-types; + } + organization "FRRouting"; contact