-
Notifications
You must be signed in to change notification settings - Fork 0
/
ietf-te@2017-10-29.yang
1688 lines (1595 loc) · 45.5 KB
/
ietf-te@2017-10-29.yang
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
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
module ietf-te {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-te";
/* Replace with IANA when assigned */
prefix "te";
/* Import TE generic types */
import ietf-te-types {
prefix te-types;
}
import ietf-inet-types {
prefix inet;
}
organization
"IETF Traffic Engineering Architecture and Signaling (TEAS)
Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/teas/>
WG List: <mailto:teas@ietf.org>
WG Chair: Lou Berger
<mailto:lberger@labn.net>
WG Chair: Vishnu Pavan Beeram
<mailto:vbeeram@juniper.net>
Editor: Tarek Saad
<mailto:tsaad@cisco.com>
Editor: Rakesh Gandhi
<mailto:rgandhi@cisco.com>
Editor: Vishnu Pavan Beeram
<mailto:vbeeram@juniper.net>
Editor: Himanshu Shah
<mailto:hshah@ciena.com>
Editor: Xufeng Liu
<mailto:Xufeng_Liu@jabil.com>
Editor: Igor Bryskin
<mailto:Igor.Bryskin@huawei.com>";
description
"YANG data module for TE configuration,
state, RPC and notifications.";
revision "2017-10-29" {
description "Latest update to TE generic YANG module.";
reference "TBA";
}
typedef tunnel-ref {
type leafref {
path "/te:te/te:tunnels/te:tunnel/te:name";
}
description
"This type is used by data models that need to reference
configured TE tunnel.";
}
typedef tunnel-p2mp-ref {
type leafref {
path "/te:te/te:tunnels/te:tunnel-p2mp/te:name";
}
description
"This type is used by data models that need to reference
configured P2MP TE tunnel.";
}
/**
* TE tunnel generic groupings
*/
grouping path-route-objects {
description
"List of EROs to be included or excluded when performing
the path computation.";
container explicit-route-objects {
description
"Container for the exclude route object list";
list route-object-exclude-always {
key index;
description
"List of explicit route objects to always exclude
from path computation";
uses te-types:explicit-route-hop_config;
}
list route-object-include-exclude {
key index;
description
"List of explicit route objects to include or
exclude in path computation";
leaf explicit-route-usage {
type identityref {
base te-types:route-usage-type;
}
description "Explicit-route usage.";
}
uses te-types:explicit-route-hop_config;
}
}
}
grouping path-affinities-contents_config {
description
"Path affinities constraints grouping";
leaf usage {
type identityref {
base te-types:resource-affinities-type;
}
description "Affinities usage";
}
choice style {
description
"Path affinities representation style";
case value {
leaf value {
type te-types:admin-groups;
description
"Bitmap indicating what bits are of significance";
}
}
case named {
list affinity-names {
key "name";
leaf name {
type string;
description "Affinity name";
}
description "List of named affinities";
}
}
}
}
grouping path-affinities_state {
description "Path affinities grouping";
container path-affinities {
description "Path affinities container";
list constraints {
key "usage";
description "List of named affinity constraints";
leaf usage {
type leafref {
path "../state/usage";
}
description "Affinities usage";
}
container state {
config false;
description
"Configuration applied parameters and state";
uses path-affinities-contents_config;
}
}
}
}
grouping path-srlgs_state {
description "Path SRLG properties grouping";
container path-srlgs {
description "Path SRLG properties container";
choice style {
description "Type of SRLG representation";
case values {
container state {
config false;
description
"Configuration applied parameters and state";
uses path-affinities-values_config;
}
}
case named {
container constraints {
description "SRLG named constraints";
list constraint {
key "usage";
leaf usage {
type leafref {
path "../state/usage";
}
description "Affinity resource usage";
}
container state {
config false;
description
"Configuration applied parameters and state";
leaf usage {
type identityref {
base te-types:route-exclude-srlg;
}
description "SRLG usage";
}
}
container srlg-names {
description "Container for named SRLG list";
list srlg-name {
key "name";
leaf name {
type leafref {
path "../state/name";
}
description "The SRLG name";
}
container state {
config false;
description
"Configuration applied parameters and
state";
leaf name {
type string;
description "The SRLG name";
}
}
description "List named SRLGs";
}
}
description "List of named SRLG constraints";
}
}
}
}
}
}
grouping path-affinities {
description "Path affinities grouping";
container path-affinities {
description "Path affinities container";
list constraints {
key "usage";
description "List of named affinity constraints";
uses path-affinities-contents_config;
}
}
}
grouping path-affinities-values_config {
description "Path affinities values configuration grouping";
leaf usage {
type identityref {
base te-types:route-exclude-srlg;
}
description "SRLG usage";
}
leaf-list values {
type te-types:srlg;
description "SRLG value";
}
}
grouping path-srlgs {
description "Path SRLG properties grouping";
container path-srlgs {
description "Path SRLG properties container";
choice style {
description "Type of SRLG representation";
case values {
uses path-affinities-values_config;
}
case named {
list constraints {
key "usage";
leaf usage {
type identityref {
base te-types:route-exclude-srlg;
}
description "SRLG usage";
}
container constraint {
description "Container for named SRLG list";
list srlg-names {
key "name";
leaf name {
type string;
description "The SRLG name";
}
description "List named SRLGs";
}
}
description "List of named SRLG constraints";
}
}
}
}
}
grouping bidirectional-association_config {
description
"TE tunnel associated bidirectional leaves
grouping";
leaf id {
type uint16;
description
"The TE tunnel association identifier.";
}
leaf source {
type inet:ip-address;
description "The TE tunnel association source.";
}
leaf global-source {
type inet:ip-address;
description "The TE tunnel association global source.";
}
leaf type {
type identityref {
base te-types:bidir-association-type;
}
default te-types:bidir-assoc-non-corouted;
description "The TE tunnel association type.";
}
leaf provisioning {
type identityref {
base te-types:bidir-provisioning-mode;
}
description
"Describes the provisioning model of the
associated bidirectional LSP";
reference
"draft-ietf-teas-mpls-tp-rsvpte-ext-
associated-lsp, section-3.2";
}
}
grouping bidir-assoc-properties {
description
"TE tunnel associated bidirectional properties
grouping";
container bidirectional {
description
"TE tunnel associated bidirectional attributes.";
container association {
description
"Tunnel bidirectional association properties";
uses bidirectional-association_config;
}
}
}
grouping p2p-reverse-primary-path-properties {
description "tunnel path properties.";
container p2p-reverse-primary-path {
description "Tunnel reverse primary path properties";
uses p2p-path-reverse-properties_config;
container state {
config false;
description
"Configuration applied parameters and state";
uses p2p-path-properties_state;
}
container p2p-reverse-secondary-path {
description "Tunnel reverse secondary path properties";
uses p2p-reverse-path-candidate-secondary-path-config;
}
}
}
grouping p2p-secondary-path-properties {
description "tunnel path properties.";
uses p2p-path-properties_config;
uses protection-restoration-params_config;
container state {
config false;
description
"Configuration applied parameters and state";
uses p2p-path-properties_state;
}
}
grouping p2p-primary-path-properties {
description
"TE tunnel primary path properties grouping";
uses hierarchical-link;
uses p2p-path-properties_config;
container state {
config false;
description
"Configuration applied parameters and state";
uses p2p-path-properties_state;
}
}
grouping computed-path-properties_state {
description "Computed path properties grouping";
leaf metric-type {
type identityref {
base te-types:path-metric-type;
}
description "TE path metric type";
}
leaf accumulative-value {
type uint64;
description "TE path metric accumulative value";
}
}
grouping computed-path-properties {
description "TE computed path properties grouping";
container computed-path-properties {
description "The TE path computed properties";
list path-metric {
key metric-type;
description "TE path metric type";
leaf metric-type {
type leafref {
path "../state/metric-type";
}
description "TE path metric type";
}
container state {
config false;
description
"Configuration applied parameters and state";
uses computed-path-properties_state;
}
}
uses path-affinities_state;
uses path-srlgs_state;
container path-computed-route-objects {
description
"Container for the list of computed route objects
as returned by the computation engine";
list path-computed-route-object {
key index;
description
"List of computed route objects returned by the
computation engine";
leaf index {
type leafref {
path "../state/index";
}
description "Index of computed route object";
}
container state {
config false;
description
"Configuration applied parameters and state";
uses te-types:explicit-route-hop_config;
}
}
}
uses shared-resources-tunnels;
}
}
grouping p2p-path-properties_state {
description "TE per path state parameters";
uses computed-path-properties;
container lsps {
description "TE LSPs container";
list lsp {
key
"source destination tunnel-id lsp-id "+
"extended-tunnel-id";
description "List of LSPs associated with the tunnel.";
uses lsp-properties_state;
uses shared-resources-tunnels;
uses lsp-record-route-information_state;
}
}
}
grouping p2p-path-properties-common_config {
description
"TE tunnel common path properties configuration grouping";
leaf name {
type string;
description "TE path name";
}
leaf path-setup-protocol {
type identityref {
base te-types:path-signaling-type;
}
description
"Signaling protocol used to set up this tunnel";
}
leaf path-computation-method {
type identityref {
base te-types:path-computation-method;
}
default te-types:path-locally-computed;
description
"The method used for computing the path, either
locally computed, queried from a server or not
computed at all (explicitly configured).";
}
leaf path-computation-server {
when "../path-computation-method = "+
"'te-types:path-externally-queried'" {
description
"The path-computation server when the path is
externally queried";
}
type inet:ip-address;
description
"Address of the external path computation
server";
}
leaf compute-only {
type empty;
description
"When set, the path is computed and updated whenever
the topology is updated. No resources are committed
or reserved in the network.";
}
leaf use-path-computation {
when "../path-computation-method =" +
" 'te-types:path-locally-computed'";
type boolean;
description "A CSPF dynamically computed path";
}
leaf lockdown {
type empty;
description
"Indicates no reoptimization to be attempted for
this path.";
}
leaf path-scope {
type identityref {
base te-types:path-scope-type;
}
description "Path scope";
}
}
grouping p2p-path-reverse-properties_config {
description
"TE tunnel reverse path properties configuration
grouping";
uses p2p-path-properties-common_config;
leaf named-explicit-path {
when "../path-computation-method =" +
" 'te-types:path-explicitly-defined'";
type leafref {
path "../../../../../../globals/named-explicit-paths/"
+ "named-explicit-path/name";
}
description "The explicit-path name";
}
leaf named-path-constraint {
if-feature te-types:named-path-constraints;
type leafref {
path "../../../../../../globals/"
+ "named-path-constraints/named-path-constraint/"
+ "name";
}
description
"Reference to a globally defined named path
constraint set";
}
}
grouping p2p-path-properties_config {
description
"TE tunnel path properties configuration grouping";
uses p2p-path-properties-common_config;
leaf preference {
type uint8 {
range "1..255";
}
description
"Specifies a preference for this path. The lower the
number higher the preference";
}
leaf named-explicit-path {
when "../path-computation-method =" +
" 'te-types:path-explicitly-defined'";
type leafref {
path "../../../../../globals/named-explicit-paths/"
+ "named-explicit-path/name";
}
description "The explicit-path name";
}
leaf named-path-constraint {
if-feature te-types:named-path-constraints;
type leafref {
path "../../../../../globals/"
+ "named-path-constraints/named-path-constraint/"
+ "name";
}
description
"Reference to a globally defined named path
constraint set";
}
}
/* TE tunnel configuration data */
grouping tunnel-p2mp-params_config {
description
"Configuration parameters relating to TE tunnel";
leaf name {
type string;
description "TE tunnel name.";
}
leaf identifier {
type uint16;
description
"TE tunnel Identifier.";
}
leaf description {
type string;
description
"Textual description for this TE tunnel";
}
}
grouping hierarchical-link_config {
description
"Hierarchical link configuration grouping";
leaf local-te-node-id {
type te-types:te-node-id;
description
"Local TE node identifier";
}
leaf local-te-link-tp-id {
type te-types:te-tp-id;
description
"Local TE link termination point identifier";
}
leaf remote-te-node-id {
type te-types:te-node-id;
description
"Remote TE node identifier";
}
leaf te-topology-id {
type te-types:te-topology-id;
description
"It is presumed that a datastore will contain many
topologies. To distinguish between topologies it is
vital to have UNIQUE topology identifiers.";
}
}
grouping hierarchical-link {
description
"Hierarchical link grouping";
container hierarchical-link {
description
"Identifies a hierarchical link (in client layer)
that this tunnel is associated with.";
uses hierarchical-link_config;
}
}
grouping protection-restoration-params_state {
description
"Protection parameters grouping";
leaf lockout-of-normal {
type boolean;
description
"
When set to 'True', it represents a lockout of normal
traffic external command. When set to 'False', it
represents a clear lockout of normal traffic external
command. The lockout of normal traffic command applies
to this Tunnel.
";
reference
"ITU-T G.808, RFC 4427";
}
leaf freeze {
type boolean;
description
"
When set to 'True', it represents a freeze external
command. When set to 'False', it represents a clear
freeze external command. The freeze command command
applies to all the Tunnels which are sharing the
protection resources with this Tunnel.
";
reference
"ITU-T G.808, RFC 4427";
}
leaf lsp-protection-role {
type enumeration {
enum working {
description
"A working LSP must be a primary LSP whilst a protecting
LSP can be either a primary or a secondary LSP. Also,
known as protected LSPs when working LSPs are associated
with protecting LSPs.";
}
enum protecting {
description
"A secondary LSP is an LSP that has been provisioned
in the control plane only; e.g. resource allocation
has not been committed at the data plane";
}
}
description "LSP role type";
reference "rfc4872, section 4.2.1";
}
leaf lsp-protection-state {
type identityref {
base te-types:lsp-protection-state;
}
description
"The state of the APS state machine controlling which
tunnels is using the resources of the protecting LSP.";
}
}
grouping protection-restoration-params_config {
description "Protection and restoration parameters";
container protection {
description "Protection parameters";
leaf enable {
type boolean;
default 'false';
description
"A flag to specify if LSP protection is enabled";
reference "rfc4427";
}
leaf protection-type {
type identityref {
base te-types:lsp-protection-type;
}
description "LSP protection type.";
}
leaf protection-reversion-disable {
type boolean;
description "Disable protection reversion to working path";
}
leaf hold-off-time {
type uint32;
units "milli-seconds";
default 0;
description
"The time between the declaration of an SF or SD condition
and the initialization of the protection switching
algorithm.";
}
leaf wait-to-revert {
type uint16;
units seconds;
description
"Time to wait before attempting LSP reversion";
}
}
container restoration {
description "Restoration parameters";
leaf enable {
type boolean;
default 'false';
description
"A flag to specify if LSP restoration is enabled";
reference "rfc4427";
}
leaf restoration-type {
type identityref {
base te-types:lsp-restoration-type;
}
description "LSP restoration type.";
}
leaf restoration-scheme {
type identityref {
base te-types:restoration-scheme-type;
}
description "LSP restoration scheme.";
}
leaf restoration-reversion-disable {
type boolean;
description "Disable restoration reversion to working path";
}
leaf hold-off-time {
type uint32;
units "milli-seconds";
description
"The time between the declaration of an SF or SD condition
and the initialization of the protection switching
algorithm.";
}
leaf wait-to-restore {
type uint16;
units seconds;
description
"Time to wait before attempting LSP restoration";
}
leaf wait-to-revert {
type uint16;
units seconds;
description
"Time to wait before attempting LSP reversion";
}
}
}
grouping protection-external-commands {
description
"Path protection external commands grouping";
container protection-external-commands {
description
"Path protection external commands grouping";
leaf lockout-of-protection {
type boolean;
description
"A LoP command is applied locally.";
reference
"ITU-T G.808; RFC 4427.";
}
leaf manual-switch {
type boolean;
description
"A MS command is applied locally.";
reference
"ITU-T G.808; RFC 4427.";
}
leaf forced-switch {
type boolean;
description
"A FS command is applied locally.";
reference
"ITU-T G.808; RFC 4427.";
}
}
}
grouping tunnel-p2p-depency-tunnels_config {
description
"Groupong for tunnel dependency list of tunnels";
container dependency-tunnels {
description "Dependency tunnels list";
list dependency-tunnel {
key "name";
description "Dependency tunnel entry";
leaf name {
type leafref {
path "../../../../../tunnels/tunnel/name";
require-instance false;
}
description "Dependency tunnel name";
}
leaf encoding {
type identityref {
base te-types:lsp-encoding-types;
}
description "LSP encoding type";
}
leaf switching-type {
type identityref {
base te-types:switching-capabilities;
}
description "LSP switching type";
reference "RFC3945";
}
}
}
}
grouping tunnel-p2p-params_config {
description
"Configuration parameters relating to TE tunnel";
leaf name {
type string;
description "TE tunnel name.";
}
leaf identifier {
type uint16;
description
"TE tunnel Identifier.";
}
leaf description {
type string;
description
"Textual description for this TE tunnel";
}
leaf encoding {
type identityref {
base te-types:lsp-encoding-types;
}
description "LSP encoding type";
}
leaf switching-type {
type identityref {
base te-types:switching-capabilities;
}
description "LSP switching type";
reference "RFC3945";
}
leaf provisioning-state {
type identityref {
base te-types:tunnel-state-type;
}
default te-types:tunnel-state-up;
description "TE tunnel administrative state.";
}
leaf preference {
type uint8 {
range "1..255";
}
description
"Specifies a preference for this tunnel.
A lower number signifies a better preference";
}
leaf reoptimize-timer {
type uint16;
units seconds;
description
"frequency of reoptimization of
a traffic engineered LSP";
}
leaf source {
type inet:ip-address;
description
"TE tunnel source address.";
}
leaf destination {
type inet:ip-address;
description
"P2P tunnel destination address";
}
leaf src-tp-id {
type binary;
description
"TE tunnel source termination point identifier.";
}
leaf dst-tp-id {
type binary;
description
"TE tunnel destination termination point identifier.";
}
leaf ignore-overload {
type boolean;
description
"The tunnel path can traverse overloaded node.";
}
uses protection-restoration-params_config;
uses te-types:common-constraints_config;
uses tunnel-p2p-depency-tunnels_config;
}
grouping tunnel-p2p-params_state {
description
"State parameters relating to TE tunnel";
leaf operational-state {
type identityref {
base te-types:tunnel-state-type;
}
default te-types:tunnel-state-up;
description "TE tunnel administrative state.";
}
}
grouping access-segment-info {
description
"info related to a segment";
container forward {
description
"for the forward direction of this tunnel";
uses te-types:label-set-info;
}
container reverse {
description
"for the reverse direction of this tunnel";
uses te-types:label-set-info;
}
}
grouping path-access-segment-info {
description
"If an end-to-end tunnel crosses multiple domains using
the same technology, some additional constraints have to be
taken in consideration in each domain";
container path-in-segment {
presence
"The end-to-end tunnel starts in a previous domain;
this tunnel is a segment in the current domain.";
description
"This tunnel is a segment that needs to be coordinated
with previous segment stitched on head-end side.";
uses access-segment-info;
}
container path-out-segment {
presence
"The end-to-end tunnel is not terminated in this domain;
this tunnel is a segment in the current domain.";
description
"This tunnel is a segment that needs to be coordinated
with previous segment stitched on head-end side.";
uses access-segment-info;
}
}
/* TE tunnel configuration/state grouping */
grouping tunnel-p2mp-properties {
description
"Top level grouping for P2MP tunnel properties.";
uses tunnel-p2mp-params_config;
container state {
config false;
description
"Configuration applied parameters and state";
leaf operational-state {