diff options
| author | Dmytro Shytyi <dmytro.shytyi@6wind.com> | 2023-07-26 17:59:36 +0200 | 
|---|---|---|
| committer | Dmytro Shytyi <dmytro.shytyi@6wind.com> | 2023-09-20 15:07:15 +0200 | 
| commit | 54012723a47e1c880f09ff6a5ec85ab935e0ffd8 (patch) | |
| tree | 839993b9548b0cde851ba152def823b36a431920 /yang | |
| parent | 74fb8a2d18ae496bf2c911fd23aadddaa4507d84 (diff) | |
yang: provide a yang model for seg6 segs SIDs stack
Add seg6 segs SIDs stack into frr-nexhop.yang file.
Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
Diffstat (limited to 'yang')
| -rw-r--r-- | yang/frr-nexthop.yang | 31 | 
1 files changed, 31 insertions, 0 deletions
diff --git a/yang/frr-nexthop.yang b/yang/frr-nexthop.yang index d73fdb8bd3..175487d78b 100644 --- a/yang/frr-nexthop.yang +++ b/yang/frr-nexthop.yang @@ -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.";  | 
