]> git.puffer.fish Git - mirror/frr.git/commitdiff
yang: Add encap behavior to SRv6 nexthop
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 20 Feb 2025 10:12:50 +0000 (11:12 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Wed, 30 Apr 2025 16:54:43 +0000 (16:54 +0000)
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 <cscarpit@cisco.com>
yang/frr-nexthop.yang
yang/frr-staticd.yang

index 175487d78b57411f1d4c564a5dce5e67d5eb3f87..93837e4ea7f9b43f81474fe6712944cfdbf4322d 100644 (file)
@@ -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 {
index 3bf3a5e81764b94589a361840ca50988c71440c2..ec8fa0a26cb4fae73d586d8dc036dedb3cb953ad 100644 (file)
@@ -28,6 +28,10 @@ module frr-staticd {
     prefix frr-vrf;
   }
 
+  import ietf-srv6-types {
+    prefix srv6-types;
+  }
+
   organization
     "FRRouting";
   contact