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>
This commit is contained in:
Dmytro Shytyi 2023-07-26 17:59:36 +02:00
parent 74fb8a2d18
commit 54012723a4
1 changed files with 31 additions and 0 deletions

View 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.";