]> git.puffer.fish Git - matthieu/frr.git/commitdiff
yang: Extend staticd YANG model to support the SRv6 uA behavior
authorCarmine Scarpitta <cscarpit@cisco.com>
Thu, 13 Feb 2025 09:51:28 +0000 (10:51 +0100)
committerCarmine Scarpitta <cscarpit@cisco.com>
Wed, 26 Feb 2025 06:19:51 +0000 (07:19 +0100)
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 <cscarpit@cisco.com>
yang/frr-staticd.yang

index 8d0e58c0a5c3e694d630c1a4436de04b500cff56..3bf3a5e81764b94589a361840ca50988c71440c2 100644 (file)
@@ -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.";
+                }
+              }
             }
           }
         }