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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
|
submodule openconfig-mpls-te {
yang-version "1";
belongs-to "openconfig-mpls" {
prefix "oc-mpls";
}
// import some basic types
import openconfig-inet-types { prefix inet; }
import openconfig-mpls-rsvp { prefix oc-rsvp; }
import openconfig-mpls-sr { prefix oc-sr; }
import openconfig-mpls-types {prefix oc-mplst; }
import openconfig-types { prefix oc-types; }
import openconfig-yang-types { prefix yang; }
import openconfig-extensions { prefix oc-ext; }
// meta
organization "OpenConfig working group";
contact
"OpenConfig working group
netopenconfig@googlegroups.com";
description
"Configuration related to constrained-path LSPs and traffic
engineering. These definitions are not specific to a particular
signaling protocol or mechanism (see related submodules for
signaling protocol-specific configuration).";
oc-ext:openconfig-version "3.0.0";
revision "2018-07-02" {
description
"Add new RSVP-TE statistics, remove associated-rsvp-session
leaf. Remove use of date-and-time.";
reference "3.0.0";
}
revision "2018-06-16" {
description
"Included attributes for base LDP configuration.";
reference "2.6.0";
}
revision "2018-06-13" {
description
"Add ttl-propagation to global MPLS config";
reference "2.5.0";
}
revision "2018-06-05" {
description
"Fixed bugs in when statements on RSVP-TE attributes";
reference "2.4.2";
}
revision "2017-08-24" {
description
"Minor formatting fixes.";
reference "2.4.1";
}
revision "2017-06-21" {
description
"Add TC bits typedef.";
reference "2.4.0";
}
revision "2017-03-22" {
description
"Add RSVP calculated-absolute-subscription-bw";
reference "2.3.0";
}
revision "2017-01-26" {
description
"Add RSVP Tspec, clarify units for RSVP, remove unused LDP";
reference "2.2.0";
}
revision "2016-12-15" {
description
"Add additional MPLS parameters";
reference "2.1.0";
}
revision "2016-09-01" {
description
"Revisions based on implementation feedback";
reference "2.0.0";
}
revision "2016-08-08" {
description
"Public release of MPLS models";
reference "1.0.1";
}
// typedef statements
typedef te-bandwidth-type {
type enumeration {
enum SPECIFIED {
description
"Bandwidth is explicitly specified";
}
enum AUTO {
description
"Bandwidth is automatically computed";
}
}
description
"enumerated type for specifying whether bandwidth is
explicitly specified or automatically computed";
}
typedef mpls-srlg-flooding-type {
type enumeration {
enum FLOODED_SRLG {
description
"SRLG is flooded in the IGP";
}
enum STATIC_SRLG {
description
"SRLG is not flooded, the members are
statically configured";
}
}
description
"Enumerated bype for specifying how the SRLG is flooded";
}
typedef mpls-hop-type {
type enumeration {
enum LOOSE {
description
"loose hop in an explicit path";
}
enum STRICT {
description
"strict hop in an explicit path";
}
}
description
"enumerated type for specifying loose or strict
paths";
}
typedef te-metric-type {
type union {
type enumeration {
enum IGP {
description
"set the LSP metric to track the underlying
IGP metric";
}
}
type uint32;
}
description
"union type for setting the LSP TE metric to a
static value, or to track the IGP metric";
}
typedef cspf-tie-breaking {
type enumeration {
enum RANDOM {
description
"CSPF calculation selects a random path among
multiple equal-cost paths to the destination";
}
enum LEAST_FILL {
description
"CSPF calculation selects the path with greatest
available bandwidth";
}
enum MOST_FILL {
description
"CSPF calculation selects the path with the least
available bandwidth";
}
}
default RANDOM;
description
"type to indicate the CSPF selection policy when
multiple equal cost paths are available";
}
// grouping statements
grouping te-tunnel-reoptimize-config {
description
"Definition for reoptimize timer configuration";
leaf reoptimize-timer {
type uint16;
units seconds;
description
"frequency of reoptimization of
a traffic engineered LSP";
}
}
grouping te-lsp-auto-bandwidth-config {
description
"Configuration parameters related to autobandwidth";
leaf enabled {
type boolean;
default false;
description
"enables mpls auto-bandwidth on the
lsp";
}
leaf min-bw {
type oc-mplst:bandwidth-kbps;
description
"set the minimum bandwidth in Kbps for an
auto-bandwidth LSP";
}
leaf max-bw {
type oc-mplst:bandwidth-kbps;
description
"set the maximum bandwidth in Kbps for an
auto-bandwidth LSP";
}
leaf adjust-interval {
type uint32;
description
"time in seconds between adjustments to
LSP bandwidth";
}
leaf adjust-threshold {
type oc-types:percentage;
description
"percentage difference between the LSP's
specified bandwidth and its current bandwidth
allocation -- if the difference is greater than the
specified percentage, auto-bandwidth adjustment is
triggered";
}
}
grouping te-lsp-auto-bandwidth-state {
description
"Operational state parameters relating to auto-bandwidth";
leaf interval-high-bw {
type oc-mplst:bandwidth-kbps;
description
"The maximum measured bandwidth during the current
auto-bandwidth adjust interval expressed in kilobits
per second.";
}
}
grouping te-lsp-overflow-config {
description
"configuration for mpls lsp bandwidth
overflow adjustment";
leaf enabled {
type boolean;
default false;
description
"enables mpls lsp bandwidth overflow
adjustment on the lsp";
}
leaf overflow-threshold {
type oc-types:percentage;
description
"bandwidth percentage change to trigger
an overflow event";
}
leaf trigger-event-count {
type uint16;
description
"number of consecutive overflow sample
events needed to trigger an overflow adjustment";
}
}
grouping te-lsp-underflow-config {
description
"configuration for mpls lsp bandwidth
underflow adjustment";
leaf enabled {
type boolean;
default false;
description
"enables bandwidth underflow
adjustment on the lsp";
}
leaf underflow-threshold {
type oc-types:percentage;
description
"bandwidth percentage change to trigger
and underflow event";
}
leaf trigger-event-count {
type uint16;
description
"number of consecutive underflow sample
events needed to trigger an underflow adjustment";
}
}
grouping te-path-placement-constraints-config {
description
"Configuration data for link affinities";
leaf-list exclude-group {
type leafref {
path "../../../../../../../../../../te-global-attributes" +
"/mpls-admin-groups/admin-group/admin-group-name";
}
description
"list of references to named admin-groups to exclude in
path calculation.";
}
leaf-list include-all-group {
type leafref {
path "../../../../../../../../../../te-global-attributes" +
"/mpls-admin-groups/admin-group/admin-group-name";
}
description
"list of references to named admin-groups of which all must
be included";
}
leaf-list include-any-group {
type leafref {
path "../../../../../../../../../../te-global-attributes" +
"/mpls-admin-groups/admin-group/admin-group-name";
}
description
"list of references to named admin-groups of which one must
be included";
}
}
grouping te-path-placement-constraints-state {
description
"Operational state data for link affinities";
//TODO: currently a placeholder
}
grouping te-path-placement-constraints-top {
description
"Top-level grouping ";
container admin-groups {
description
"Top-level container for include/exclude constraints for
link affinities";
container config {
description
"Configuration data ";
uses te-path-placement-constraints-config;
}
container state {
config false;
description
"Operational state data ";
uses te-path-placement-constraints-config;
uses te-path-placement-constraints-state;
}
}
}
grouping te-tunnel-protection-config {
description
"Configuration parameters related to LSP
protection";
leaf protection-style-requested {
type identityref {
base oc-mplst:PROTECTION_TYPE;
}
default oc-mplst:UNPROTECTED;
description
"style of mpls frr protection desired: can be
link, link-node or unprotected.";
}
}
grouping explicit-route-subobject-config {
description
"The explicit route subobject grouping";
leaf address {
type inet:ip-address;
description
"router hop for the LSP path";
}
leaf hop-type {
type mpls-hop-type;
description
"strict or loose hop";
}
leaf index {
type uint8 {
range "0..255";
}
description
"Index of this explicit route object to express
the order of hops in the path";
}
}
grouping named-explicit-path-config {
description
"Configuration parameters relating to a named
explicit path";
leaf name {
type string;
description
"A string name that uniquely identifies an explicit
path";
}
}
// Explicit paths config somewhat following the IETF model
grouping explicit-paths-top {
description
"Top level global explicit path configuration
grouping";
container named-explicit-paths {
description
"Enclosing container for the named explicit paths";
list named-explicit-path {
key "name";
description
"A list of explicit paths";
leaf name {
type leafref {
path "../config/name";
}
description
"A string name that uniquely identifies
an explicit path";
}
container config {
description
"Configuration parameters relating to named explicit
paths";
uses named-explicit-path-config;
uses oc-sr:sr-path-attributes-config;
}
container state {
config false;
description
"Operational state parameters relating to the named
explicit paths";
uses named-explicit-path-config;
uses oc-sr:sr-path-attributes-config;
}
container explicit-route-objects {
description
"Enclosing container for EROs";
list explicit-route-object {
key "index";
description
"List of explicit route objects";
leaf index {
type leafref {
path "../config/index";
}
description
"Index of this explicit route object,
to express the order of hops in path";
}
container config {
description
"Configuration parameters relating to an explicit
route";
uses explicit-route-subobject-config;
}
container state {
config false;
description
"State parameters relating to an explicit route";
uses explicit-route-subobject-config;
}
}
}
}
}
}
grouping mpls-te-srlg-config {
description
"Configuration of various attributes associated
with the SRLG";
leaf name {
type string;
description
"SRLG group identifier";
}
leaf value {
type uint32;
description
"group ID for the SRLG";
}
leaf cost {
type uint32;
description
"The cost of the SRLG to the computation
algorithm";
}
leaf flooding-type {
type mpls-srlg-flooding-type;
default FLOODED_SRLG;
description
"The type of SRLG, either flooded in the IGP or
statically configured";
}
}
grouping mpls-te-srlg-members-config {
description
"Configuration of the membership of the SRLG";
leaf from-address {
type inet:ip-address;
description
"IP address of the a-side of the SRLG link";
}
leaf to-address {
type inet:ip-address;
description
"IP address of the z-side of the SRLG link";
}
}
grouping mpls-te-srlg-top {
description
"Top level grouping for MPLS shared
risk link groups.";
container srlgs {
description
"Shared risk link groups attributes";
list srlg {
key "name";
description
"List of shared risk link groups";
leaf name {
type leafref {
path "../config/name";
// Requires YANG 1.1
//require-instance true;
}
description
"The SRLG group identifier";
}
container config {
description
"Configuration parameters related to the SRLG";
uses mpls-te-srlg-config;
}
container state {
config false;
description
"State parameters related to the SRLG";
uses mpls-te-srlg-config;
}
container static-srlg-members {
when "../config/flooding-type = 'STATIC_SRLG'" {
description
"Include this container for static
SRLG specific configuration";
}
description
"SRLG members for static (not flooded) SRLGs ";
list members-list {
key "from-address";
description
"List of SRLG members, which are expressed
as IP address endpoints of links contained in the
SRLG";
leaf from-address {
type leafref {
path "../config/from-address";
// Requires YANG 1.1
//require-instance true;
}
description
"The from address of the link in the SRLG";
}
container config {
description
"Configuration parameters relating to the
SRLG members";
uses mpls-te-srlg-members-config;
}
container state {
config false;
description
"State parameters relating to the SRLG
members";
uses mpls-te-srlg-members-config;
}
}
}
}
}
}
grouping te-global-tunnel-config {
description
"Configuration parameters relevant to a single
traffic engineered tunnel.";
leaf name {
type string;
description
"The tunnel name";
}
leaf type {
type identityref {
base oc-mplst:TUNNEL_TYPE;
}
description
"Tunnel type, p2p or p2mp";
}
leaf signaling-protocol {
type identityref {
base oc-mplst:PATH_SETUP_PROTOCOL;
}
description
"Signaling protocol used to set up this tunnel";
}
leaf description {
type string;
description
"optional text description for the tunnel";
}
leaf admin-status {
type identityref {
base oc-mplst:TUNNEL_ADMIN_STATUS;
}
default oc-mplst:ADMIN_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 metric-type {
type identityref {
base oc-mplst:LSP_METRIC_TYPE;
}
default oc-mplst:LSP_METRIC_INHERITED;
description
"The type of metric specification that should be used to set
the LSP(s) metric";
}
leaf metric {
type int32;
description
"The value of the metric that should be specified. The value
supplied in this leaf is used in conjunction with the metric
type to determine the value of the metric used by the system.
Where the metric-type is set to LSP_METRIC_ABSOLUTE - the
value of this leaf is used directly; where it is set to
LSP_METRIC_RELATIVE, the relevant (positive or negative)
offset is used to formulate the metric; where metric-type
is LSP_METRIC_INHERITED, the value of this leaf is not
utilised";
}
leaf shortcut-eligible {
type boolean;
default "true";
description
"Whether this LSP is considered to be eligible for us as a
shortcut in the IGP. In the case that this leaf is set to
true, the IGP SPF calculation uses the metric specified to
determine whether traffic should be carried over this LSP";
}
leaf protection-style-requested {
type identityref {
base oc-mplst:PROTECTION_TYPE;
}
default oc-mplst:UNPROTECTED;
description
"style of mpls frr protection desired: can be
link, link-node or unprotected.";
}
uses te-tunnel-reoptimize-config;
uses oc-rsvp:rsvp-p2p-tunnel-attributes-config;
}
grouping tunnel-p2p-attributes-config {
description
"Configuration related to p2p LSPs";
leaf destination {
type inet:ip-address;
description
"P2P tunnel destination address";
}
}
grouping p2p-path-state {
description
"Operational state parameters for p2p paths";
leaf-list associated-rsvp-sessions {
type leafref {
path "../../../../../../../../../signaling-protocols/" +
"rsvp-te/sessions/session/local-index";
}
description
"If the signalling protocol specified for this path is
RSVP-TE, this leaf-list provides a reference to the associated
sessions within the RSVP-TE protocol sessions list, such
that details of the signaling can be retrieved. More than
one session may exist during re-signalling such as
make-before-break.";
}
leaf spf-metric {
type uint64;
description
"The IGP metric of the shortest path to the LSP destination.
This value is used to compare the current metric of the
constrained path to the shortest path that is available in
the network topology.";
}
leaf cspf-metric {
type uint64;
description
"The IGP metric of the path currently used by the LSP.
This value is used to represent the metric of the path
used by the LSP following the execution of the CSPF
algorithm and signalling of the LSP.";
}
}
grouping p2p-path-config {
description
"Configuration parameters for p2p paths";
leaf name {
type string;
description
"Path name";
}
leaf path-computation-method {
type identityref {
base oc-mplst:PATH_COMPUTATION_METHOD;
}
default oc-mplst: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 use-cspf {
when "../path-computation-method = 'LOCALLY_COMPUTED'" {
description
"The use of cspf when the path-computation method is
local computation";
}
type boolean;
description
"Flag to enable CSPF for locally computed LSPs";
}
leaf cspf-tiebreaker {
when "../path-computation-method = 'LOCALLY_COMPUTED'" {
description
"The cspf tiebreaking method when the path is
locally computed";
}
type cspf-tie-breaking;
description
"Determine the tie-breaking method to choose between
equally desirable paths during CSFP computation";
}
leaf path-computation-server {
when "../path-computation-method = '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 explicit-path-name {
when "../path-computation-method = 'EXPLICITLY_DEFINED'" {
description
"The name of the explicitly defined path used";
}
type leafref {
path "../../../../../../../"
+ "named-explicit-paths/named-explicit-path/"
+ "config/name";
// Requires YANG 1.1
//require-instance true;
}
description
"reference to a defined path";
}
leaf preference {
type uint8 {
range "1..255";
}
description
"Specifies a preference for this path. The lower the
number higher the preference";
}
uses oc-rsvp:rsvp-p2p-path-attributes-config;
}
grouping te-tunnel-p2p-top {
description
"Top level grouping for p2p configuration";
container p2p-tunnel-attributes {
when "../config/type = 'P2P'" {
description
"Include this container for LSPs of type P2P";
}
description
"Parameters related to LSPs of type P2P";
container config {
description
"Configuration parameters for P2P LSPs";
uses tunnel-p2p-attributes-config;
}
container state {
config false;
description
"State parameters for P2P LSPs";
uses tunnel-p2p-attributes-config;
}
uses p2p-primary-paths-top;
uses p2p-secondary-paths-top;
}
}
grouping te-tunnel-state {
description
"Counters and statistical data relevent to a single
tunnel.";
leaf oper-status {
type identityref {
base oc-mplst:LSP_OPER_STATUS;
}
description
"The operational status of the TE tunnel";
}
leaf role {
type identityref {
base oc-mplst:LSP_ROLE;
}
description
"The lsp role at the current node, whether it is headend,
transit or tailend.";
}
leaf auto-generated {
type boolean;
description
"If the LSP was auto-generated by the system this leaf
should be set to true. Examples of auto-generated LSPs
are dynamically created backup LSPs to meet a FRR
policy.";
}
container counters {
description
"State data for MPLS label switched paths. This state
data is specific to a single label switched path.";
leaf bytes {
type yang:counter64;
description
"Number of bytes that have been forwarded over the
label switched path.";
}
leaf packets {
type yang:counter64;
description
"Number of pacets that have been forwarded over the
label switched path.";
}
leaf path-changes {
type yang:counter64;
description
"Number of path changes for the label switched path";
}
leaf state-changes {
type yang:counter64;
description
"Number of state changes for the label switched path";
}
leaf online-time {
type oc-types:timeticks64;
description
"Indication of the time the label switched path
transitioned to an Oper Up or in-service state.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).";
}
leaf current-path-time {
type oc-types:timeticks64;
description
"Indicates the time the LSP switched onto its
current path. The value is reset upon a LSP path
change.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).";
}
leaf next-reoptimization-time {
type oc-types:timeticks64;
description
"Indicates the next scheduled time the LSP
will be reoptimized.
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).";
}
}
}
grouping te-tunnel-bandwidth-config {
description
"Configuration parameters related to bandwidth for a tunnel";
leaf specification-type {
type te-bandwidth-type;
default SPECIFIED;
description
"The method used for settign the bandwidth, either explicitly
specified or configured";
}
leaf set-bandwidth {
when "../specification-type = 'SPECIFIED'" {
description
"The bandwidth value when bandwidth is explicitly
specified";
}
type oc-mplst:bandwidth-kbps;
description
"set bandwidth explicitly, e.g., using
offline calculation";
}
}
grouping te-tunnel-bandwidth-state {
description
"Operational state parameters relating to bandwidth for a tunnel";
leaf signaled-bandwidth {
type oc-mplst:bandwidth-kbps;
description
"The currently signaled bandwidth of the LSP. In the case where
the bandwidth is specified explicitly, then this will match the
value of the set-bandwidth leaf; in cases where the bandwidth is
dynamically computed by the system, the current value of the
bandwidth should be reflected.";
}
}
grouping te-tunnel-bandwidth-top {
description
"Top level grouping for specifying bandwidth for a tunnel";
container bandwidth {
description
"Bandwidth configuration for TE LSPs";
container config {
description
"Configuration parameters related to bandwidth on TE
tunnels:";
uses te-tunnel-bandwidth-config;
}
container state {
config false;
description
"State parameters related to bandwidth
configuration of TE tunnels";
uses te-tunnel-bandwidth-config;
uses te-tunnel-bandwidth-state;
}
container auto-bandwidth {
when "../config/specification-type = 'AUTO'" {
description
"Include this container for auto bandwidth
specific configuration";
}
description
"Parameters related to auto-bandwidth";
container config {
description
"Configuration parameters relating to MPLS
auto-bandwidth on the tunnel.";
uses te-lsp-auto-bandwidth-config;
}
container state {
config false;
description
"State parameters relating to MPLS
auto-bandwidth on the tunnel.";
uses te-lsp-auto-bandwidth-config;
uses te-lsp-auto-bandwidth-state;
}
container overflow {
description
"configuration of MPLS overflow bandwidth
adjustement for the LSP";
container config {
description
"Config information for MPLS overflow bandwidth
adjustment";
uses te-lsp-overflow-config;
}
container state {
config false;
description
"Config information for MPLS overflow bandwidth
adjustment";
uses te-lsp-overflow-config;
}
}
container underflow {
description
"configuration of MPLS underflow bandwidth
adjustement for the LSP";
container config {
description
"Config information for MPLS underflow bandwidth
adjustment";
uses te-lsp-underflow-config;
}
container state {
config false;
description
"State information for MPLS underflow bandwidth
adjustment";
uses te-lsp-underflow-config;
}
}
}
}
}
grouping p2p-path-candidate-secondary-path-config {
description
"Configuration parameters relating to a secondary path which
is a candidate for a particular primary path";
leaf secondary-path {
type leafref {
path "../../../../../../p2p-secondary-paths/" +
"p2p-secondary-path/config/name";
}
description
"A reference to the secondary path that should be utilised
when the containing primary path option is in use";
}
leaf priority {
type uint16;
description
"The priority of the specified secondary path option. Higher
priority options are less preferable - such that a secondary
path reference with a priority of 0 is the most preferred";
}
}
grouping p2p-path-candidate-secondary-path-state {
description
"Operational state parameters relating to a secondary path
which is a candidate for a particular primary path";
leaf active {
type boolean;
description
"Indicates the current active path option that has
been selected of the candidate secondary paths";
}
}
grouping p2p-primary-paths-top {
description
"Top level grouping for p2p primary paths";
container p2p-primary-path {
description
"Primary paths associated with the LSP";
list p2p-primary-path {
key "name";
description
"List of p2p primary paths for a tunnel";
leaf name {
type leafref {
path "../config/name";
// Requires YANG 1.1
//require-instance true;
}
description
"Path name";
}
container config {
description
"Configuration parameters related to paths";
uses p2p-path-config;
}
container state {
config false;
description
"State parameters related to paths";
uses p2p-path-config;
uses p2p-path-state;
}
container candidate-secondary-paths {
description
"The set of candidate secondary paths which may be used
for this primary path. When secondary paths are specified
in the list the path of the secondary LSP in use must be
restricted to those path options referenced. The
priority of the secondary paths is specified within the
list. Higher priority values are less preferred - that is
to say that a path with priority 0 is the most preferred
path. In the case that the list is empty, any secondary
path option may be utilised when the current primary path
is in use.";
list candidate-secondary-path {
key "secondary-path";
description
"List of secondary paths which may be utilised when the
current primary path is in use";
leaf secondary-path {
type leafref {
path "../config/secondary-path";
}
description
"A reference to the secondary path option reference
which acts as the key of the candidate-secondary-path
list";
}
container config {
description
"Configuration parameters relating to the candidate
secondary path";
uses p2p-path-candidate-secondary-path-config;
}
container state {
config false;
description
"Operational state parameters relating to the candidate
secondary path";
uses p2p-path-candidate-secondary-path-config;
uses p2p-path-candidate-secondary-path-state;
}
}
}
uses te-path-placement-constraints-top;
}
}
}
grouping p2p-secondary-paths-top {
description
"Top level grouping for p2p secondary paths";
container p2p-secondary-paths {
description
"Secondary paths for the LSP";
list p2p-secondary-path {
key "name";
description
"List of p2p primary paths for a tunnel";
leaf name {
type leafref {
path "../config/name";
// Requires YANG 1.1
//require-instance true;
}
description
"Path name";
}
container config {
description
"Configuration parameters related to paths";
uses p2p-path-config;
}
container state {
config false;
description
"State parameters related to paths";
uses p2p-path-config;
uses p2p-path-state;
}
uses te-path-placement-constraints-top;
}
}
}
grouping te-tunnels-top {
description
"Top level grouping for TE tunnels";
container tunnels {
description
"Enclosing container for tunnels";
list tunnel {
key "name";
description
"List of TE tunnels. This list contains only the LSPs that the
current device originates (i.e., for which it is the head-end).
Where the signaling protocol utilised for an LSP allows a mid-point
or tail device to be aware of the LSP (e.g., RSVP-TE), then the
associated sessions are maintained per protocol";
leaf name {
type leafref {
path "../config/name";
// Requires YANG 1.1
//require-instance true;
}
description
"The tunnel name";
}
container config {
description
"Configuration parameters related to TE tunnels:";
uses te-global-tunnel-config;
}
container state {
config false;
description
"State parameters related to TE tunnels";
uses te-global-tunnel-config;
uses te-tunnel-state;
}
uses te-tunnel-bandwidth-top;
uses te-tunnel-p2p-top;
// TODO - add the p2mp configuration
}
}
}
// data definition statements
// augment statements
// rpc statements
// notification statements
}
|