forked from tsaad-dev/te
-
Notifications
You must be signed in to change notification settings - Fork 0
/
draft-rgandhi-mpls-te.yang
1825 lines (1717 loc) · 57.6 KB
/
draft-rgandhi-mpls-te.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-mpls-te {
namespace "urn:cisco:params:xml:ns:yang:ietf-mpls-te";
/* Replace with IANA when assigned */
prefix "mpls-te";
import ietf-inet-types { prefix inet; }
import ietf-mpls-te-types { prefix mtt; }
organization
"IETF MPLS Working Group";
contact
"Rakesh Gandhi rgandhi@cisco.com
Tarek Saad tsaad@cisco.com
Robert Sawaya rsawaya@cisco.com";
description
"YANG data module for MPLS-TE and RSVP-TE configuration,
state, RPC and notifications.";
revision 2014-11-06 {
description
"Initial revision.";
}
/* Groupings for MPLS-TE */
grouping igp-protocol-def {
leaf instance-id {
description
"Constrains the computed path to a specific IGP
instance.";
type string;
}
leaf igp {
description
"Constrains the computed path to a specific IGP.";
type enumeration {
enum ospf;
enum isis;
}
}
choice igp-type {
description
"Constrains the computed path to a specific IGP
area or level.";
container isis {
leaf level {
type uint8 {
range "1..2";
}
}
}
container ospf {
leaf area {
type uint32 {
range "0..4294967295";
}
}
}
}
}
grouping igp-te-domains {
container igp-te-domains {
description "MPLS-TE enabled IGPs.";
list igp-te-domain {
key "instance-id";
description "MPLS-TE enabled IGP instance.";
uses igp-protocol-def;
leaf te-router-id {
description "MPLS-TE Router ID.";
type inet:ip-address;
}
leaf-list routing-afs {
type inet:ip-version;
}
}
}
}
/* Groupings for MPLS-TE Tunnels */
grouping lsp-properties {
choice lsp-type {
/* Point-to-point LSP properties */
case p2p {
list p2p-properties {
when "/tunnels-cfg/tunnel/type = p2p";
key "po-index";
description "An index identifying a set of LSP
properties, p2p path-option index.";
/* definition of the destination
and associated path */
uses path-option-reference;
uses tunnel-template-leaf;
}
}
/* Point-to-multipoint LSP properties */
case p2mp {
when "/tunnels-cfg/tunnel/type = p2mp";
list p2mp-properties {
key "lsp-index";
leaf lsp-index {
description "An index identifying a set of LSP
properties and their paths.";
type uint8 {
range "0..255";
}
}
/* definition of the destination
and associated path */
list p2mp-path-group {
key "destination";
description "List of destinations
and their paths.";
uses path-option-reference;
uses tunnel-template-leaf;
}
}
}
}
}
grouping path-option-reference {
leaf destination {
description "A reference to an MPLS-TE tunnel destination.";
type leafref {
path "/tunnels-cfg/tunnel/destination/address";
}
}
leaf po-index {
description "A reference to an MPLS-TE tunnel path-option.";
type leafref {
path "/tunnels-cfg/tunnel/destination
[address=current()/../destination]/paths/po-index";
}
}
}
grouping path-properties {
choice type {
case dynamic {
leaf dynamic {
description
"A CSPF dynamically computed path";
type boolean;
}
}
case explicit {
description
"An operator specified explicit path.";
list hops {
key "hop-index";
leaf hop-index {
type uint8 {
range "0..255";
}
}
leaf hop-address {
description
"An IP hop address.";
type mtt:hop-address-type;
}
leaf hop-action {
description
"An IP hop action.";
type mtt:hop-action-type;
}
}
}
}
container igp-constraint {
uses igp-protocol-def;
}
leaf no-validation {
description
"Indicates no validation checks to be attempted on this
path.";
type boolean;
}
leaf lockdown {
description
"Indicates no reoptimization to be attempted for this
path.";
type boolean;
}
}
grouping bfd-over-tunnel {
container bfd-over-tunnel {
presence "Enable BFD fast-detect on the tunnel.";
leaf type {
type mtt:bfd-type;
}
leaf encap-mode {
type mtt:bfd-encap-mode-type;
}
leaf bringup-timeout {
type uint32 {
range "60..3600";
}
}
leaf dampening {
type uint32 {
range "1..518400000";
}
}
container lsp-ping {
leaf disable {
type boolean;
default false;
}
leaf interval {
type uint32 {
range "60..3600";
}
}
}
leaf minimum-interval {
type uint32 {
range "3..30000";
}
}
leaf multiplier {
type uint32 {
range "3..10";
}
}
}
}
grouping path-selection {
container path-selection {
leaf cost-limit {
description
"The tunnel path cost limit.";
type uint32 {
range "1..4294967295";
}
}
leaf hop-limit {
description
"The tunnel path hop limit.";
type uint8 {
range "1..255";
}
}
leaf metric-type {
description
"The tunnel path metric type.";
type mtt:path-metric-type;
}
leaf tiebreaker-type {
description
"The tunnel path computation tie breakers.";
type mtt:path-tiebreaker-type;
}
leaf ignore-overload {
description
"The tunnel path can traverse overloaded node.";
type boolean;
}
}
}
grouping signaling-properties {
description "LSP signaling properties.";
leaf source {
description
"LSP source address.";
type inet:ip-address;
}
container fast-reroute {
presence "Requests FRR local protection on LSRs.";
leaf bandwidth-protection-desired {
description
"Request FRR bandwidth protection on LSRs.";
type boolean;
}
leaf node-protection-desired {
description
"Request FRR node protection on LSRs.";
type boolean;
}
}
leaf record-route {
description
"Requests path RRO recording in RSVP PATH message.";
type boolean;
}
leaf signaled-name {
description
"Sets the session name to use in the session attribute
object.";
type string;
}
container priority {
description
"Sets the setup/hold priority to use in the session
attribute object.";
leaf setup {
type uint8 {
range "0..7";
}
}
leaf hold {
type uint8 {
range "0..7";
}
}
}
leaf soft-preemption {
description
"Requests soft-preemption in session
attributes object at
at traversed LSR(s).";
type boolean;
}
container signaled-bandwidth {
description
"Sets the requested bandwidth.";
leaf type {
type mtt:bandwidth-type;
}
leaf value {
type uint32 {
range "0..4294967295";
}
}
}
}
grouping logging {
container logging {
choice event-type {
case all {
leaf all {
type boolean;
}
description "Enables all MPLS-TE tunnel
event logging.";
}
case bfd-status {
leaf bfd-status {
type boolean;
}
description "Enable MPLS-TE tunnel BFD
specific event logging.";
}
case link-status {
leaf link-status {
type boolean;
}
description "Enable link status event logging.";
}
case lsp-status {
choice event {
case all {
leaf all-lsp-status-events {
type boolean;
}
description "Enables all LSP status
events logging.";
}
case subset {
leaf-list events {
type mtt:lsp-status-event-type;
}
}
}
}
case cspf-failure {
leaf cspf-failure-events {
type boolean;
}
description "Enable MPLS-TE tunnel CSPF
failure event logging.";
}
}
}
}
grouping affinity {
container affinity {
choice style {
case bitmap {
leaf value {
type uint32 {
range "0..4294967295";
}
}
leaf mask {
type uint32 {
range "0..4294967295";
}
}
}
case named {
list constraints {
key "action";
leaf action {
type mtt:affinity-action-type;
}
container constraint {
list affinity-list {
key "name";
leaf name {
type string;
}
}
}
}
}
}
}
}
grouping routing-properties {
choice routing-choice {
description
"Announces the tunnel to IGP as either
autoroute or forwarding adjacency.";
case autoroute {
container autoroute-announce {
presence "Enable autoroute announce.";
description
"Announce the MPLS-TE tunnel as autoroute to
IGP for use as IGP shortcut.";
leaf-list routing-afs {
type inet:ip-version;
}
choice metric-type {
leaf metric {
type uint32 {
range "1..2147483647";
}
}
leaf relative-metric {
type int32 {
range "-10..10";
}
}
leaf absolute-metric {
type uint32 {
range "1..2147483647";
}
}
}
}
}
case forwarding-adjacency {
container forwarding-adjacency {
presence "Enable forwarding adjacency
on the tunnel.";
description
"Announce the MPLS-TE tunnel
as forwarding adjacency.";
leaf holdtime {
description
"Holdtime in seconds after
tunnel becomes UP.";
type uint32 {
range "0..4294967295";
}
}
leaf-list routing-afs {
type inet:ip-version;
}
}
}
}
}
grouping forwarding {
description "Properties for using tunnel in forwarding.";
container forwarding {
leaf load-share {
description "ECMP tunnel forwarding
load-share factor.";
type uint32 {
range "1..4294967295";
}
}
choice policy-type {
container class {
leaf class {
type uint8 {
range "1..7";
}
}
}
container group {
leaf-list classes {
type uint8 {
range "1..7";
}
}
}
}
}
}
grouping auto-bandwidth {
container auto-bandwidth {
presence "Enabled MPLS-TE tunnel
auto-bandwidth feature.";
description
"MPLS-TE tunnel auto-bandwidth
configuration parameters.";
leaf adjustment-threshold {
description
"Auto-bandwidth change percent
to trigger adjustment.";
type uint8 {
range "1..100";
}
}
leaf adjustment-limit {
description
"Auto-bandwidth consecutive collections to
trigger adjustment.";
type uint8 {
range "1..10";
}
}
leaf adjustment-min-change {
description
"Auto-bandwidth bandwidth change value to
trigger an adjustment.";
type uint32 {
range "1..4294967295";
}
}
leaf overflow-threshold {
description
"Auto-bandwidth change percent
to trigger overflow.";
type uint8 {
range "1..100";
}
}
leaf overflow-limit {
description
"Auto-bandwidth consecutive collections
to trigger overflow.";
type uint8 {
range "1..10";
}
}
leaf overflow-min-change {
description
"Auto-bandwidth bandwidth change value to
trigger an overflow.";
type uint32 {
range "1..4294967295";
}
}
leaf underflow-threshold {
description
"Auto-bandwidth change percent
to trigger underflow.";
type uint8 {
range "1..100";
}
}
leaf underflow-limit {
description
"Auto-bandwidth consecutive collections
to trigger underflow.";
type uint8 {
range "1..10";
}
}
leaf underflow-min-change {
description
"Auto-bandwidth bandwidth change value
to trigger an underflow.";
type uint32 {
range "1..4294967295";
}
}
leaf collect-only {
description
"Auto-bandwidth collection only mode.";
type boolean;
}
leaf application-frequency {
description
"Auto-bandwidth application
interval in seconds.";
type uint32 {
range "5..10080";
}
}
container bandwidth-limit {
description
"min/max bandwidth auto-bw can apply on a tunnel.";
leaf min-limit {
type uint32 {
range "0..4294967295";
}
}
leaf max-limit {
type uint32 {
range "0..4294967295";
}
}
}
}
}
grouping backup-bandwidth {
container backup-bandwidth {
when "/tunnels-cfg/tunnel/backup-tunnel = true";
description
"The backup bandwidth that can be protected by this
backup tunnel.";
leaf value {
type uint32 {
range "1..4294967295";
}
}
leaf type {
type mtt:backup-bandwidth-type;
}
}
}
grouping bidirectional-associated {
container bidirectional {
description
"MPLS-TE associated bidirectional tunnel attributes.";
container association {
leaf id {
description
"The MPLS-TE tunnel association identifier.";
type uint16;
}
leaf source {
description
"The MPLS-TE tunnel association source.";
type inet:ip-address;
}
leaf global-source {
description
"The MPLS-TE tunnel association global
source.";
type inet:ip-address;
}
leaf type {
description "The MPLS-TE tunnel association type.";
type mtt:bidir-association-type;
}
}
}
}
/* MPLS-TE Tunnel Template Configuration Data */
grouping tunnel-template {
leaf name {
description "MPLS-TE tunnel-template name.";
type string;
}
uses path-selection;
uses signaling-properties;
uses affinity;
uses logging;
uses auto-bandwidth;
uses bfd-over-tunnel;
uses routing-properties;
uses forwarding;
}
grouping tunnel-template-leaf {
leaf template {
description
"Name of the template to use for
tunnel properties.";
type leafref {
path "/global-cfg/tunnel-templates/name";
}
}
}
/* groupings for rsvp */
grouping rsvp-graceful-restart {
description "Configure RSVP Graceful-Restart parameters.";
container graceful-restart {
presence "Enable RSVP graceful restart on the node.";
leaf restart-time {
description "Graceful restart time (seconds).";
type uint32 {
range "60..3600";
}
}
leaf hello-interval {
description "Configure interval between successive
Hello messages in milliseconds.";
type uint32 {
range "3000..30000";
}
}
leaf hello-misses {
description "Configure max number of consecutive
missed Hello messages.";
type uint32 {
range "1..10";
}
}
container pesr {
description "Sending Path Error with
Path State Removal flag.";
leaf disable {
type boolean;
}
}
}
}
grouping rsvp-authentication {
container authentication {
description "Configure RSVP authentication.";
leaf key-chain {
description "Key chain name to authenticate RSVP
signaling messages.";
type string {
length "1..32";
}
}
leaf life-time {
description "Life time for each security association";
type uint32 {
range "30..86400";
}
}
leaf window-size {
description "Window-size to limit number of
out-of-order messages.";
type uint32 {
range "1..64";
}
}
leaf challenge {
description "Enable challenge messages.";
type boolean;
}
leaf retransmits {
description "Number of retransmits when
messages are dropped.";
type uint32 {
range "1..10000";
}
}
}
}
grouping rsvp-refresh-reduction {
container refresh-reduction {
description "Configure RSVP Refresh Reduction parameters.";
leaf bundle-message-max-size {
description "Configure maximum size (bytes) of a
single RSVP Bundle message.";
type uint32 {
range "512..65000";
}
}
leaf disable {
description "Disable refresh reduction.";
type boolean;
}
leaf reliable-ack-hold-time {
description "Configure hold time in milliseconds
for sending RSVP ACK message(s).";
type uint32 {
range "100..5000";
}
}
leaf reliable-ack-max-size {
description "Configure max size of a
single RSVP ACK message.";
type uint32 {
range "20..65000";
}
}
leaf reliable-retransmit-time {
description "Configure min delay in
milliseconds
to wait for an ACK
before a retransmit.";
type uint32 {
range "100..10000";
}
}
leaf reliable-srefresh {
description "Configure use of reliable
messaging for summary refresh.";
type boolean;
}
leaf summary-max-size {
description "Configure max size (bytes)
of a single RSVP
summary refresh message.";
type uint32 {
range "20..65000";
}
}
}
}
grouping rsvp-signaling {
container signaling {
description "Configure RSVP signaling properties.";
leaf dscp {
description "DSCP for RSVP signaling messages.";
type uint32 {
range "0..63";
}
}
container hello-parameters {
description "Configure Hello parameters.";
leaf graceful-restart-interface-based {
description "Enable interface-based
Hello adjacency.";
type boolean;
}
}
container rate-limiting-parameters {
description "Configure rate limiting parameters.";
leaf limit-messages-per-interval {
description "Number of messages to be
sent per interval.";
type uint32 {
range "1..500";
}
}
leaf limit-interval-size {
description "Size of an interval (milliseconds).";
type uint32 {
range "250..2000";
}
}
}
container refresh-parameters {
leaf refresh-interval {
description "Configure interval in seconds
between successive refreshes.";
type uint32 {
range "10..180";
}
}
leaf refresh-missed-messages {
description "Configure max number of consecutive
missed messages for state expiry.";
type uint32 {
range "1..8";
}
}
uses rsvp-refresh-reduction;
}
}
}
grouping bandwidth-constraints {
description "Bandwidth constraints.";
container bandwidth-constraints {
leaf maximum-reservable {
type uint32 {
range "0..4294967295";
}
}
leaf-list bc-value {
type uint32 {
range "0..4294967295";
}
max-elements 8;
}
}
}
grouping bandwidth-constraint-values {
choice value-type {
case percentages {
container perc-values {
uses bandwidth-constraints;
}
}
case absolutes {
container abs-values {
uses bandwidth-constraints;
}
}
}
}
grouping rsvp-parameters {
container rsvp {
description "RSVP global configuration.";
uses rsvp-graceful-restart;
uses rsvp-authentication;
uses rsvp-signaling;
container reservable-bandwidth-percentages {
description "Reservable bandwidth percentage
capacity values.";
container rdm-bc {
description "Russian Doll Model Bandwidth
Constraints.";
uses bandwidth-constraints;
}
container mam-bc {
description "Maximum Allocation Model
Bandwidth Constraints.";
uses bandwidth-constraints;
}
container mar-bc {
description "Maximum Allocation with Reservation
Model Bandwidth Constraints.";
uses bandwidth-constraints;
}
}
}
}
/* Grouping for MPLS-TE Link */
grouping flooding-parameters {
description "Link flooding properties.";
container thresholds {
description "Flooding threshold values.";
choice type {
case single-step {
leaf up-step {
type uint8 {
range "0..100";
}
}
leaf down-step {
type uint8 {
range "0..100";
}
}
}
case multiple-steps {
list up-steps {
key "value";
description "Percentage bandwidth exceeded
that causes flooding.";
leaf value {
type uint8 {
range "0..100";
}
}
}
list down-steps {
key "value";
description "Percentage bandwidth crossed
that causes flooding.";
leaf value {
type uint8 {
range "0..100";
}
}
}
}
}
}
}
/* MPLS-TE Link Template Configuration Data */
grouping link-template {
leaf name {
description "MPLS-TE link-template name.";
type string;
}
uses rsvp-parameters;
}
grouping link-template-leaf {
leaf template {
description
"Name of the template to use for
TE link properties.";
type leafref {
path "/global-cfg/link-templates/name";
}
}
}
grouping auto-backup {
description
"Auto-tunnel backup properties.";
container auto-backup {
presence "Enable auto-tunnel backup on the node.";