@@ -28,10 +28,6 @@ module frr-staticd {
28
28
prefix frr-vrf;
29
29
}
30
30
31
- import ietf-srv6-types {
32
- prefix srv6-types;
33
- }
34
-
35
31
organization
36
32
"FRRouting" ;
37
33
contact
@@ -70,6 +66,7 @@ module frr-staticd {
70
66
revision 2019 -12 -03 {
71
67
description
72
68
"Initial revision." ;
69
+ reference "FRRouting" ;
73
70
}
74
71
75
72
identity staticd {
@@ -79,8 +76,12 @@ module frr-staticd {
79
76
}
80
77
81
78
grouping staticd-prefix-attributes {
79
+ description
80
+ "Grouping for staticd prefix attributes." ;
82
81
list path-list {
83
82
key "table-id distance" ;
83
+ description
84
+ "List of paths associated with a staticd prefix." ;
84
85
leaf table-id {
85
86
type uint32 ;
86
87
description
@@ -105,9 +106,6 @@ module frr-staticd {
105
106
}
106
107
107
108
typedef srv6-behavior-codepoint {
108
- description
109
- "SRv6 Endpoint Behaviors Codepoints as per
110
- https://www.iana.org/assignments/segment-routing/segment-routing.xhtml." ;
111
109
type enumeration {
112
110
enum End {
113
111
value 1 ;
@@ -160,9 +158,14 @@ module frr-staticd {
160
158
"This enum indicates End.DT46 with NEXT-CSID endpoint behavior." ;
161
159
}
162
160
}
161
+ description
162
+ "SRv6 Endpoint Behaviors Codepoints as per
163
+ https://www.iana.org/assignments/segment-routing/segment-routing.xhtml." ;
163
164
}
164
165
165
166
augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol" {
167
+ description
168
+ "Augments the control-plane-protocol container with staticd pseudo-protocol instance." ;
166
169
container staticd {
167
170
when "../frr-rt:type = 'frr-staticd:staticd'" {
168
171
description
@@ -173,6 +176,12 @@ module frr-staticd {
173
176
"Support for a 'staticd' pseudo-protocol instance
174
177
consists of a list of routes." ;
175
178
list route-list {
179
+ /* note dst-src routes are semantically invalid in MRIB */
180
+ must "afi-safi = 'frr-rt:ipv6-unicast'
181
+ or afi-safi = 'frr-rt:ipv6-labeled-unicast'
182
+ or afi-safi = 'frr-rt:l3vpn-ipv6-unicast'
183
+ or src-prefix = '::/0'
184
+ " ;
176
185
key "prefix src-prefix afi-safi" ;
177
186
description
178
187
"List of staticd IP routes." ;
@@ -193,22 +202,18 @@ module frr-staticd {
193
202
description
194
203
"AFI-SAFI type." ;
195
204
}
196
- /* note dst-src routes are semantically invalid in MRIB */
197
- must "afi-safi = 'frr-rt:ipv6-unicast'
198
- or afi-safi = 'frr-rt:ipv6-labeled-unicast'
199
- or afi-safi = 'frr-rt:l3vpn-ipv6-unicast'
200
- or src-prefix = '::/0'
201
- " ;
202
205
203
206
uses staticd-prefix-attributes {
204
207
augment "path-list/frr-nexthops/nexthop" {
208
+ description
209
+ "Augments the nexthop container with BFD monitoring options." ;
205
210
container bfd-monitoring {
206
- description "BFD monitoring options." ;
211
+ when "../nh-type = 'ip4' or ../nh-type = 'ip4-ifindex' or
212
+ ../nh-type = 'ip6' or ../nh-type = 'ip6-ifindex'" ;
207
213
presence
208
214
"Present if BFD configuration is available." ;
215
+ description "BFD monitoring options." ;
209
216
210
- when "../nh-type = 'ip4' or ../nh-type = 'ip4-ifindex' or
211
- ../nh-type = 'ip6' or ../nh-type = 'ip6-ifindex'" ;
212
217
uses frr-bfdd:bfd-monitoring;
213
218
}
214
219
}
@@ -225,9 +230,9 @@ module frr-staticd {
225
230
description
226
231
"This container lists the SRv6 Static SIDs instantiated on the local node." ;
227
232
list sid {
233
+ key "sid" ;
228
234
description
229
235
"List of SRv6 Static SIDs." ;
230
- key "sid" ;
231
236
leaf sid {
232
237
type inet:ipv6-prefix;
233
238
description
@@ -250,6 +255,8 @@ module frr-staticd {
250
255
}
251
256
list paths {
252
257
key "path-index" ;
258
+ description
259
+ "List of paths for the SRv6 Static SID." ;
253
260
leaf path-index {
254
261
type uint8 ;
255
262
description
0 commit comments