forked from Mirror/frr
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:
parent
74fb8a2d18
commit
54012723a4
|
@ -201,6 +201,11 @@ module frr-nexthop {
|
||||||
description
|
description
|
||||||
"Nexthop's MPLS label stack.";
|
"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 {
|
container frr-nexthop-group {
|
||||||
description
|
description
|
||||||
"A nexthop-group, represented as a list of nexthop objects.";
|
"A nexthop-group, represented as a list of nexthop objects.";
|
||||||
|
|
Loading…
Reference in a new issue