From 54012723a47e1c880f09ff6a5ec85ab935e0ffd8 Mon Sep 17 00:00:00 2001 From: Dmytro Shytyi Date: Wed, 26 Jul 2023 17:59:36 +0200 Subject: [PATCH] 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 --- yang/frr-nexthop.yang | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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.";