]> git.puffer.fish Git - matthieu/frr.git/commitdiff
yang: provide a yang model for seg6 segs SIDs stack
authorDmytro Shytyi <dmytro.shytyi@6wind.com>
Wed, 26 Jul 2023 15:59:36 +0000 (17:59 +0200)
committerDmytro Shytyi <dmytro.shytyi@6wind.com>
Wed, 20 Sep 2023 13:07:15 +0000 (15:07 +0200)
Add seg6 segs SIDs stack into frr-nexhop.yang file.

Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
yang/frr-nexthop.yang

index d73fdb8bd3d67d3b462a9688962bddc924535b27..175487d78b57411f1d4c564a5dce5e67d5eb3f87 100644 (file)
@@ -201,6 +201,11 @@ module frr-nexthop {
       description
         "Nexthop's MPLS label stack.";
     }
+
+    uses srv6-segs-stack {
+      description
+        "Nexthop's SRv6 segs SIDs stack.";
+    }
   }
 
   /*
@@ -298,6 +303,32 @@ module frr-nexthop {
     }
   }
 
+  /* Contaner for SRv6 segs SIDs */
+  grouping srv6-segs-stack {
+    description
+      "This grouping specifies an SRv6 segs SIDs stack. The segs
+      SIDs stack is encoded as a list of SID entries. The
+      list key is an identifier that indicates the relative
+      ordering of each entry.";
+      container srv6-segs-stack {
+        description
+          "Container for a list of SRv6 segs SIDs entries.";
+          list entry {
+            key "id";
+            description
+              "List of SRv6 segs SIDs entries.";
+           leaf id {
+              type uint8;
+              description
+              "Identifies the entry in a sequence of SRv6 segs SIDs
+              entries.";
+            }
+            leaf seg {
+                type inet:ipv6-address;
+            }
+          }
+      }
+  }
   container frr-nexthop-group {
     description
       "A nexthop-group, represented as a list of nexthop objects.";