blob: 96eafda9d410aed1f2219bd68e7dd555ea39c54d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
|
module frr-pathd {
yang-version 1.1;
namespace "http://frrouting.org/yang/pathd";
prefix frr-pathd;
import ietf-inet-types {
prefix inet;
}
import ietf-routing-types {
prefix rt-types;
}
organization
"Free Range Routing";
contact
"FRR Users List: <mailto:frog@lists.frrouting.org>
FRR Development List: <mailto:dev@lists.frrouting.org>";
description
"This module defines a model for managing FRR pathd daemon.";
revision 2018-11-06 {
description
"Initial revision.";
reference "FRRouting";
}
typedef protocol-origin-type {
type enumeration {
enum pcep {
value 1;
description "The object was created through PCEP";
}
enum bgp {
value 2;
description "The object was created through GBP";
}
enum local {
value 3;
description "The object was created through CLI, Yang model via Netconf, gRPC, etc";
}
}
description
"Indication for the protocol origin of an object.";
}
typedef originator-type {
type string {
length "1..64";
}
description
"Identifier of the originator of an object, could be 'config', '1.1.1.1:4189' or '2001:db8:85a3::8a2e:370:7334:4189'";
}
container pathd {
description
"Path properties for Segment Routing TE";
container srte {
description
"Segment Routing TE properties";
list segment-list {
key "name";
description "Segment-list properties";
leaf name {
type string {
length "1..64";
}
description "Segment-list name";
}
leaf protocol-origin {
type protocol-origin-type;
mandatory true;
description
"Indication for the protocol origin of the segment list.";
}
leaf originator {
type originator-type;
mandatory true;
description "Originator of the segment list";
}
list segment {
key "index";
description "Configure Segment/hop at the index";
leaf index {
type uint32;
description "Segment index";
}
leaf sid-value {
type rt-types:mpls-label;
description "MPLS label value";
}
container nai {
presence "The segment has a Node or Adjacency Identifier";
description
"Node or Adjacency Identifier for the segment";
leaf type {
type enumeration {
enum ipv4_node {
value 1;
description "IPv4 node identifier";
}
enum ipv6_node {
value 2;
description "IPv6 node identifier";
}
enum ipv4_adjacency {
value 3;
description "IPv4 adjacency";
}
enum ipv6_adjacency {
value 4;
description "IPv6 adjacency";
}
enum ipv4_unnumbered_adjacency {
value 5;
description "IPv4 unnumbered adjacency";
}
enum ipv4_local_iface {
value 7;
description "IPv4 prefix with local interface id";
}
enum ipv6_local_iface {
value 8;
description "IPv6 prefix with local interface id";
}
enum ipv4_algo {
value 9;
description "IPv4 prefix with optional algorithm";
}
enum ipv6_algo {
value 10;
description "IPv6 prefix with optional algorithm";
}
}
mandatory true;
description "NAI type";
}
leaf local-address {
type inet:ip-address;
mandatory true;
description
"Local address of the NAI";
}
leaf local-prefix-len {
when "../type = 'ipv4_local_iface' or ../type = 'ipv6_local_iface' or ../type = 'ipv4_algo' or ../type = 'ipv6_algo'";
type uint8;
mandatory true;
description
"Prefix length of the local address";
}
leaf local-interface {
when "../type = 'ipv4_local_iface' or ../type = 'ipv6_local_iface' or ../type = 'ipv4_unnumbered_adjacency'";
type uint32;
mandatory true;
description
"Local interface ID for the NAI";
}
leaf remote-address {
when "../type = 'ipv4_adjacency' or ../type = 'ipv6_adjacency' or ../type = 'ipv4_unnumbered_adjacency'";
type inet:ip-address;
mandatory true;
description
"Remote address of the NAI";
}
leaf remote-interface {
when "../type = 'ipv4_unnumbered_adjacency'";
type uint32;
mandatory true;
description
"Remote interface ID for the NAI";
}
leaf algorithm {
when "../type = 'ipv4_algo' or ../type = 'ipv6_algo'";
type uint8;
mandatory true;
description
"Algorithm to use for the NAI";
}
}
}
}
list policy {
key "color endpoint";
unique "name";
description
"List of SR Policies.";
leaf color {
type uint32;
description
"Color of the SR Policy.";
}
leaf endpoint {
type inet:ip-address;
description
"Indication for the endpoint of the SR Policy.";
}
leaf name {
type string {
length "1..64";
}
description
"Name of the SR Policy.";
}
leaf binding-sid {
type rt-types:mpls-label;
description
"BSID of the SR Policy.";
}
leaf is-operational {
type boolean;
config false;
description
"True if a valid candidate path of this policy is operational in zebra, False otherwise";
}
list candidate-path {
key "preference";
unique "name";
description
"List of Candidate Paths of the SR Policy.";
leaf preference {
type uint32;
description
"Administrative preference.";
}
leaf name {
type string {
length "1..64";
}
mandatory true;
description
"Symbolic Name of the Candidate Path.";
}
leaf is-best-candidate-path {
type boolean;
config false;
description
"True if the candidate path is the best candidate path, False otherwise";
}
leaf protocol-origin {
type protocol-origin-type;
mandatory true;
description
"Indication for the protocol origin of the Candidate Path.";
}
leaf originator {
type originator-type;
mandatory true;
description "Originator of the candidate path";
}
leaf discriminator {
type uint32;
config false;
description "Candidate path distinguisher";
}
leaf type {
type enumeration {
enum explicit {
value 1;
description
"Explicit path defined by a segment list";
}
enum dynamic {
value 2;
description
"Dynamic path computed by a routing protocol";
}
}
mandatory true;
description
"Type of the Candidate Path.";
}
leaf segment-list-name {
type leafref {
path ../../../segment-list/name;
}
description
"The name of the Segment List to use as LSP.";
}
container constraints {
when "../type = 'dynamic'";
description
"Generic dynamic path constraints";
container bandwidth {
presence "If the candidate has a bandwidth constraint";
description
"The bandwidth needed by the candidate path.";
leaf required {
type boolean;
default "true";
description
"If the bandwidth limitation is a requirement or only a suggestion";
}
leaf value {
type decimal64 {
fraction-digits 6;
}
mandatory true;
description
"The bandwidth value for the candidate path.";
}
}
container affinity {
description
"Affinity let you configure how the links should be used when calculating a path.";
leaf exclude-any {
type uint32;
description
"A 32-bit vector representing a set of attribute filters which renders a link unacceptable.";
}
leaf include-any {
type uint32;
description
"A 32-bit vector representing a set of attribute filters which renders a link acceptable. A null set (all bits set to zero) automatically passes.";
}
leaf include-all {
type uint32;
description
"A 32-bit vector representing a set of attribute filters which must be present for a link to be acceptable. A null set (all bits set to zero) automatically passes.";
}
}
list metrics {
key "type";
description
"This list contains the different metrics that can be used to describe a path.";
leaf type {
type enumeration {
enum igp {
value 1;
description "IGP metric";
}
enum te {
value 2;
description "TE metric";
}
enum hc {
value 3;
description "Hop Counts";
}
enum abc {
value 4;
description "Aggregate bandwidth consumption";
}
enum lmll {
value 5;
description "Load of the most loaded link";
}
enum cigp {
value 6;
description "Cumulative IGP cost";
}
enum cte {
value 7;
description "Cumulative TE cost";
}
enum pigp {
value 8;
description "P2MP IGP metric";
}
enum pte {
value 9;
description "P2MP TE metric";
}
enum phc {
value 10;
description "P2MP hop count metric";
}
enum msd {
value 11;
description "Segment-ID (SID) Depth";
}
enum pd {
value 12;
description "Path Delay metric";
}
enum pdv {
value 13;
description "Path Delay Variation metric";
}
enum pl {
value 14;
description "Path Loss metric";
}
enum ppd {
value 15;
description "P2MP Path Delay metric";
}
enum ppdv {
value 16;
description "P2MP Path Delay variation metric";
}
enum ppl {
value 17;
description "P2MP Path Loss metric";
}
enum nap {
value 18;
description "Number of adaptations on a path";
}
enum nlp {
value 19;
description "Number of layers on a path";
}
enum dc {
value 20;
description "Domain Count metric";
}
enum bnc {
value 21;
description "Border Node Count metric";
}
}
description
"Type of the metric.";
}
leaf required {
type boolean;
default "true";
description
"If the metric is a requirement, or if it is only a suggestion";
}
leaf is-bound {
type boolean;
description
"Defines if the value is a bound (a maximum) for the path metric that must not be exceeded.";
}
leaf is-computed {
type boolean;
description
"Defines if the value has been generated by the originator of the path.";
}
leaf value {
type decimal64 {
fraction-digits 6;
}
mandatory true;
description
"Value of the metric.";
}
}
container objective-function {
presence "If the candidate has an objective function constraint";
description
"Define objective function constraint as a list of preferred functions";
leaf required {
type boolean;
default "true";
description
"If an objective function is a requirement, or if it is only a suggestion";
}
leaf type {
type enumeration {
enum mcp {
value 1;
description "Minimum Cost Path";
}
enum mlp {
value 2;
description "Minimum Load Path";
}
enum mbp {
value 3;
description "Maximum residual Bandwidth Path";
}
enum mbc {
value 4;
description "Minimize aggregate Bandwidth Consumption";
}
enum mll {
value 5;
description "Minimize the Load of the most loaded Link";
}
enum mcc {
value 6;
description "Minimize the Cumulative Cost of a set of paths";
}
enum spt {
value 7;
description "Shortest Path Tree";
}
enum mct {
value 8;
description "Minimum Cost Tree";
}
enum mplp {
value 9;
description "Minimum Packet Loss Path";
}
enum mup {
value 10;
description "Maximum Under-Utilized Path";
}
enum mrup {
value 11;
description "Maximum Reserved Under-Utilized Path";
}
enum mtd {
value 12;
description "Minimize the number of Transit Domains";
}
enum mbn {
value 13;
description "Minimize the number of Border Nodes";
}
enum mctd {
value 14;
description "Minimize the number of Common Transit Domains";
}
enum msl {
value 15;
description "Minimize the number of Shared Links";
}
enum mss {
value 16;
description "Minimize the number of Shared SRLGs";
}
enum msn {
value 17;
description "Minimize the number of Shared Nodes";
}
}
mandatory true;
description
"Type of objective function.";
}
}
}
}
}
}
}
}
|