summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc8776.txt
blob: 48b601d440196b6415a9a6aa2390f70b4e1192c6 (plain) (blame)
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
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
Internet Engineering Task Force (IETF)                           T. Saad
Request for Comments: 8776                              Juniper Networks
Category: Standards Track                                      R. Gandhi
ISSN: 2070-1721                                      Cisco Systems, Inc.
                                                                  X. Liu
                                                          Volta Networks
                                                               V. Beeram
                                                        Juniper Networks
                                                              I. Bryskin
                                            Futurewei Technologies, Inc.
                                                               June 2020


             Common YANG Data Types for Traffic Engineering

Abstract

   This document defines a collection of common data types and groupings
   in YANG data modeling language.  These derived common types and
   groupings are intended to be imported by modules that model Traffic
   Engineering (TE) configuration and state capabilities.

Status of This Memo

   This is an Internet Standards Track document.

   This document is a product of the Internet Engineering Task Force
   (IETF).  It represents the consensus of the IETF community.  It has
   received public review and has been approved for publication by the
   Internet Engineering Steering Group (IESG).  Further information on
   Internet Standards is available in Section 2 of RFC 7841.

   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   https://www.rfc-editor.org/info/rfc8776.

Copyright Notice

   Copyright (c) 2020 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction
     1.1.  Terminology
     1.2.  Prefixes in Data Node Names
   2.  Acronyms and Abbreviations
   3.  Overview
     3.1.  TE Types Module Contents
     3.2.  Packet TE Types Module Contents
   4.  TE Types YANG Module
   5.  Packet TE Types YANG Module
   6.  IANA Considerations
   7.  Security Considerations
   8.  References
     8.1.  Normative References
     8.2.  Informative References
   Acknowledgments
   Contributors
   Authors' Addresses

1.  Introduction

   YANG [RFC6020] [RFC7950] is a data modeling language used to model
   configuration data, state data, Remote Procedure Calls, and
   notifications for network management protocols such as the Network
   Configuration Protocol (NETCONF) [RFC6241].  The YANG language
   supports a small set of built-in data types and provides mechanisms
   to derive other types from the built-in types.

   This document introduces a collection of common data types derived
   from the built-in YANG data types.  The derived types and groupings
   are designed to be the common types applicable for modeling Traffic
   Engineering (TE) features in model(s) defined outside of this
   document.

1.1.  Terminology

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in
   BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all
   capitals, as shown here.

   The terminology for describing YANG data models is found in
   [RFC7950].

1.2.  Prefixes in Data Node Names

   In this document, names of data nodes and other data model objects
   are prefixed using the standard prefix associated with the
   corresponding YANG imported modules, as shown in Table 1.

        +-----------------+----------------------+---------------+
        | Prefix          | YANG Module          | Reference     |
        +=================+======================+===============+
        | yang            | ietf-yang-types      | [RFC6991]     |
        +-----------------+----------------------+---------------+
        | inet            | ietf-inet-types      | [RFC6991]     |
        +-----------------+----------------------+---------------+
        | rt-types        | ietf-routing-types   | [RFC8294]     |
        +-----------------+----------------------+---------------+
        | te-types        | ietf-te-types        | This document |
        +-----------------+----------------------+---------------+
        | te-packet-types | ietf-te-packet-types | This document |
        +-----------------+----------------------+---------------+

             Table 1: Prefixes and Corresponding YANG Modules

2.  Acronyms and Abbreviations

   GMPLS:    Generalized Multiprotocol Label Switching

   LSP:      Label Switched Path

   LSR:      Label Switching Router

   LER:      Label Edge Router

   MPLS:     Multiprotocol Label Switching

   RSVP:     Resource Reservation Protocol

   TE:       Traffic Engineering

   DS-TE:    Differentiated Services Traffic Engineering

   SRLG:     Shared Risk Link Group

   NBMA:     Non-Broadcast Multi-Access

   APS:      Automatic Protection Switching

   SD:       Signal Degrade

   SF:       Signal Fail

   WTR:      Wait-to-Restore

   PM:       Performance Metrics

3.  Overview

   This document defines two YANG modules for common TE types:
   "ietf-te-types" for TE generic types and "ietf-te-packet-types" for
   packet-specific types.  Other technology-specific TE types are
   outside the scope of this document.

3.1.  TE Types Module Contents

   The "ietf-te-types" module (Section 4) contains common TE types that
   are independent and agnostic of any specific technology or control-
   plane instance.

   The "ietf-te-types" module contains the following YANG reusable types
   and groupings:

   te-bandwidth:
      A YANG grouping that defines the generic TE bandwidth.  The
      modeling structure allows augmentation for each technology.  For
      unspecified technologies, the string-encoded "te-bandwidth" type
      is used.

   te-label:
      A YANG grouping that defines the generic TE label.  The modeling
      structure allows augmentation for each technology.  For
      unspecified technologies, "rt-types:generalized-label" is used.

   performance-metrics-attributes:
      A YANG grouping that defines one-way and two-way measured
      Performance Metrics (PM) and indications of anomalies on link(s)
      or the path as defined in [RFC7471], [RFC8570], and [RFC7823].

   performance-metrics-throttle-container:
      A YANG grouping that defines configurable thresholds for
      advertisement suppression and measurement intervals.

   te-ds-class:
      A type representing the Differentiated Services (DS) Class-Type of
      traffic as defined in [RFC4124].

   te-label-direction:
      An enumerated type for specifying the forward or reverse direction
      of a label.

   te-hop-type:
      An enumerated type for specifying that a hop is loose or strict.

   te-global-id:
      A type representing the identifier that uniquely identifies an
      operator, which can be either a provider or a client.  The
      definition of this type is taken from [RFC6370] and [RFC5003].
      This attribute type is used solely to provide a globally unique
      context for TE topologies.

   te-node-id:
      A type representing the identifier for a node in a TE topology.
      The identifier is represented as 4 octets in dotted-quad notation.
      This attribute MAY be mapped to the Router Address TLV described
      in Section 2.4.1 of [RFC3630], the TE Router ID described in
      Section 3 of [RFC6827], the Traffic Engineering Router ID TLV
      described in Section 4.3 of [RFC5305], or the TE Router ID TLV
      described in Section 3.2.1 of [RFC6119].  The reachability of such
      a TE node MAY be achieved by a mechanism such as that described in
      Section 6.2 of [RFC6827].

   te-topology-id:
      A type representing the identifier for a topology.  It is optional
      to have one or more prefixes at the beginning, separated by
      colons.  The prefixes can be "network-types" as defined in the
      "ietf-network" module in [RFC8345], to help the user better
      understand the topology before further inquiry is made.

   te-tp-id:
      A type representing the identifier of a TE interface Link
      Termination Point (LTP) on a specific TE node where the TE link
      connects.  This attribute is mapped to a local or remote link
      identifier [RFC3630] [RFC5305].

   te-path-disjointness:
      A type representing the different resource disjointness options
      for a TE tunnel path as defined in [RFC4872].

   admin-groups:
      A union type for a TE link's classic or extended administrative
      groups as defined in [RFC3630], [RFC5305], and [RFC7308].

   srlg:
      A type representing the Shared Risk Link Group (SRLG) as defined
      in [RFC4203] and [RFC5307].

   te-metric:
      A type representing the TE metric as defined in [RFC3785].

   te-recovery-status:
      An enumerated type for the different statuses of a recovery action
      as defined in [RFC4427] and [RFC6378].

   path-attribute-flags:
      A base YANG identity for supported LSP path flags as defined in
      [RFC3209], [RFC4090], [RFC4736], [RFC5712], [RFC4920], [RFC5420],
      [RFC7570], [RFC4875], [RFC5151], [RFC5150], [RFC6001], [RFC6790],
      [RFC7260], [RFC8001], [RFC8149], and [RFC8169].

   link-protection-type:
      A base YANG identity for supported link protection types as
      defined in [RFC4872] and [RFC4427].

   restoration-scheme-type:
      A base YANG identity for supported LSP restoration schemes as
      defined in [RFC4872].

   protection-external-commands:
      A base YANG identity for supported protection-related external
      commands used for troubleshooting purposes, as defined in
      [RFC4427].

   association-type:
      A base YANG identity for supported LSP association types as
      defined in [RFC6780], [RFC4872], and [RFC4873].

   objective-function-type:
      A base YANG identity for supported path computation objective
      functions as defined in [RFC5541].

   te-tunnel-type:
      A base YANG identity for supported TE tunnel types as defined in
      [RFC3209] and [RFC4875].

   lsp-encoding-types:
      A base YANG identity for supported LSP encoding types as defined
      in [RFC3471].

   lsp-protection-type:
      A base YANG identity for supported LSP protection types as defined
      in [RFC4872] and [RFC4873].

   switching-capabilities:
      A base YANG identity for supported interface switching
      capabilities as defined in [RFC3471].

   resource-affinities-type:
      A base YANG identity for supported attribute filters associated
      with a tunnel that must be satisfied for a link to be acceptable
      as defined in [RFC2702] and [RFC3209].

   path-metric-type:
      A base YANG identity for supported path metric types as defined in
      [RFC3785] and [RFC7471].

   explicit-route-hop:
      A YANG grouping that defines supported explicit routes as defined
      in [RFC3209] and [RFC3477].

   te-link-access-type:
      An enumerated type for the different TE link access types as
      defined in [RFC3630].

3.2.  Packet TE Types Module Contents

   The "ietf-te-packet-types" module (Section 5) covers the common types
   and groupings that are specific to packet technology.

   The "ietf-te-packet-types" module contains the following YANG
   reusable types and groupings:

   backup-protection-type:
      A base YANG identity for supported protection types that a backup
      or bypass tunnel can provide as defined in [RFC4090].

   te-class-type:
      A type that represents the Diffserv-TE Class-Type as defined in
      [RFC4124].

   bc-type:
      A type that represents Diffserv-TE Bandwidth Constraints (BCs) as
      defined in [RFC4124].

   bc-model-type:
      A base YANG identity for supported Diffserv-TE Bandwidth
      Constraints Models as defined in [RFC4125], [RFC4126], and
      [RFC4127].

   te-bandwidth-requested-type:
      An enumerated type for the different options to request bandwidth
      for a specific tunnel.

   performance-metrics-attributes-packet:
      A YANG grouping that contains the generic performance metrics and
      additional packet-specific metrics.

4.  TE Types YANG Module

   The "ietf-te-types" module imports from the following modules:

   *  "ietf-yang-types" and "ietf-inet-types" as defined in [RFC6991]

   *  "ietf-routing-types" as defined in [RFC8294]

   In addition to [RFC6991] and [RFC8294], this module references the
   following documents in defining the types and YANG groupings:
   [RFC3272], [RFC4090], [RFC4202], [RFC4328], [RFC4561], [RFC4657],
   [RFC5817], [RFC6004], [RFC6511], [RFC7139], [RFC7308], [RFC7551],
   [RFC7571], [RFC7579], and [G.709].

   <CODE BEGINS> file "ietf-te-types@2020-06-10.yang"
   module ietf-te-types {
     yang-version 1.1;
     namespace "urn:ietf:params:xml:ns:yang:ietf-te-types";
     prefix te-types;

     import ietf-inet-types {
       prefix inet;
       reference
         "RFC 6991: Common YANG Data Types";
     }
     import ietf-yang-types {
       prefix yang;
       reference
         "RFC 6991: Common YANG Data Types";
     }
     import ietf-routing-types {
       prefix rt-types;
       reference
         "RFC 8294: Common YANG Data Types for the Routing Area";
     }

     organization
       "IETF Traffic Engineering Architecture and Signaling (TEAS)
        Working Group";
     contact
       "WG Web:   <https://datatracker.ietf.org/wg/teas/>
        WG List:  <mailto:teas@ietf.org>

        Editor:   Tarek Saad
                  <mailto:tsaad@juniper.net>

        Editor:   Rakesh Gandhi
                  <mailto:rgandhi@cisco.com>

        Editor:   Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Xufeng Liu
                  <mailto:xufeng.liu.ietf@gmail.com>

        Editor:   Igor Bryskin
                  <mailto:i_bryskin@yahoo.com>";
     description
       "This YANG module contains a collection of generally useful
        YANG data type definitions specific to TE.  The model fully
        conforms to the Network Management Datastore Architecture
        (NMDA).

        The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
        NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
        'MAY', and 'OPTIONAL' in this document are to be interpreted as
        described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
        they appear in all capitals, as shown here.

        Copyright (c) 2020 IETF Trust and the persons identified as
        authors of the code.  All rights reserved.

        Redistribution and use in source and binary forms, with or
        without modification, is permitted pursuant to, and subject to
        the license terms contained in, the Simplified BSD License set
        forth in Section 4.c of the IETF Trust's Legal Provisions
        Relating to IETF Documents
        (https://trustee.ietf.org/license-info).

        This version of this YANG module is part of RFC 8776; see the
        RFC itself for full legal notices.";

     revision 2020-06-10 {
       description
         "Latest revision of TE types.";
       reference
         "RFC 8776: Common YANG Data Types for Traffic Engineering";
     }

     /**
      * Typedefs
      */

     typedef admin-group {
       type yang:hex-string {
         /* 01:02:03:04 */
         length "1..11";
       }
       description
         "Administrative group / resource class / color representation
          in 'hex-string' type.
          The most significant byte in the hex-string is the farthest
          to the left in the byte sequence.  Leading zero bytes in the
          configured value may be omitted for brevity.";
       reference
         "RFC 3630: Traffic Engineering (TE) Extensions to OSPF
          Version 2
          RFC 5305: IS-IS Extensions for Traffic Engineering
          RFC 7308: Extended Administrative Groups in MPLS Traffic
          Engineering (MPLS-TE)";
     }

     typedef admin-groups {
       type union {
         type admin-group;
         type extended-admin-group;
       }
       description
         "Derived types for TE administrative groups.";
     }

     typedef extended-admin-group {
       type yang:hex-string;
       description
         "Extended administrative group / resource class / color
          representation in 'hex-string' type.
          The most significant byte in the hex-string is the farthest
          to the left in the byte sequence.  Leading zero bytes in the
          configured value may be omitted for brevity.";
       reference
         "RFC 7308: Extended Administrative Groups in MPLS Traffic
          Engineering (MPLS-TE)";
     }

     typedef path-attribute-flags {
       type union {
         type identityref {
           base session-attributes-flags;
         }
         type identityref {
           base lsp-attributes-flags;
         }
       }
       description
         "Path attributes flags type.";
     }

     typedef performance-metrics-normality {
       type enumeration {
         enum unknown {
           value 0;
           description
             "Unknown.";
         }
         enum normal {
           value 1;
           description
             "Normal.  Indicates that the anomalous bit is not set.";
         }
         enum abnormal {
           value 2;
           description
             "Abnormal.  Indicates that the anomalous bit is set.";
         }
       }
       description
         "Indicates whether a performance metric is normal (anomalous
          bit not set), abnormal (anomalous bit set), or unknown.";
       reference
         "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions
          RFC 7823: Performance-Based Path Selection for Explicitly
          Routed Label Switched Paths (LSPs) Using TE Metric
          Extensions
          RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
     }

     typedef srlg {
       type uint32;
       description
         "SRLG type.";
       reference
         "RFC 4203: OSPF Extensions in Support of Generalized
          Multi-Protocol Label Switching (GMPLS)
          RFC 5307: IS-IS Extensions in Support of Generalized
          Multi-Protocol Label Switching (GMPLS)";
     }

     typedef te-common-status {
       type enumeration {
         enum up {
           description
             "Enabled.";
         }
         enum down {
           description
             "Disabled.";
         }
         enum testing {
           description
             "In some test mode.";
         }
         enum preparing-maintenance {
           description
             "The resource is disabled in the control plane to prepare
              for a graceful shutdown for maintenance purposes.";
           reference
             "RFC 5817: Graceful Shutdown in MPLS and Generalized MPLS
              Traffic Engineering Networks";
         }
         enum maintenance {
           description
             "The resource is disabled in the data plane for maintenance
              purposes.";
         }
         enum unknown {
           description
             "Status is unknown.";
         }
       }
       description
         "Defines a type representing the common states of a TE
          resource.";
     }

     typedef te-bandwidth {
       type string {
         pattern '0[xX](0((\.0?)?[pP](\+)?0?|(\.0?))|'
               + '1(\.([\da-fA-F]{0,5}[02468aAcCeE]?)?)?'
               + '[pP](\+)?(12[0-7]|'
               + '1[01]\d|0?\d?\d)?)|0[xX][\da-fA-F]{1,8}|\d+'
               + '(,(0[xX](0((\.0?)?[pP](\+)?0?|(\.0?))|'
               + '1(\.([\da-fA-F]{0,5}[02468aAcCeE]?)?)?'
               + '[pP](\+)?(12[0-7]|'
               + '1[01]\d|0?\d?\d)?)|0[xX][\da-fA-F]{1,8}|\d+))*';
       }
       description
         "This is the generic bandwidth type.  It is a string containing
          a list of numbers separated by commas, where each of these
          numbers can be non-negative decimal, hex integer, or
          hex float:

          (dec | hex | float)[*(','(dec | hex | float))]

          For the packet-switching type, the string encoding follows
          the type 'bandwidth-ieee-float32' as defined in RFC 8294
          (e.g., 0x1p10), where the units are in bytes per second.

          For the Optical Transport Network (OTN) switching type,
          a list of integers can be used, such as '0,2,3,1', indicating
          two ODU0s and one ODU3.  ('ODU' stands for 'Optical Data
          Unit'.)  For Dense Wavelength Division Multiplexing (DWDM),
          a list of pairs of slot numbers and widths can be used,
          such as '0,2,3,3', indicating a frequency slot 0 with
          slot width 2 and a frequency slot 3 with slot width 3.
          Canonically, the string is represented as all lowercase and in
          hex, where the prefix '0x' precedes the hex number.";
       reference
         "RFC 8294: Common YANG Data Types for the Routing Area
          ITU-T Recommendation G.709: Interfaces for the
          optical transport network";
     }

     typedef te-ds-class {
       type uint8 {
         range "0..7";
       }
       description
         "The Differentiated Services Class-Type of traffic.";
       reference
         "RFC 4124: Protocol Extensions for Support of Diffserv-aware
          MPLS Traffic Engineering, Section 4.3.1";
     }

     typedef te-global-id {
       type uint32;
       description
         "An identifier to uniquely identify an operator, which can be
          either a provider or a client.
          The definition of this type is taken from RFCs 6370 and 5003.
          This attribute type is used solely to provide a globally
          unique context for TE topologies.";
       reference
         "RFC 5003: Attachment Individual Identifier (AII) Types for
          Aggregation
          RFC 6370: MPLS Transport Profile (MPLS-TP) Identifiers";
     }

     typedef te-hop-type {
       type enumeration {
         enum loose {
           description
             "A loose hop in an explicit path.";
         }
         enum strict {
           description
             "A strict hop in an explicit path.";
         }
       }
       description
         "Enumerated type for specifying loose or strict paths.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels,
          Section 4.3.3";
     }

     typedef te-link-access-type {
       type enumeration {
         enum point-to-point {
           description
             "The link is point-to-point.";
         }
         enum multi-access {
           description
             "The link is multi-access, including broadcast and NBMA.";
         }
       }
       description
         "Defines a type representing the access type of a TE link.";
       reference
         "RFC 3630: Traffic Engineering (TE) Extensions to OSPF
          Version 2";
     }

     typedef te-label-direction {
       type enumeration {
         enum forward {
           description
             "Label allocated for the forward LSP direction.";
         }
         enum reverse {
           description
             "Label allocated for the reverse LSP direction.";
         }
       }
       description
         "Enumerated type for specifying the forward or reverse
          label.";
     }

     typedef te-link-direction {
       type enumeration {
         enum incoming {
           description
             "The explicit route represents an incoming link on
              a node.";
         }
         enum outgoing {
           description
             "The explicit route represents an outgoing link on
              a node.";
         }
       }
       description
         "Enumerated type for specifying the direction of a link on
          a node.";
     }

     typedef te-metric {
       type uint32;
       description
         "TE metric.";
       reference
         "RFC 3785: Use of Interior Gateway Protocol (IGP) Metric as a
          second MPLS Traffic Engineering (TE) Metric";
     }

     typedef te-node-id {
       type yang:dotted-quad;
       description
         "A type representing the identifier for a node in a TE
          topology.
          The identifier is represented as 4 octets in dotted-quad
          notation.
          This attribute MAY be mapped to the Router Address TLV
          described in Section 2.4.1 of RFC 3630, the TE Router ID
          described in Section 3 of RFC 6827, the Traffic Engineering
          Router ID TLV described in Section 4.3 of RFC 5305, or the
          TE Router ID TLV described in Section 3.2.1 of RFC 6119.
          The reachability of such a TE node MAY be achieved by a
          mechanism such as that described in Section 6.2 of RFC 6827.";
       reference
         "RFC 3630: Traffic Engineering (TE) Extensions to OSPF
          Version 2, Section 2.4.1
          RFC 5305: IS-IS Extensions for Traffic Engineering,
          Section 4.3
          RFC 6119: IPv6 Traffic Engineering in IS-IS, Section 3.2.1
          RFC 6827: Automatically Switched Optical Network (ASON)
          Routing for OSPFv2 Protocols, Section 3";
     }

     typedef te-oper-status {
       type te-common-status;
       description
         "Defines a type representing the operational status of
          a TE resource.";
     }

     typedef te-admin-status {
       type te-common-status;
       description
         "Defines a type representing the administrative status of
          a TE resource.";
     }

     typedef te-path-disjointness {
       type bits {
         bit node {
           position 0;
           description
             "Node disjoint.";
         }
         bit link {
           position 1;
           description
             "Link disjoint.";
         }
         bit srlg {
           position 2;
           description
             "SRLG (Shared Risk Link Group) disjoint.";
         }
       }
       description
         "Type of the resource disjointness for a TE tunnel path.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     typedef te-recovery-status {
       type enumeration {
         enum normal {
           description
             "Both the recovery span and the working span are fully
              allocated and active, data traffic is being
              transported over (or selected from) the working
              span, and no trigger events are reported.";
         }
         enum recovery-started {
           description
             "The recovery action has been started but not completed.";
         }
         enum recovery-succeeded {
           description
             "The recovery action has succeeded.  The working span has
              reported a failure/degrade condition, and the user traffic
              is being transported (or selected) on the recovery span.";
         }
         enum recovery-failed {
           description
             "The recovery action has failed.";
         }
         enum reversion-started {
           description
             "The reversion has started.";
         }
         enum reversion-succeeded {
           description
             "The reversion action has succeeded.";
         }
         enum reversion-failed {
           description
             "The reversion has failed.";
         }
         enum recovery-unavailable {
           description
             "The recovery is unavailable, as a result of either an
              operator's lockout command or a failure condition
              detected on the recovery span.";
         }
         enum recovery-admin {
           description
             "The operator has issued a command to switch the user
              traffic to the recovery span.";
         }
         enum wait-to-restore {
           description
             "The recovery domain is recovering from a failure/degrade
              condition on the working span that is being controlled by
              the Wait-to-Restore (WTR) timer.";
         }
       }
       description
         "Defines the status of a recovery action.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)
          RFC 6378: MPLS Transport Profile (MPLS-TP) Linear Protection";
     }

     typedef te-template-name {
       type string {
         pattern '/?([a-zA-Z0-9\-_.]+)(/[a-zA-Z0-9\-_.]+)*';
       }
       description
         "A type for the name of a TE node template or TE link
          template.";
     }

     typedef te-topology-event-type {
       type enumeration {
         enum add {
           value 0;
           description
             "A TE node or TE link has been added.";
         }
         enum remove {
           value 1;
           description
             "A TE node or TE link has been removed.";
         }
         enum update {
           value 2;
           description
             "A TE node or TE link has been updated.";
         }
       }
       description
         "TE event type for notifications.";
     }

     typedef te-topology-id {
       type union {
         type string {
           length "0";
           // empty string
         }
         type string {
           pattern '([a-zA-Z0-9\-_.]+:)*'
                 + '/?([a-zA-Z0-9\-_.]+)(/[a-zA-Z0-9\-_.]+)*';
         }
       }
       description
         "An identifier for a topology.
          It is optional to have one or more prefixes at the beginning,
          separated by colons.  The prefixes can be 'network-types' as
          defined in the 'ietf-network' module in RFC 8345, to help the
          user better understand the topology before further inquiry
          is made.";
       reference
         "RFC 8345: A YANG Data Model for Network Topologies";
     }

     typedef te-tp-id {
       type union {
         type uint32;
         // Unnumbered
         type inet:ip-address;
         // IPv4 or IPv6 address
       }
       description
         "An identifier for a TE link endpoint on a node.
          This attribute is mapped to a local or remote link identifier
          as defined in RFCs 3630 and 5305.";
       reference
         "RFC 3630: Traffic Engineering (TE) Extensions to OSPF
          Version 2
          RFC 5305: IS-IS Extensions for Traffic Engineering";
     }

     /* TE features */

     feature p2mp-te {
       description
         "Indicates support for Point-to-Multipoint TE (P2MP-TE).";
       reference
         "RFC 4875: Extensions to Resource Reservation Protocol -
          Traffic Engineering (RSVP-TE) for Point-to-Multipoint TE
          Label Switched Paths (LSPs)";
     }

     feature frr-te {
       description
         "Indicates support for TE Fast Reroute (FRR).";
       reference
         "RFC 4090: Fast Reroute Extensions to RSVP-TE for LSP Tunnels";
     }

     feature extended-admin-groups {
       description
         "Indicates support for TE link extended administrative
          groups.";
       reference
         "RFC 7308: Extended Administrative Groups in MPLS Traffic
          Engineering (MPLS-TE)";
     }

     feature named-path-affinities {
       description
         "Indicates support for named path affinities.";
     }

     feature named-extended-admin-groups {
       description
         "Indicates support for named extended administrative groups.";
     }

     feature named-srlg-groups {
       description
         "Indicates support for named SRLG groups.";
     }

     feature named-path-constraints {
       description
         "Indicates support for named path constraints.";
     }

     feature path-optimization-metric {
       description
         "Indicates support for path optimization metrics.";
     }

     feature path-optimization-objective-function {
       description
         "Indicates support for path optimization objective functions.";
     }

     /*
      * Identities
      */

     identity session-attributes-flags {
       description
         "Base identity for the RSVP-TE session attributes flags.";
     }

     identity local-protection-desired {
       base session-attributes-flags;
       description
         "Local protection is desired.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels,
          Section 4.7.1";
     }

     identity se-style-desired {
       base session-attributes-flags;
       description
         "Shared explicit style, to allow the LSP to be established
          and share resources with the old LSP.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels";
     }

     identity local-recording-desired {
       base session-attributes-flags;
       description
         "Label recording is desired.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels,
          Section 4.7.1";
     }

     identity bandwidth-protection-desired {
       base session-attributes-flags;
       description
         "Requests FRR bandwidth protection on LSRs, if present.";
       reference
         "RFC 4090: Fast Reroute Extensions to RSVP-TE for LSP Tunnels";
     }

     identity node-protection-desired {
       base session-attributes-flags;
       description
         "Requests FRR node protection on LSRs, if present.";
       reference
         "RFC 4090: Fast Reroute Extensions to RSVP-TE for LSP Tunnels";
     }

     identity path-reevaluation-request {
       base session-attributes-flags;
       description
         "This flag indicates that a path re-evaluation (of the
          current path in use) is requested.  Note that this does
          not trigger any LSP reroutes but instead just signals a
          request to evaluate whether a preferable path exists.";
       reference
         "RFC 4736: Reoptimization of Multiprotocol Label Switching
          (MPLS) Traffic Engineering (TE) Loosely Routed Label Switched
          Path (LSP)";
     }

     identity soft-preemption-desired {
       base session-attributes-flags;
       description
         "Soft preemption of LSP resources is desired.";
       reference
         "RFC 5712: MPLS Traffic Engineering Soft Preemption";
     }

     identity lsp-attributes-flags {
       description
         "Base identity for LSP attributes flags.";
     }

     identity end-to-end-rerouting-desired {
       base lsp-attributes-flags;
       description
         "Indicates end-to-end rerouting behavior for an LSP
          undergoing establishment.  This MAY also be used to
          specify the behavior of end-to-end LSP recovery for
          established LSPs.";
       reference
         "RFC 4920: Crankback Signaling Extensions for MPLS and GMPLS
          RSVP-TE
          RFC 5420: Encoding of Attributes for MPLS LSP Establishment
          Using Resource Reservation Protocol Traffic Engineering
          (RSVP-TE)
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity boundary-rerouting-desired {
       base lsp-attributes-flags;
       description
         "Indicates boundary rerouting behavior for an LSP undergoing
          establishment.  This MAY also be used to specify
          segment-based LSP recovery through nested crankback for
          established LSPs.  The boundary Area Border Router (ABR) /
          Autonomous System Border Router (ASBR) can decide to forward
          the PathErr message upstream to either an upstream boundary
          ABR/ASBR or the ingress LSR.  Alternatively, it can try to
          select another egress boundary LSR.";
       reference
         "RFC 4920: Crankback Signaling Extensions for MPLS and GMPLS
          RSVP-TE
          RFC 5420: Encoding of Attributes for MPLS LSP Establishment
          Using Resource Reservation Protocol Traffic Engineering
          (RSVP-TE)
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity segment-based-rerouting-desired {
       base lsp-attributes-flags;
       description
         "Indicates segment-based rerouting behavior for an LSP
          undergoing establishment.  This MAY also be used to specify
          segment-based LSP recovery for established LSPs.";
       reference
         "RFC 4920: Crankback Signaling Extensions for MPLS and GMPLS
          RSVP-TE
          RFC 5420: Encoding of Attributes for MPLS LSP Establishment
          Using Resource Reservation Protocol Traffic Engineering
          (RSVP-TE)
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity lsp-integrity-required {
       base lsp-attributes-flags;
       description
         "Indicates that LSP integrity is required.";
       reference
         "RFC 4875: Extensions to Resource Reservation Protocol -
          Traffic Engineering (RSVP-TE) for Point-to-Multipoint TE
          Label Switched Paths (LSPs)
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity contiguous-lsp-desired {
       base lsp-attributes-flags;
       description
         "Indicates that a contiguous LSP is desired.";
       reference
         "RFC 5151: Inter-Domain MPLS and GMPLS Traffic Engineering --
          Resource Reservation Protocol-Traffic Engineering (RSVP-TE)
          Extensions
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity lsp-stitching-desired {
       base lsp-attributes-flags;
       description
         "Indicates that LSP stitching is desired.";
       reference
         "RFC 5150: Label Switched Path Stitching with Generalized
          Multiprotocol Label Switching Traffic Engineering (GMPLS TE)
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity pre-planned-lsp-flag {
       base lsp-attributes-flags;
       description
         "Indicates that the LSP MUST be provisioned in the
          control plane only.";
       reference
         "RFC 6001: Generalized MPLS (GMPLS) Protocol Extensions for
          Multi-Layer and Multi-Region Networks (MLN/MRN)
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity non-php-behavior-flag {
       base lsp-attributes-flags;
       description
         "Indicates that non-PHP (non-Penultimate Hop Popping) behavior
          for the LSP is desired.";
       reference
         "RFC 6511: Non-Penultimate Hop Popping Behavior and Out-of-Band
          Mapping for RSVP-TE Label Switched Paths
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity oob-mapping-flag {
       base lsp-attributes-flags;
       description
         "Indicates that signaling of the egress binding information is
          out of band (e.g., via the Border Gateway Protocol (BGP)).";
       reference
         "RFC 6511: Non-Penultimate Hop Popping Behavior and Out-of-Band
          Mapping for RSVP-TE Label Switched Paths
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity entropy-label-capability {
       base lsp-attributes-flags;
       description
         "Indicates entropy label capability.";
       reference
         "RFC 6790: The Use of Entropy Labels in MPLS Forwarding
          RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)";
     }

     identity oam-mep-entity-desired {
       base lsp-attributes-flags;
       description
         "OAM Maintenance Entity Group End Point (MEP) entities
          desired.";
       reference
         "RFC 7260: GMPLS RSVP-TE Extensions for Operations,
          Administration, and Maintenance (OAM) Configuration";
     }

     identity oam-mip-entity-desired {
       base lsp-attributes-flags;
       description
         "OAM Maintenance Entity Group Intermediate Points (MIP)
          entities desired.";
       reference
         "RFC 7260: GMPLS RSVP-TE Extensions for Operations,
          Administration, and Maintenance (OAM) Configuration";
     }

     identity srlg-collection-desired {
       base lsp-attributes-flags;
       description
         "SRLG collection desired.";
       reference
         "RFC 7570: Label Switched Path (LSP) Attribute in the Explicit
          Route Object (ERO)
          RFC 8001: RSVP-TE Extensions for Collecting Shared Risk
          Link Group (SRLG) Information";
     }

     identity loopback-desired {
       base lsp-attributes-flags;
       description
         "This flag indicates that a particular node on the LSP is
          required to enter loopback mode.  This can also be
          used to specify the loopback state of the node.";
       reference
         "RFC 7571: GMPLS RSVP-TE Extensions for Lock Instruct and
          Loopback";
     }

     identity p2mp-te-tree-eval-request {
       base lsp-attributes-flags;
       description
         "P2MP-TE tree re-evaluation request.";
       reference
         "RFC 8149: RSVP Extensions for Reoptimization of Loosely Routed
          Point-to-Multipoint Traffic Engineering Label Switched Paths
          (LSPs)";
     }

     identity rtm-set-desired {
       base lsp-attributes-flags;
       description
         "Residence Time Measurement (RTM) attribute flag requested.";
       reference
         "RFC 8169: Residence Time Measurement in MPLS Networks";
     }

     identity link-protection-type {
       description
         "Base identity for the link protection type.";
     }

     identity link-protection-unprotected {
       base link-protection-type;
       description
         "Unprotected link type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity link-protection-extra-traffic {
       base link-protection-type;
       description
         "Extra-Traffic protected link type.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity link-protection-shared {
       base link-protection-type;
       description
         "Shared protected link type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity link-protection-1-for-1 {
       base link-protection-type;
       description
         "One-for-one (1:1) protected link type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity link-protection-1-plus-1 {
       base link-protection-type;
       description
         "One-plus-one (1+1) protected link type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity link-protection-enhanced {
       base link-protection-type;
       description
         "A compound link protection type derived from the underlay
          TE tunnel protection configuration supporting the TE link.";
     }

     identity association-type {
       description
         "Base identity for the tunnel association.";
     }

     identity association-type-recovery {
       base association-type;
       description
         "Association type for recovery, used to associate LSPs of the
          same tunnel for recovery.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery
          RFC 6780: RSVP ASSOCIATION Object Extensions";
     }

     identity association-type-resource-sharing {
       base association-type;
       description
         "Association type for resource sharing, used to enable
          resource sharing during make-before-break.";
       reference
         "RFC 4873: GMPLS Segment Recovery
          RFC 6780: RSVP ASSOCIATION Object Extensions";
     }

     identity association-type-double-sided-bidir {
       base association-type;
       description
         "Association type for double-sided bidirectional LSPs,
          used to associate two LSPs of two tunnels that are
          independently configured on either endpoint.";
       reference
         "RFC 7551: RSVP-TE Extensions for Associated Bidirectional
          Label Switched Paths (LSPs)";
     }

     identity association-type-single-sided-bidir {
       base association-type;
       description
         "Association type for single-sided bidirectional LSPs,
          used to associate two LSPs of two tunnels, where one
          tunnel is configured on one side/endpoint and the other
          tunnel is dynamically created on the other endpoint.";
       reference
         "RFC 6780: RSVP ASSOCIATION Object Extensions
          RFC 7551: RSVP-TE Extensions for Associated Bidirectional
          Label Switched Paths (LSPs)";
     }

     identity objective-function-type {
       description
         "Base objective function type.";
     }

     identity of-minimize-cost-path {
       base objective-function-type;
       description
         "Objective function for minimizing path cost.";
       reference
         "RFC 5541: Encoding of Objective Functions in the Path
          Computation Element Communication Protocol (PCEP)";
     }

     identity of-minimize-load-path {
       base objective-function-type;
       description
         "Objective function for minimizing the load on one or more
          paths.";
       reference
         "RFC 5541: Encoding of Objective Functions in the Path
          Computation Element Communication Protocol (PCEP)";
     }

     identity of-maximize-residual-bandwidth {
       base objective-function-type;
       description
         "Objective function for maximizing residual bandwidth.";
       reference
         "RFC 5541: Encoding of Objective Functions in the Path
          Computation Element Communication Protocol (PCEP)";
     }

     identity of-minimize-agg-bandwidth-consumption {
       base objective-function-type;
       description
         "Objective function for minimizing aggregate bandwidth
          consumption.";
       reference
         "RFC 5541: Encoding of Objective Functions in the Path
          Computation Element Communication Protocol (PCEP)";
     }

     identity of-minimize-load-most-loaded-link {
       base objective-function-type;
       description
         "Objective function for minimizing the load on the link that
          is carrying the highest load.";
       reference
         "RFC 5541: Encoding of Objective Functions in the Path
          Computation Element Communication Protocol (PCEP)";
     }

     identity of-minimize-cost-path-set {
       base objective-function-type;
       description
         "Objective function for minimizing the cost on a path set.";
       reference
         "RFC 5541: Encoding of Objective Functions in the Path
          Computation Element Communication Protocol (PCEP)";
     }

     identity path-computation-method {
       description
         "Base identity for supported path computation mechanisms.";
     }

     identity path-locally-computed {
       base path-computation-method;
       description
         "Indicates a constrained-path LSP in which the
          path is computed by the local LER.";
       reference
         "RFC 3272: Overview and Principles of Internet Traffic
          Engineering, Section 5.4";
     }

     identity path-externally-queried {
       base path-computation-method;
       description
         "Constrained-path LSP in which the path is obtained by
          querying an external source, such as a PCE server.
          In the case that an LSP is defined to be externally queried,
          it may also have associated explicit definitions (provided
          to the external source to aid computation).  The path that is
          returned by the external source may require further local
          computation on the device.";
       reference
         "RFC 3272: Overview and Principles of Internet Traffic
          Engineering
          RFC 4657: Path Computation Element (PCE) Communication
          Protocol Generic Requirements";
     }

     identity path-explicitly-defined {
       base path-computation-method;
       description
         "Constrained-path LSP in which the path is
          explicitly specified as a collection of strict and/or loose
          hops.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels
          RFC 3272: Overview and Principles of Internet Traffic
          Engineering";
     }

     identity lsp-metric-type {
       description
         "Base identity for the LSP metric specification types.";
     }

     identity lsp-metric-relative {
       base lsp-metric-type;
       description
         "The metric specified for the LSPs to which this identity
          refers is specified as a value relative to the IGP metric
          cost to the LSP's tail end.";
       reference
         "RFC 4657: Path Computation Element (PCE) Communication
          Protocol Generic Requirements";
     }

     identity lsp-metric-absolute {
       base lsp-metric-type;
       description
         "The metric specified for the LSPs to which this identity
          refers is specified as an absolute value.";
       reference
         "RFC 4657: Path Computation Element (PCE) Communication
          Protocol Generic Requirements";
     }

     identity lsp-metric-inherited {
       base lsp-metric-type;
       description
         "The metric for the LSPs to which this identity refers is
          not specified explicitly; rather, it is directly inherited
          from the IGP cost.";
       reference
         "RFC 4657: Path Computation Element (PCE) Communication
          Protocol Generic Requirements";
     }

     identity te-tunnel-type {
       description
         "Base identity from which specific tunnel types are derived.";
     }

     identity te-tunnel-p2p {
       base te-tunnel-type;
       description
         "TE Point-to-Point (P2P) tunnel type.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels";
     }

     identity te-tunnel-p2mp {
       base te-tunnel-type;
       description
         "TE P2MP tunnel type.";
       reference
         "RFC 4875: Extensions to Resource Reservation Protocol -
          Traffic Engineering (RSVP-TE) for Point-to-Multipoint TE
          Label Switched Paths (LSPs)";
     }

     identity tunnel-action-type {
       description
         "Base identity from which specific tunnel action types
          are derived.";
     }

     identity tunnel-action-resetup {
       base tunnel-action-type;
       description
         "TE tunnel action that tears down the tunnel's current LSP
          (if any) and attempts to re-establish a new LSP.";
     }

     identity tunnel-action-reoptimize {
       base tunnel-action-type;
       description
         "TE tunnel action that reoptimizes the placement of the
          tunnel LSP(s).";
     }

     identity tunnel-action-switchpath {
       base tunnel-action-type;
       description
         "TE tunnel action that switches the tunnel's LSP to use the
          specified path.";
     }

     identity te-action-result {
       description
         "Base identity from which specific TE action results
          are derived.";
     }

     identity te-action-success {
       base te-action-result;
       description
         "TE action was successful.";
     }

     identity te-action-fail {
       base te-action-result;
       description
         "TE action failed.";
     }

     identity tunnel-action-inprogress {
       base te-action-result;
       description
         "TE action is in progress.";
     }

     identity tunnel-admin-state-type {
       description
         "Base identity for TE tunnel administrative states.";
     }

     identity tunnel-admin-state-up {
       base tunnel-admin-state-type;
       description
         "Tunnel's administrative state is up.";
     }

     identity tunnel-admin-state-down {
       base tunnel-admin-state-type;
       description
         "Tunnel's administrative state is down.";
     }

     identity tunnel-state-type {
       description
         "Base identity for TE tunnel states.";
     }

     identity tunnel-state-up {
       base tunnel-state-type;
       description
         "Tunnel's state is up.";
     }

     identity tunnel-state-down {
       base tunnel-state-type;
       description
         "Tunnel's state is down.";
     }

     identity lsp-state-type {
       description
         "Base identity for TE LSP states.";
     }

     identity lsp-path-computing {
       base lsp-state-type;
       description
         "State path computation is in progress.";
     }

     identity lsp-path-computation-ok {
       base lsp-state-type;
       description
         "State path computation was successful.";
     }

     identity lsp-path-computation-failed {
       base lsp-state-type;
       description
         "State path computation failed.";
     }

     identity lsp-state-setting-up {
       base lsp-state-type;
       description
         "State is being set up.";
     }

     identity lsp-state-setup-ok {
       base lsp-state-type;
       description
         "State setup was successful.";
     }

     identity lsp-state-setup-failed {
       base lsp-state-type;
       description
         "State setup failed.";
     }

     identity lsp-state-up {
       base lsp-state-type;
       description
         "State is up.";
     }

     identity lsp-state-tearing-down {
       base lsp-state-type;
       description
         "State is being torn down.";
     }

     identity lsp-state-down {
       base lsp-state-type;
       description
         "State is down.";
     }

     identity path-invalidation-action-type {
       description
         "Base identity for TE path invalidation action types.";
     }

     identity path-invalidation-action-drop {
       base path-invalidation-action-type;
       description
         "Upon invalidation of the TE tunnel path, the tunnel remains
          valid, but any packet mapped over the tunnel is dropped.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels,
          Section 2.5";
     }

     identity path-invalidation-action-teardown {
       base path-invalidation-action-type;
       description
         "TE path invalidation action teardown.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels,
          Section 2.5";
     }

     identity lsp-restoration-type {
       description
         "Base identity from which LSP restoration types are derived.";
     }

     identity lsp-restoration-restore-any {
       base lsp-restoration-type;
       description
         "Any LSP affected by a failure is restored.";
     }

     identity lsp-restoration-restore-all {
       base lsp-restoration-type;
       description
         "Affected LSPs are restored after all LSPs of the tunnel are
          broken.";
     }

     identity restoration-scheme-type {
       description
         "Base identity for LSP restoration schemes.";
     }

     identity restoration-scheme-preconfigured {
       base restoration-scheme-type;
       description
         "Restoration LSP is preconfigured prior to the failure.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity restoration-scheme-precomputed {
       base restoration-scheme-type;
       description
         "Restoration LSP is precomputed prior to the failure.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity restoration-scheme-presignaled {
       base restoration-scheme-type;
       description
         "Restoration LSP is presignaled prior to the failure.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity lsp-protection-type {
       description
         "Base identity from which LSP protection types are derived.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity lsp-protection-unprotected {
       base lsp-protection-type;
       description
         "'Unprotected' LSP protection type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity lsp-protection-reroute-extra {
       base lsp-protection-type;
       description
         "'(Full) Rerouting' LSP protection type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity lsp-protection-reroute {
       base lsp-protection-type;
       description
         "'Rerouting without Extra-Traffic' LSP protection type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity lsp-protection-1-for-n {
       base lsp-protection-type;
       description
         "'1:N Protection with Extra-Traffic' LSP protection type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity lsp-protection-1-for-1 {
       base lsp-protection-type;
       description
         "LSP protection '1:1 Protection Type'.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity lsp-protection-unidir-1-plus-1 {
       base lsp-protection-type;
       description
         "'1+1 Unidirectional Protection' LSP protection type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity lsp-protection-bidir-1-plus-1 {
       base lsp-protection-type;
       description
         "'1+1 Bidirectional Protection' LSP protection type.";
       reference
         "RFC 4872: RSVP-TE Extensions in Support of End-to-End
          Generalized Multi-Protocol Label Switching (GMPLS) Recovery";
     }

     identity lsp-protection-extra-traffic {
       base lsp-protection-type;
       description
         "Extra-Traffic LSP protection type.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity lsp-protection-state {
       description
         "Base identity of protection states for reporting purposes.";
     }

     identity normal {
       base lsp-protection-state;
       description
         "Normal state.";
     }

     identity signal-fail-of-protection {
       base lsp-protection-state;
       description
         "The protection transport entity has a signal fail condition
          that is of higher priority than the forced switchover
          command.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity lockout-of-protection {
       base lsp-protection-state;
       description
         "A Loss of Protection (LoP) command is active.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity forced-switch {
       base lsp-protection-state;
       description
         "A forced switchover command is active.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity signal-fail {
       base lsp-protection-state;
       description
         "There is a signal fail condition on either the working path
          or the protection path.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity signal-degrade {
       base lsp-protection-state;
       description
         "There is a signal degrade condition on either the working
          path or the protection path.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity manual-switch {
       base lsp-protection-state;
       description
         "A manual switchover command is active.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity wait-to-restore {
       base lsp-protection-state;
       description
         "A WTR timer is running.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity do-not-revert {
       base lsp-protection-state;
       description
         "A Do Not Revert (DNR) condition is active because of
          non-revertive behavior.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity failure-of-protocol {
       base lsp-protection-state;
       description
         "LSP protection is not working because of a protocol failure
          condition.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity protection-external-commands {
       description
         "Base identity from which protection-related external commands
          used for troubleshooting purposes are derived.";
     }

     identity action-freeze {
       base protection-external-commands;
       description
         "A temporary configuration action initiated by an operator
          command that prevents any switchover action from being taken
          and, as such, freezes the current state.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity clear-freeze {
       base protection-external-commands;
       description
         "An action that clears the active freeze state.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity action-lockout-of-normal {
       base protection-external-commands;
       description
         "A temporary configuration action initiated by an operator
          command to ensure that the normal traffic is not allowed
          to use the protection transport entity.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity clear-lockout-of-normal {
       base protection-external-commands;
       description
         "An action that clears the active lockout of the
          normal state.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity action-lockout-of-protection {
       base protection-external-commands;
       description
         "A temporary configuration action initiated by an operator
          command to ensure that the protection transport entity is
          temporarily not available to transport a traffic signal
          (either normal or Extra-Traffic).";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity action-forced-switch {
       base protection-external-commands;
       description
         "A switchover action initiated by an operator command to switch
          the Extra-Traffic signal, the normal traffic signal, or the
          null signal to the protection transport entity, unless a
          switchover command of equal or higher priority is in effect.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity action-manual-switch {
       base protection-external-commands;
       description
         "A switchover action initiated by an operator command to switch
          the Extra-Traffic signal, the normal traffic signal, or
          the null signal to the protection transport entity, unless
          a fault condition exists on other transport entities or a
          switchover command of equal or higher priority is in effect.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity action-exercise {
       base protection-external-commands;
       description
         "An action that starts testing whether or not APS communication
          is operating correctly.  It is of lower priority than any
          other state or command.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity clear {
       base protection-external-commands;
       description
         "An action that clears the active near-end lockout of a
          protection, forced switchover, manual switchover, WTR state,
          or exercise command.";
       reference
         "RFC 4427: Recovery (Protection and Restoration) Terminology
          for Generalized Multi-Protocol Label Switching (GMPLS)";
     }

     identity switching-capabilities {
       description
         "Base identity for interface switching capabilities.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity switching-psc1 {
       base switching-capabilities;
       description
         "Packet-Switch Capable-1 (PSC-1).";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity switching-evpl {
       base switching-capabilities;
       description
         "Ethernet Virtual Private Line (EVPL).";
       reference
         "RFC 6004: Generalized MPLS (GMPLS) Support for Metro Ethernet
          Forum and G.8011 Ethernet Service Switching";
     }

     identity switching-l2sc {
       base switching-capabilities;
       description
         "Layer-2 Switch Capable (L2SC).";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity switching-tdm {
       base switching-capabilities;
       description
         "Time-Division-Multiplex Capable (TDM).";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity switching-otn {
       base switching-capabilities;
       description
         "OTN-TDM capable.";
       reference
         "RFC 7138: Traffic Engineering Extensions to OSPF for GMPLS
          Control of Evolving G.709 Optical Transport Networks";
     }

     identity switching-dcsc {
       base switching-capabilities;
       description
         "Data Channel Switching Capable (DCSC).";
       reference
         "RFC 6002: Generalized MPLS (GMPLS) Data Channel
          Switching Capable (DCSC) and Channel Set Label Extensions";
     }

     identity switching-lsc {
       base switching-capabilities;
       description
         "Lambda-Switch Capable (LSC).";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity switching-fsc {
       base switching-capabilities;
       description
         "Fiber-Switch Capable (FSC).";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-types {
       description
         "Base identity for encoding types.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-packet {
       base lsp-encoding-types;
       description
         "Packet LSP encoding.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-ethernet {
       base lsp-encoding-types;
       description
         "Ethernet LSP encoding.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-pdh {
       base lsp-encoding-types;
       description
         "ANSI/ETSI PDH LSP encoding.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-sdh {
       base lsp-encoding-types;
       description
         "SDH ITU-T G.707 / SONET ANSI T1.105 LSP encoding.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-digital-wrapper {
       base lsp-encoding-types;
       description
         "Digital Wrapper LSP encoding.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-lambda {
       base lsp-encoding-types;
       description
         "Lambda (photonic) LSP encoding.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-fiber {
       base lsp-encoding-types;
       description
         "Fiber LSP encoding.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-fiber-channel {
       base lsp-encoding-types;
       description
         "FiberChannel LSP encoding.";
       reference
         "RFC 3471: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Functional Description";
     }

     identity lsp-encoding-oduk {
       base lsp-encoding-types;
       description
         "G.709 ODUk (Digital Path) LSP encoding.";
       reference
         "RFC 4328: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Extensions for G.709 Optical Transport Networks
          Control";
     }

     identity lsp-encoding-optical-channel {
       base lsp-encoding-types;
       description
         "G.709 Optical Channel LSP encoding.";
       reference
         "RFC 4328: Generalized Multi-Protocol Label Switching (GMPLS)
          Signaling Extensions for G.709 Optical Transport Networks
          Control";
     }

     identity lsp-encoding-line {
       base lsp-encoding-types;
       description
         "Line (e.g., 8B/10B) LSP encoding.";
       reference
         "RFC 6004: Generalized MPLS (GMPLS) Support for Metro
          Ethernet Forum and G.8011 Ethernet Service Switching";
     }

     identity path-signaling-type {
       description
         "Base identity from which specific LSP path setup types
          are derived.";
     }

     identity path-setup-static {
       base path-signaling-type;
       description
         "Static LSP provisioning path setup.";
     }

     identity path-setup-rsvp {
       base path-signaling-type;
       description
         "RSVP-TE signaling path setup.";
       reference
         "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels";
     }

     identity path-setup-sr {
       base path-signaling-type;
       description
         "Segment-routing path setup.";
     }

     identity path-scope-type {
       description
         "Base identity from which specific path scope types are
          derived.";
     }

     identity path-scope-segment {
       base path-scope-type;
       description
         "Path scope segment.";
       reference
         "RFC 4873: GMPLS Segment Recovery";
     }

     identity path-scope-end-to-end {
       base path-scope-type;
       description
         "Path scope end to end.";
       reference
         "RFC 4873: GMPLS Segment Recovery";
     }

     identity route-usage-type {
       description
         "Base identity for route usage.";
     }

     identity route-include-object {
       base route-usage-type;
       description
         "'Include route' object.";
     }

     identity route-exclude-object {
       base route-usage-type;
       description
         "'Exclude route' object.";
       reference
         "RFC 4874: Exclude Routes - Extension to Resource ReserVation
          Protocol-Traffic Engineering (RSVP-TE)";
     }

     identity route-exclude-srlg {
       base route-usage-type;
       description
         "Excludes SRLGs.";
       reference
         "RFC 4874: Exclude Routes - Extension to Resource ReserVation
          Protocol-Traffic Engineering (RSVP-TE)";
     }

     identity path-metric-type {
       description
         "Base identity for the path metric type.";
     }

     identity path-metric-te {
       base path-metric-type;
       description
         "TE path metric.";
       reference
         "RFC 3785: Use of Interior Gateway Protocol (IGP) Metric as a
          second MPLS Traffic Engineering (TE) Metric";
     }

     identity path-metric-igp {
       base path-metric-type;
       description
         "IGP path metric.";
       reference
         "RFC 3785: Use of Interior Gateway Protocol (IGP) Metric as a
          second MPLS Traffic Engineering (TE) Metric";
     }

     identity path-metric-hop {
       base path-metric-type;
       description
         "Hop path metric.";
     }

     identity path-metric-delay-average {
       base path-metric-type;
       description
         "Average unidirectional link delay.";
       reference
         "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions";
     }

     identity path-metric-delay-minimum {
       base path-metric-type;
       description
         "Minimum unidirectional link delay.";
       reference
         "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions";
     }

     identity path-metric-residual-bandwidth {
       base path-metric-type;
       description
         "Unidirectional Residual Bandwidth, which is defined to be
          Maximum Bandwidth (RFC 3630) minus the bandwidth currently
          allocated to LSPs.";
       reference
         "RFC 3630: Traffic Engineering (TE) Extensions to OSPF
          Version 2
          RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions";
     }

     identity path-metric-optimize-includes {
       base path-metric-type;
       description
         "A metric that optimizes the number of included resources
          specified in a set.";
     }

     identity path-metric-optimize-excludes {
       base path-metric-type;
       description
         "A metric that optimizes to a maximum the number of excluded
          resources specified in a set.";
     }

     identity path-tiebreaker-type {
       description
         "Base identity for the path tiebreaker type.";
     }

     identity path-tiebreaker-minfill {
       base path-tiebreaker-type;
       description
         "Min-Fill LSP path placement.";
     }

     identity path-tiebreaker-maxfill {
       base path-tiebreaker-type;
       description
         "Max-Fill LSP path placement.";
     }

     identity path-tiebreaker-random {
       base path-tiebreaker-type;
       description
         "Random LSP path placement.";
     }

     identity resource-affinities-type {
       description
         "Base identity for resource class affinities.";
       reference
         "RFC 2702: Requirements for Traffic Engineering Over MPLS";
     }

     identity resource-aff-include-all {
       base resource-affinities-type;
       description
         "The set of attribute filters associated with a
          tunnel, all of which must be present for a link
          to be acceptable.";
       reference
         "RFC 2702: Requirements for Traffic Engineering Over MPLS
          RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels";
     }

     identity resource-aff-include-any {
       base resource-affinities-type;
       description
         "The set of attribute filters associated with a
          tunnel, any of which must be present for a link
          to be acceptable.";
       reference
         "RFC 2702: Requirements for Traffic Engineering Over MPLS
          RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels";
     }

     identity resource-aff-exclude-any {
       base resource-affinities-type;
       description
         "The set of attribute filters associated with a
          tunnel, any of which renders a link unacceptable.";
       reference
         "RFC 2702: Requirements for Traffic Engineering Over MPLS
          RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels";
     }

     identity te-optimization-criterion {
       description
         "Base identity for the TE optimization criteria.";
       reference
         "RFC 3272: Overview and Principles of Internet Traffic
          Engineering";
     }

     identity not-optimized {
       base te-optimization-criterion;
       description
         "Optimization is not applied.";
     }

     identity cost {
       base te-optimization-criterion;
       description
         "Optimized on cost.";
       reference
         "RFC 5541: Encoding of Objective Functions in the Path
          Computation Element Communication Protocol (PCEP)";
     }

     identity delay {
       base te-optimization-criterion;
       description
         "Optimized on delay.";
       reference
         "RFC 5541: Encoding of Objective Functions in the Path
          Computation Element Communication Protocol (PCEP)";
     }

     identity path-computation-srlg-type {
       description
         "Base identity for SRLG path computation.";
     }

     identity srlg-ignore {
       base path-computation-srlg-type;
       description
         "Ignores SRLGs in the path computation.";
     }

     identity srlg-strict {
       base path-computation-srlg-type;
       description
         "Includes a strict SRLG check in the path computation.";
     }

     identity srlg-preferred {
       base path-computation-srlg-type;
       description
         "Includes a preferred SRLG check in the path computation.";
     }

     identity srlg-weighted {
       base path-computation-srlg-type;
       description
         "Includes a weighted SRLG check in the path computation.";
     }

     /**
      * TE bandwidth groupings
      **/

     grouping te-bandwidth {
       description
         "This grouping defines the generic TE bandwidth.
          For some known data-plane technologies, specific modeling
          structures are specified.  The string-encoded 'te-bandwidth'
          type is used for unspecified technologies.
          The modeling structure can be augmented later for other
          technologies.";
       container te-bandwidth {
         description
           "Container that specifies TE bandwidth.  The choices
            can be augmented for specific data-plane technologies.";
         choice technology {
           default "generic";
           description
             "Data-plane technology type.";
           case generic {
             leaf generic {
               type te-bandwidth;
               description
                 "Bandwidth specified in a generic format.";
             }
           }
         }
       }
     }

     /**
      * TE label groupings
      **/

     grouping te-label {
       description
         "This grouping defines the generic TE label.
          The modeling structure can be augmented for each technology.
          For unspecified technologies, 'rt-types:generalized-label'
          is used.";
       container te-label {
         description
           "Container that specifies the TE label.  The choices can
            be augmented for specific data-plane technologies.";
         choice technology {
           default "generic";
           description
             "Data-plane technology type.";
           case generic {
             leaf generic {
               type rt-types:generalized-label;
               description
                 "TE label specified in a generic format.";
             }
           }
         }
         leaf direction {
           type te-label-direction;
           default "forward";
           description
             "Label direction.";
         }
       }
     }

     grouping te-topology-identifier {
       description
         "Augmentation for a TE topology.";
       container te-topology-identifier {
         description
           "TE topology identifier container.";
         leaf provider-id {
           type te-global-id;
           default "0";
           description
             "An identifier to uniquely identify a provider.
              If omitted, it assumes that the topology provider ID
              value = 0 (the default).";
         }
         leaf client-id {
           type te-global-id;
           default "0";
           description
             "An identifier to uniquely identify a client.
              If omitted, it assumes that the topology client ID
              value = 0 (the default).";
         }
         leaf topology-id {
           type te-topology-id;
           default "";
           description
             "When the datastore contains several topologies,
              'topology-id' distinguishes between them.  If omitted,
              the default (empty) string for this leaf is assumed.";
         }
       }
     }

     /**
      * TE performance metrics groupings
      **/

     grouping performance-metrics-one-way-delay-loss {
       description
         "Performance Metrics (PM) information in real time that can
          be applicable to links or connections.  PM defined in this
          grouping are applicable to generic TE PM as well as packet TE
          PM.";
       reference
         "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions
          RFC 7823: Performance-Based Path Selection for Explicitly
          Routed Label Switched Paths (LSPs) Using TE Metric
          Extensions
          RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
       leaf one-way-delay {
         type uint32 {
           range "0..16777215";
         }
         description
           "One-way delay or latency in microseconds.";
       }
       leaf one-way-delay-normality {
         type te-types:performance-metrics-normality;
         description
           "One-way delay normality.";
       }
     }

     grouping performance-metrics-two-way-delay-loss {
       description
         "PM information in real time that can be applicable to links or
          connections.  PM defined in this grouping are applicable to
          generic TE PM as well as packet TE PM.";
       reference
         "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions
          RFC 7823: Performance-Based Path Selection for Explicitly
          Routed Label Switched Paths (LSPs) Using TE Metric
          Extensions
          RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
       leaf two-way-delay {
         type uint32 {
           range "0..16777215";
         }
         description
           "Two-way delay or latency in microseconds.";
       }
       leaf two-way-delay-normality {
         type te-types:performance-metrics-normality;
         description
           "Two-way delay normality.";
       }
     }

     grouping performance-metrics-one-way-bandwidth {
       description
         "PM information in real time that can be applicable to links.
          PM defined in this grouping are applicable to generic TE PM
          as well as packet TE PM.";
       reference
         "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions
          RFC 7823: Performance-Based Path Selection for Explicitly
          Routed Label Switched Paths (LSPs) Using TE Metric
          Extensions
          RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
       leaf one-way-residual-bandwidth {
         type rt-types:bandwidth-ieee-float32;
         units "bytes per second";
         default "0x0p0";
         description
           "Residual bandwidth that subtracts tunnel reservations from
            Maximum Bandwidth (or link capacity) (RFC 3630) and
            provides an aggregated remainder across QoS classes.";
         reference
           "RFC 3630: Traffic Engineering (TE) Extensions to OSPF
            Version 2";
       }
       leaf one-way-residual-bandwidth-normality {
         type te-types:performance-metrics-normality;
         default "normal";
         description
           "Residual bandwidth normality.";
       }
       leaf one-way-available-bandwidth {
         type rt-types:bandwidth-ieee-float32;
         units "bytes per second";
         default "0x0p0";
         description
           "Available bandwidth that is defined to be residual
            bandwidth minus the measured bandwidth used for the
            actual forwarding of non-RSVP-TE LSP packets.  For a
            bundled link, available bandwidth is defined to be the
            sum of the component link available bandwidths.";
       }
       leaf one-way-available-bandwidth-normality {
         type te-types:performance-metrics-normality;
         default "normal";
         description
           "Available bandwidth normality.";
       }
       leaf one-way-utilized-bandwidth {
         type rt-types:bandwidth-ieee-float32;
         units "bytes per second";
         default "0x0p0";
         description
           "Bandwidth utilization that represents the actual
            utilization of the link (i.e., as measured in the router).
            For a bundled link, bandwidth utilization is defined to
            be the sum of the component link bandwidth utilizations.";
       }
       leaf one-way-utilized-bandwidth-normality {
         type te-types:performance-metrics-normality;
         default "normal";
         description
           "Bandwidth utilization normality.";
       }
     }

     grouping one-way-performance-metrics {
       description
         "One-way PM throttle grouping.";
       leaf one-way-delay {
         type uint32 {
           range "0..16777215";
         }
         default "0";
         description
           "One-way delay or latency in microseconds.";
       }
       leaf one-way-residual-bandwidth {
         type rt-types:bandwidth-ieee-float32;
         units "bytes per second";
         default "0x0p0";
         description
           "Residual bandwidth that subtracts tunnel reservations from
            Maximum Bandwidth (or link capacity) (RFC 3630) and
            provides an aggregated remainder across QoS classes.";
         reference
           "RFC 3630: Traffic Engineering (TE) Extensions to OSPF
            Version 2";
       }
       leaf one-way-available-bandwidth {
         type rt-types:bandwidth-ieee-float32;
         units "bytes per second";
         default "0x0p0";
         description
           "Available bandwidth that is defined to be residual
            bandwidth minus the measured bandwidth used for the
            actual forwarding of non-RSVP-TE LSP packets.  For a
            bundled link, available bandwidth is defined to be the
            sum of the component link available bandwidths.";
       }
       leaf one-way-utilized-bandwidth {
         type rt-types:bandwidth-ieee-float32;
         units "bytes per second";
         default "0x0p0";
         description
           "Bandwidth utilization that represents the actual
            utilization of the link (i.e., as measured in the router).
            For a bundled link, bandwidth utilization is defined to
            be the sum of the component link bandwidth utilizations.";
       }
     }

     grouping two-way-performance-metrics {
       description
         "Two-way PM throttle grouping.";
       leaf two-way-delay {
         type uint32 {
           range "0..16777215";
         }
         default "0";
         description
           "Two-way delay or latency in microseconds.";
       }
     }

     grouping performance-metrics-thresholds {
       description
         "Grouping for configurable thresholds for measured
          attributes.";
       uses one-way-performance-metrics;
       uses two-way-performance-metrics;
     }

     grouping performance-metrics-attributes {
       description
         "Contains PM attributes.";
       container performance-metrics-one-way {
         description
           "One-way link performance information in real time.";
         reference
           "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions
            RFC 7823: Performance-Based Path Selection for Explicitly
            Routed Label Switched Paths (LSPs) Using TE Metric
            Extensions
            RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
         uses performance-metrics-one-way-delay-loss;
         uses performance-metrics-one-way-bandwidth;
       }
       container performance-metrics-two-way {
         description
           "Two-way link performance information in real time.";
         reference
           "RFC 6374: Packet Loss and Delay Measurement for MPLS
            Networks";
         uses performance-metrics-two-way-delay-loss;
       }
     }

     grouping performance-metrics-throttle-container {
       description
         "Controls PM throttling.";
       container throttle {
         must 'suppression-interval >= measure-interval' {
           error-message "'suppression-interval' cannot be less than "
                       + "'measure-interval'.";
           description
             "Constraint on 'suppression-interval' and
              'measure-interval'.";
         }
         description
           "Link performance information in real time.";
         reference
           "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions
            RFC 7823: Performance-Based Path Selection for Explicitly
            Routed Label Switched Paths (LSPs) Using TE Metric
            Extensions
            RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
         leaf one-way-delay-offset {
           type uint32 {
             range "0..16777215";
           }
           default "0";
           description
             "Offset value to be added to the measured delay value.";
         }
         leaf measure-interval {
           type uint32;
           default "30";
           description
             "Interval, in seconds, to measure the extended metric
              values.";
         }
         leaf advertisement-interval {
           type uint32;
           default "0";
           description
             "Interval, in seconds, to advertise the extended metric
              values.";
         }
         leaf suppression-interval {
           type uint32 {
             range "1..max";
           }
           default "120";
           description
             "Interval, in seconds, to suppress advertisement of the
              extended metric values.";
           reference
             "RFC 8570: IS-IS Traffic Engineering (TE) Metric
              Extensions, Section 6";
         }
         container threshold-out {
           uses performance-metrics-thresholds;
           description
             "If the measured parameter falls outside an upper bound
              for all but the minimum-delay metric (or a lower bound
              for the minimum-delay metric only) and the advertised
              value is not already outside that bound, an 'anomalous'
              announcement (anomalous bit set) will be triggered.";
         }
         container threshold-in {
           uses performance-metrics-thresholds;
           description
             "If the measured parameter falls inside an upper bound
              for all but the minimum-delay metric (or a lower bound
              for the minimum-delay metric only) and the advertised
              value is not already inside that bound, a 'normal'
              announcement (anomalous bit cleared) will be triggered.";
         }
         container threshold-accelerated-advertisement {
           description
             "When the difference between the last advertised value and
              the current measured value exceeds this threshold, an
              'anomalous' announcement (anomalous bit set) will be
              triggered.";
           uses performance-metrics-thresholds;
         }
       }
     }

     /**
      * TE tunnel generic groupings
      **/

     grouping explicit-route-hop {
       description
         "The explicit route entry grouping.";
       choice type {
         description
           "The explicit route entry type.";
         case numbered-node-hop {
           container numbered-node-hop {
             leaf node-id {
               type te-node-id;
               mandatory true;
               description
                 "The identifier of a node in the TE topology.";
             }
             leaf hop-type {
               type te-hop-type;
               default "strict";
               description
                 "Strict or loose hop.";
             }
             description
               "Numbered node route hop.";
             reference
               "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels,
                Section 4.3, EXPLICIT_ROUTE in RSVP-TE
                RFC 3477: Signalling Unnumbered Links in Resource
                ReSerVation Protocol - Traffic Engineering (RSVP-TE)";
           }
         }
         case numbered-link-hop {
           container numbered-link-hop {
             leaf link-tp-id {
               type te-tp-id;
               mandatory true;
               description
                 "TE Link Termination Point (LTP) identifier.";
             }
             leaf hop-type {
               type te-hop-type;
               default "strict";
               description
                 "Strict or loose hop.";
             }
             leaf direction {
               type te-link-direction;
               default "outgoing";
               description
                 "Link route object direction.";
             }
             description
               "Numbered link explicit route hop.";
             reference
               "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels,
                Section 4.3, EXPLICIT_ROUTE in RSVP-TE
                RFC 3477: Signalling Unnumbered Links in Resource
                ReSerVation Protocol - Traffic Engineering (RSVP-TE)";
           }
         }
         case unnumbered-link-hop {
           container unnumbered-link-hop {
             leaf link-tp-id {
               type te-tp-id;
               mandatory true;
               description
                 "TE LTP identifier.  The combination of the TE link ID
                  and the TE node ID is used to identify an unnumbered
                  TE link.";
             }
             leaf node-id {
               type te-node-id;
               mandatory true;
               description
                 "The identifier of a node in the TE topology.";
             }
             leaf hop-type {
               type te-hop-type;
               default "strict";
               description
                 "Strict or loose hop.";
             }
             leaf direction {
               type te-link-direction;
               default "outgoing";
               description
                 "Link route object direction.";
             }
             description
               "Unnumbered link explicit route hop.";
             reference
               "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels,
                Section 4.3, EXPLICIT_ROUTE in RSVP-TE
                RFC 3477: Signalling Unnumbered Links in Resource
                ReSerVation Protocol - Traffic Engineering (RSVP-TE)";
           }
         }
         case as-number {
           container as-number-hop {
             leaf as-number {
               type inet:as-number;
               mandatory true;
               description
                 "The Autonomous System (AS) number.";
             }
             leaf hop-type {
               type te-hop-type;
               default "strict";
               description
                 "Strict or loose hop.";
             }
             description
               "AS explicit route hop.";
           }
         }
         case label {
           container label-hop {
             description
               "Label hop type.";
             uses te-label;
           }
           description
             "The label explicit route hop type.";
         }
       }
     }

     grouping record-route-state {
       description
         "The Record Route grouping.";
       leaf index {
         type uint32;
         description
           "Record Route hop index.  The index is used to
            identify an entry in the list.  The order of entries
            is defined by the user without relying on key values.";
       }
       choice type {
         description
           "The Record Route entry type.";
         case numbered-node-hop {
           container numbered-node-hop {
             description
               "Numbered node route hop container.";
             leaf node-id {
               type te-node-id;
               mandatory true;
               description
                 "The identifier of a node in the TE topology.";
             }
             leaf-list flags {
               type path-attribute-flags;
               description
                 "Path attributes flags.";
               reference
                 "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels
                  RFC 4090: Fast Reroute Extensions to RSVP-TE for LSP
                  Tunnels
                  RFC 4561: Definition of a Record Route Object (RRO)
                  Node-Id Sub-Object";
             }
           }
           description
             "Numbered node route hop.";
         }
         case numbered-link-hop {
           container numbered-link-hop {
             description
               "Numbered link route hop container.";
             leaf link-tp-id {
               type te-tp-id;
               mandatory true;
               description
                 "Numbered TE LTP identifier.";
             }
             leaf-list flags {
               type path-attribute-flags;
               description
                 "Path attributes flags.";
               reference
                 "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels
                  RFC 4090: Fast Reroute Extensions to RSVP-TE for LSP
                  Tunnels
                  RFC 4561: Definition of a Record Route Object (RRO)
                  Node-Id Sub-Object";
             }
           }
           description
             "Numbered link route hop.";
         }
         case unnumbered-link-hop {
           container unnumbered-link-hop {
             leaf link-tp-id {
               type te-tp-id;
               mandatory true;
               description
                 "TE LTP identifier.  The combination of the TE link ID
                  and the TE node ID is used to identify an unnumbered
                  TE link.";
             }
             leaf node-id {
               type te-node-id;
               description
                 "The identifier of a node in the TE topology.";
             }
             leaf-list flags {
               type path-attribute-flags;
               description
                 "Path attributes flags.";
               reference
                 "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels
                  RFC 4090: Fast Reroute Extensions to RSVP-TE for LSP
                  Tunnels
                  RFC 4561: Definition of a Record Route Object (RRO)
                  Node-Id Sub-Object";
             }
             description
               "Unnumbered link Record Route hop.";
             reference
               "RFC 3477: Signalling Unnumbered Links in Resource
                ReSerVation Protocol - Traffic Engineering (RSVP-TE)";
           }
           description
             "Unnumbered link route hop.";
         }
         case label {
           container label-hop {
             description
               "Label route hop type.";
             uses te-label;
             leaf-list flags {
               type path-attribute-flags;
               description
                 "Path attributes flags.";
               reference
                 "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels
                  RFC 4090: Fast Reroute Extensions to RSVP-TE for LSP
                  Tunnels
                  RFC 4561: Definition of a Record Route Object (RRO)
                  Node-Id Sub-Object";
             }
           }
           description
             "The label Record Route entry types.";
         }
       }
     }

     grouping label-restriction-info {
       description
         "Label set item information.";
       leaf restriction {
         type enumeration {
           enum inclusive {
             description
               "The label or label range is inclusive.";
           }
           enum exclusive {
             description
               "The label or label range is exclusive.";
           }
         }
         default "inclusive";
         description
           "Indicates whether the list item is inclusive or exclusive.";
       }
       leaf index {
         type uint32;
         description
           "The index of the label restriction list entry.";
       }
       container label-start {
         must "(not(../label-end/te-label/direction) and"
            + " not(te-label/direction))"
            + " or "
            + "(../label-end/te-label/direction = te-label/direction)"
            + " or "
            + "(not(te-label/direction) and"
            + " (../label-end/te-label/direction = 'forward'))"
            + " or "
            + "(not(../label-end/te-label/direction) and"
            + " (te-label/direction = 'forward'))" {
           error-message "'label-start' and 'label-end' must have the "
                       + "same direction.";
         }
         description
           "This is the starting label if a label range is specified.
            This is the label value if a single label is specified,
            in which case the 'label-end' attribute is not set.";
         uses te-label;
       }
       container label-end {
         must "(not(../label-start/te-label/direction) and"
            + " not(te-label/direction))"
            + " or "
            + "(../label-start/te-label/direction = te-label/direction)"
            + " or "
            + "(not(te-label/direction) and"
            + " (../label-start/te-label/direction = 'forward'))"
            + " or "
            + "(not(../label-start/te-label/direction) and"
            + " (te-label/direction = 'forward'))" {
           error-message "'label-start' and 'label-end' must have the "
                       + "same direction.";
         }
         description
           "This is the ending label if a label range is specified.
            This attribute is not set if a single label is specified.";
         uses te-label;
       }
       container label-step {
         description
           "The step increment between labels in the label range.
            The label start/end values will have to be consistent
            with the sign of label step.  For example,
            'label-start' < 'label-end' enforces 'label-step' > 0
            'label-start' > 'label-end' enforces 'label-step' < 0.";
         choice technology {
           default "generic";
           description
             "Data-plane technology type.";
           case generic {
             leaf generic {
               type int32;
               default "1";
               description
                 "Label range step.";
             }
           }
         }
       }
       leaf range-bitmap {
         type yang:hex-string;
         description
           "When there are gaps between 'label-start' and 'label-end',
            this attribute is used to specify the positions
            of the used labels.  This is represented in big endian as
            'hex-string'.
            The most significant byte in the hex-string is the farthest
            to the left in the byte sequence.  Leading zero bytes in the
            configured value may be omitted for brevity.
            Each bit position in the 'range-bitmap' 'hex-string' maps
            to a label in the range derived from 'label-start'.

            For example, assuming that 'label-start' = 16000 and
            'range-bitmap' = 0x01000001, then:

            - bit position (0) is set, and the corresponding mapped
              label from the range is 16000 + (0 * 'label-step') or
              16000 for default 'label-step' = 1.
            - bit position (24) is set, and the corresponding mapped
              label from the range is 16000 + (24 * 'label-step') or
              16024 for default 'label-step' = 1.";
       }
     }

     grouping label-set-info {
       description
         "Grouping for the list of label restrictions specifying what
          labels may or may not be used.";
       container label-restrictions {
         description
           "The label restrictions container.";
         list label-restriction {
           key "index";
           description
             "The absence of the label restrictions container implies
              that all labels are acceptable; otherwise, only restricted
              labels are available.";
           reference
             "RFC 7579: General Network Element Constraint Encoding
              for GMPLS-Controlled Networks";
           uses label-restriction-info;
         }
       }
     }

     grouping optimization-metric-entry {
       description
         "Optimization metrics configuration grouping.";
       leaf metric-type {
         type identityref {
           base path-metric-type;
         }
         description
           "Identifies the 'metric-type' that the path computation
            process uses for optimization.";
       }
       leaf weight {
         type uint8;
         default "1";
         description
           "TE path metric normalization weight.";
       }
       container explicit-route-exclude-objects {
         when "../metric-type = "
            + "'te-types:path-metric-optimize-excludes'";
         description
           "Container for the 'exclude route' object list.";
         uses path-route-exclude-objects;
       }
       container explicit-route-include-objects {
         when "../metric-type = "
            + "'te-types:path-metric-optimize-includes'";
         description
           "Container for the 'include route' object list.";
         uses path-route-include-objects;
       }
     }

     grouping common-constraints {
       description
         "Common constraints grouping that can be set on
          a constraint set or directly on the tunnel.";
       uses te-bandwidth {
         description
           "A requested bandwidth to use for path computation.";
       }
       leaf link-protection {
         type identityref {
           base link-protection-type;
         }
         default "te-types:link-protection-unprotected";
         description
           "Link protection type required for the links included
            in the computed path.";
         reference
           "RFC 4202: Routing Extensions in Support of
            Generalized Multi-Protocol Label Switching (GMPLS)";
       }
       leaf setup-priority {
         type uint8 {
           range "0..7";
         }
         default "7";
         description
           "TE LSP requested setup priority.";
         reference
           "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels";
       }
       leaf hold-priority {
         type uint8 {
           range "0..7";
         }
         default "7";
         description
           "TE LSP requested hold priority.";
         reference
           "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels";
       }
       leaf signaling-type {
         type identityref {
           base path-signaling-type;
         }
         default "te-types:path-setup-rsvp";
         description
           "TE tunnel path signaling type.";
       }
     }

     grouping tunnel-constraints {
       description
         "Tunnel constraints grouping that can be set on
          a constraint set or directly on the tunnel.";
       uses te-topology-identifier;
       uses common-constraints;
     }

     grouping path-constraints-route-objects {
       description
         "List of route entries to be included or excluded when
          performing the path computation.";
       container explicit-route-objects-always {
         description
           "Container for the 'exclude route' object list.";
         list route-object-exclude-always {
           key "index";
           ordered-by user;
           description
             "List of route objects to always exclude from the path
              computation.";
           leaf index {
             type uint32;
             description
               "Explicit Route Object index.  The index is used to
                identify an entry in the list.  The order of entries
                is defined by the user without relying on key values.";
           }
           uses explicit-route-hop;
         }
         list route-object-include-exclude {
           key "index";
           ordered-by user;
           description
             "List of route objects to include or exclude in the path
              computation.";
           leaf explicit-route-usage {
             type identityref {
               base route-usage-type;
             }
             default "te-types:route-include-object";
             description
               "Indicates whether to include or exclude the
                route object.  The default is to include it.";
           }
           leaf index {
             type uint32;
             description
               "Route object include-exclude index.  The index is used
                to identify an entry in the list.  The order of entries
                is defined by the user without relying on key values.";
           }
           uses explicit-route-hop {
             augment "type" {
               case srlg {
                 container srlg {
                   description
                     "SRLG container.";
                   leaf srlg {
                     type uint32;
                     description
                       "SRLG value.";
                   }
                 }
                 description
                   "An SRLG value to be included or excluded.";
               }
               description
                 "Augmentation for a generic explicit route for SRLG
                  exclusion.";
             }
           }
         }
       }
     }

     grouping path-route-include-objects {
       description
         "List of route objects to be included when performing
          the path computation.";
       list route-object-include-object {
         key "index";
         ordered-by user;
         description
           "List of Explicit Route Objects to be included in the
            path computation.";
         leaf index {
           type uint32;
           description
             "Route object entry index.  The index is used to
              identify an entry in the list.  The order of entries
              is defined by the user without relying on key values.";
         }
         uses explicit-route-hop;
       }
     }

     grouping path-route-exclude-objects {
       description
         "List of route objects to be excluded when performing
          the path computation.";
       list route-object-exclude-object {
         key "index";
         ordered-by user;
         description
           "List of Explicit Route Objects to be excluded in the
            path computation.";
         leaf index {
           type uint32;
           description
             "Route object entry index.  The index is used to
              identify an entry in the list.  The order of entries
              is defined by the user without relying on key values.";
         }
         uses explicit-route-hop {
           augment "type" {
             case srlg {
               container srlg {
                 description
                   "SRLG container.";
                 leaf srlg {
                   type uint32;
                   description
                     "SRLG value.";
                 }
               }
               description
                 "An SRLG value to be included or excluded.";
             }
             description
               "Augmentation for a generic explicit route for SRLG
                exclusion.";
           }
         }
       }
     }

     grouping generic-path-metric-bounds {
       description
         "TE path metric bounds grouping.";
       container path-metric-bounds {
         description
           "TE path metric bounds container.";
         list path-metric-bound {
           key "metric-type";
           description
             "List of TE path metric bounds.";
           leaf metric-type {
             type identityref {
               base path-metric-type;
             }
             description
               "Identifies an entry in the list of 'metric-type' items
                bound for the TE path.";
           }
           leaf upper-bound {
             type uint64;
             default "0";
             description
               "Upper bound on the end-to-end TE path metric.  A zero
                indicates an unbounded upper limit for the specific
                'metric-type'.";
           }
         }
       }
     }

     grouping generic-path-optimization {
       description
         "TE generic path optimization grouping.";
       container optimizations {
         description
           "The objective function container that includes
            attributes to impose when computing a TE path.";
         choice algorithm {
           description
             "Optimizations algorithm.";
           case metric {
             if-feature "path-optimization-metric";
             /* Optimize by metric */
             list optimization-metric {
               key "metric-type";
               description
                 "TE path metric type.";
               uses optimization-metric-entry;
             }
             /* Tiebreakers */
             container tiebreakers {
               description
                 "Container for the list of tiebreakers.";
               list tiebreaker {
                 key "tiebreaker-type";
                 description
                   "The list of tiebreaker criteria to apply on an
                    equally favored set of paths, in order to pick
                    the best.";
                 leaf tiebreaker-type {
                   type identityref {
                     base path-metric-type;
                   }
                   description
                     "Identifies an entry in the list of tiebreakers.";
                 }
               }
             }
           }
           case objective-function {
             if-feature "path-optimization-objective-function";
             /* Objective functions */
             container objective-function {
               description
                 "The objective function container that includes
                  attributes to impose when computing a TE path.";
               leaf objective-function-type {
                 type identityref {
                   base objective-function-type;
                 }
                 default "te-types:of-minimize-cost-path";
                 description
                   "Objective function entry.";
               }
             }
           }
         }
       }
     }

     grouping generic-path-affinities {
       description
         "Path affinities grouping.";
       container path-affinities-values {
         description
           "Path affinities represented as values.";
         list path-affinities-value {
           key "usage";
           description
             "List of named affinity constraints.";
           leaf usage {
             type identityref {
               base resource-affinities-type;
             }
             description
               "Identifies an entry in the list of value affinity
                constraints.";
           }
           leaf value {
             type admin-groups;
             default "";
             description
               "The affinity value.  The default is empty.";
           }
         }
       }
       container path-affinity-names {
         description
           "Path affinities represented as names.";
         list path-affinity-name {
           key "usage";
           description
             "List of named affinity constraints.";
           leaf usage {
             type identityref {
               base resource-affinities-type;
             }
             description
               "Identifies an entry in the list of named affinity
                constraints.";
           }
           list affinity-name {
             key "name";
             leaf name {
               type string;
               description
                 "Identifies a named affinity entry.";
             }
             description
               "List of named affinities.";
           }
         }
       }
     }

     grouping generic-path-srlgs {
       description
         "Path SRLG grouping.";
       container path-srlgs-lists {
         description
           "Path SRLG properties container.";
         list path-srlgs-list {
           key "usage";
           description
             "List of SRLG values to be included or excluded.";
           leaf usage {
             type identityref {
               base route-usage-type;
             }
             description
               "Identifies an entry in a list of SRLGs to either
                include or exclude.";
           }
           leaf-list values {
             type srlg;
             description
               "List of SRLG values.";
           }
         }
       }
       container path-srlgs-names {
         description
           "Container for the list of named SRLGs.";
         list path-srlgs-name {
           key "usage";
           description
             "List of named SRLGs to be included or excluded.";
           leaf usage {
             type identityref {
               base route-usage-type;
             }
             description
               "Identifies an entry in a list of named SRLGs to either
                include or exclude.";
           }
           leaf-list names {
             type string;
             description
               "List of named SRLGs.";
           }
         }
       }
     }

     grouping generic-path-disjointness {
       description
         "Path disjointness grouping.";
       leaf disjointness {
         type te-path-disjointness;
         description
           "The type of resource disjointness.
            When configured for a primary path, the disjointness level
            applies to all secondary LSPs.  When configured for a
            secondary path, the disjointness level overrides the level
            configured for the primary path.";
       }
     }

     grouping common-path-constraints-attributes {
       description
         "Common path constraints configuration grouping.";
       uses common-constraints;
       uses generic-path-metric-bounds;
       uses generic-path-affinities;
       uses generic-path-srlgs;
     }

     grouping generic-path-constraints {
       description
         "Global named path constraints configuration grouping.";
       container path-constraints {
         description
           "TE named path constraints container.";
         uses common-path-constraints-attributes;
         uses generic-path-disjointness;
       }
     }

     grouping generic-path-properties {
       description
         "TE generic path properties grouping.";
       container path-properties {
         config false;
         description
           "The TE path properties.";
         list path-metric {
           key "metric-type";
           description
             "TE path metric type.";
           leaf metric-type {
             type identityref {
               base path-metric-type;
             }
             description
               "TE path metric type.";
           }
           leaf accumulative-value {
             type uint64;
             description
               "TE path metric accumulative value.";
           }
         }
         uses generic-path-affinities;
         uses generic-path-srlgs;
         container path-route-objects {
           description
             "Container for the list of route objects either returned by
              the computation engine or actually used by an LSP.";
           list path-route-object {
             key "index";
             ordered-by user;
             description
               "List of route objects either returned by the computation
                engine or actually used by an LSP.";
             leaf index {
               type uint32;
               description
                 "Route object entry index.  The index is used to
                  identify an entry in the list.  The order of entries
                  is defined by the user without relying on key
                  values.";
             }
             uses explicit-route-hop;
           }
         }
       }
     }
   }
   <CODE ENDS>

5.  Packet TE Types YANG Module

   The "ietf-te-packet-types" module imports from the "ietf-te-types"
   module defined in Section 4 of this document.

   <CODE BEGINS> file "ietf-te-packet-types@2020-06-10.yang"
   module ietf-te-packet-types {
     yang-version 1.1;
     namespace "urn:ietf:params:xml:ns:yang:ietf-te-packet-types";
     prefix te-packet-types;

     /* Import TE generic types */

     import ietf-te-types {
       prefix te-types;
       reference
         "RFC 8776: Common YANG Data Types for Traffic Engineering";
     }

     organization
       "IETF Traffic Engineering Architecture and Signaling (TEAS)
        Working Group";
     contact
       "WG Web:   <https://datatracker.ietf.org/wg/teas/>
        WG List:  <mailto:teas@ietf.org>

        Editor:   Tarek Saad
                  <mailto:tsaad@juniper.net>

        Editor:   Rakesh Gandhi
                  <mailto:rgandhi@cisco.com>

        Editor:   Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Xufeng Liu
                  <mailto:xufeng.liu.ietf@gmail.com>

        Editor:   Igor Bryskin
                  <mailto:i_bryskin@yahoo.com>";
     description
       "This YANG module contains a collection of generally useful YANG
        data type definitions specific to MPLS TE.  The model fully
        conforms to the Network Management Datastore Architecture
        (NMDA).

        Copyright (c) 2020 IETF Trust and the persons identified as
        authors of the code.  All rights reserved.

        Redistribution and use in source and binary forms, with or
        without modification, is permitted pursuant to, and subject to
        the license terms contained in, the Simplified BSD License set
        forth in Section 4.c of the IETF Trust's Legal Provisions
        Relating to IETF Documents
        (https://trustee.ietf.org/license-info).

        This version of this YANG module is part of RFC 8776; see the
        RFC itself for full legal notices.";

     revision 2020-06-10 {
       description
         "Latest revision of TE MPLS types.";
       reference
         "RFC 8776: Common YANG Data Types for Traffic Engineering";
     }

     /**
      * Typedefs
      */

     typedef te-bandwidth-requested-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 te-class-type {
       type uint8;
       description
         "Diffserv-TE Class-Type.  Defines a set of Traffic Trunks
          crossing a link that is governed by a specific set of
          bandwidth constraints.  Class-Type is used for the purposes
          of link bandwidth allocation, constraint-based routing, and
          admission control.";
       reference
         "RFC 4124: Protocol Extensions for Support of Diffserv-aware
          MPLS Traffic Engineering";
     }

     typedef bc-type {
       type uint8 {
         range "0..7";
       }
       description
         "Diffserv-TE bandwidth constraints as defined in RFC 4124.";
       reference
         "RFC 4124: Protocol Extensions for Support of Diffserv-aware
          MPLS Traffic Engineering";
     }

     typedef bandwidth-kbps {
       type uint64;
       units "Kbps";
       description
         "Bandwidth values, expressed in kilobits per second.";
     }

     typedef bandwidth-mbps {
       type uint64;
       units "Mbps";
       description
         "Bandwidth values, expressed in megabits per second.";
     }

     typedef bandwidth-gbps {
       type uint64;
       units "Gbps";
       description
         "Bandwidth values, expressed in gigabits per second.";
     }

     identity backup-protection-type {
       description
         "Base identity for the backup protection type.";
     }

     identity backup-protection-link {
       base backup-protection-type;
       description
         "Backup provides link protection only.";
     }

     identity backup-protection-node-link {
       base backup-protection-type;
       description
         "Backup offers node (preferred) or link protection.";
     }

     identity bc-model-type {
       description
         "Base identity for the Diffserv-TE Bandwidth Constraints
          Model type.";
       reference
         "RFC 4124: Protocol Extensions for Support of Diffserv-aware
          MPLS Traffic Engineering";
     }

     identity bc-model-rdm {
       base bc-model-type;
       description
         "Russian Dolls Bandwidth Constraints Model type.";
       reference
         "RFC 4127: Russian Dolls Bandwidth Constraints Model for
                    Diffserv-aware MPLS Traffic Engineering";
     }

     identity bc-model-mam {
       base bc-model-type;
       description
         "Maximum Allocation Bandwidth Constraints Model type.";
       reference
         "RFC 4125: Maximum Allocation Bandwidth Constraints Model for
                    Diffserv-aware MPLS Traffic Engineering";
     }

     identity bc-model-mar {
       base bc-model-type;
       description
         "Maximum Allocation with Reservation Bandwidth Constraints
          Model type.";
       reference
         "RFC 4126: Max Allocation with Reservation Bandwidth
          Constraints Model for Diffserv-aware MPLS Traffic Engineering
          & Performance Comparisons";
     }

     grouping performance-metrics-attributes-packet {
       description
         "Contains PM attributes.";
       uses te-types:performance-metrics-attributes {
         augment "performance-metrics-one-way" {
           leaf one-way-min-delay {
             type uint32 {
               range "0..16777215";
             }
             description
               "One-way minimum delay or latency in microseconds.";
           }
           leaf one-way-min-delay-normality {
             type te-types:performance-metrics-normality;
             default "normal";
             description
               "One-way minimum delay or latency normality.";
           }
           leaf one-way-max-delay {
             type uint32 {
               range "0..16777215";
             }
             description
               "One-way maximum delay or latency in microseconds.";
           }
           leaf one-way-max-delay-normality {
             type te-types:performance-metrics-normality;
             default "normal";
             description
               "One-way maximum delay or latency normality.";
           }
           leaf one-way-delay-variation {
             type uint32 {
               range "0..16777215";
             }
             description
               "One-way delay variation in microseconds.";
             reference
               "RFC 5481: Packet Delay Variation Applicability
                Statement, Section 4.2";
           }
           leaf one-way-delay-variation-normality {
             type te-types:performance-metrics-normality;
             default "normal";
             description
               "One-way delay variation normality.";
             reference
               "RFC 7471: OSPF Traffic Engineering (TE) Metric
                Extensions
                RFC 7823: Performance-Based Path Selection for
                Explicitly Routed Label Switched Paths (LSPs) Using
                TE Metric Extensions
                RFC 8570: IS-IS Traffic Engineering (TE) Metric
                Extensions";
           }
           leaf one-way-packet-loss {
             type decimal64 {
               fraction-digits 6;
               range "0..50.331642";
             }
             description
               "One-way packet loss as a percentage of the total traffic
                sent over a configurable interval.  The finest precision
                is 0.000003%, where the maximum is 50.331642%.";
             reference
               "RFC 8570: IS-IS Traffic Engineering (TE) Metric
                Extensions, Section 4.4";
           }
           leaf one-way-packet-loss-normality {
             type te-types:performance-metrics-normality;
             default "normal";
             description
               "Packet loss normality.";
             reference
               "RFC 7471: OSPF Traffic Engineering (TE) Metric
                Extensions
                RFC 7823: Performance-Based Path Selection for
                Explicitly Routed Label Switched Paths (LSPs) Using
                TE Metric Extensions
                RFC 8570: IS-IS Traffic Engineering (TE) Metric
                Extensions";
           }
           description
             "PM one-way packet-specific augmentation for a generic PM
              grouping.";
         }
         augment "performance-metrics-two-way" {
           leaf two-way-min-delay {
             type uint32 {
               range "0..16777215";
             }
             default "0";
             description
               "Two-way minimum delay or latency in microseconds.";
           }
           leaf two-way-min-delay-normality {
             type te-types:performance-metrics-normality;
             default "normal";
             description
               "Two-way minimum delay or latency normality.";
             reference
               "RFC 7471: OSPF Traffic Engineering (TE) Metric
                Extensions
                RFC 7823: Performance-Based Path Selection for
                Explicitly Routed Label Switched Paths (LSPs) Using
                TE Metric Extensions
                RFC 8570: IS-IS Traffic Engineering (TE) Metric
                Extensions";
           }
           leaf two-way-max-delay {
             type uint32 {
               range "0..16777215";
             }
             default "0";
             description
               "Two-way maximum delay or latency in microseconds.";
           }
           leaf two-way-max-delay-normality {
             type te-types:performance-metrics-normality;
             default "normal";
             description
               "Two-way maximum delay or latency normality.";
             reference
               "RFC 7471: OSPF Traffic Engineering (TE) Metric
                Extensions
                RFC 7823: Performance-Based Path Selection for
                Explicitly Routed Label Switched Paths (LSPs) Using
                TE Metric Extensions
                RFC 8570: IS-IS Traffic Engineering (TE) Metric
                Extensions";
           }
           leaf two-way-delay-variation {
             type uint32 {
               range "0..16777215";
             }
             default "0";
             description
               "Two-way delay variation in microseconds.";
             reference
               "RFC 5481: Packet Delay Variation Applicability
                Statement, Section 4.2";
           }
           leaf two-way-delay-variation-normality {
             type te-types:performance-metrics-normality;
             default "normal";
             description
               "Two-way delay variation normality.";
             reference
               "RFC 7471: OSPF Traffic Engineering (TE) Metric
                Extensions
                RFC 7823: Performance-Based Path Selection for
                Explicitly Routed Label Switched Paths (LSPs) Using
                TE Metric Extensions
                RFC 8570: IS-IS Traffic Engineering (TE) Metric
                Extensions";
           }
           leaf two-way-packet-loss {
             type decimal64 {
               fraction-digits 6;
               range "0..50.331642";
             }
             default "0";
             description
               "Two-way packet loss as a percentage of the total traffic
                sent over a configurable interval.  The finest precision
                is 0.000003%.";
           }
           leaf two-way-packet-loss-normality {
             type te-types:performance-metrics-normality;
             default "normal";
             description
               "Two-way packet loss normality.";
           }
           description
             "PM two-way packet-specific augmentation for a generic PM
              grouping.";
           reference
             "RFC 7471: OSPF Traffic Engineering (TE) Metric Extensions
              RFC 7823: Performance-Based Path Selection for
              Explicitly Routed Label Switched Paths (LSPs) Using
              TE Metric Extensions
              RFC 8570: IS-IS Traffic Engineering (TE) Metric
              Extensions";
         }
       }
     }

     grouping one-way-performance-metrics-packet {
       description
         "One-way packet PM throttle grouping.";
       leaf one-way-min-delay {
         type uint32 {
           range "0..16777215";
         }
         default "0";
         description
           "One-way minimum delay or latency in microseconds.";
       }
       leaf one-way-max-delay {
         type uint32 {
           range "0..16777215";
         }
         default "0";
         description
           "One-way maximum delay or latency in microseconds.";
       }
       leaf one-way-delay-variation {
         type uint32 {
           range "0..16777215";
         }
         default "0";
         description
           "One-way delay variation in microseconds.";
       }
       leaf one-way-packet-loss {
         type decimal64 {
           fraction-digits 6;
           range "0..50.331642";
         }
         default "0";
         description
           "One-way packet loss as a percentage of the total traffic
            sent over a configurable interval.  The finest precision is
            0.000003%.";
       }
     }

     grouping two-way-performance-metrics-packet {
       description
         "Two-way packet PM throttle grouping.";
       leaf two-way-min-delay {
         type uint32 {
           range "0..16777215";
         }
         default "0";
         description
           "Two-way minimum delay or latency in microseconds.";
       }
       leaf two-way-max-delay {
         type uint32 {
           range "0..16777215";
         }
         default "0";
         description
           "Two-way maximum delay or latency in microseconds.";
       }
       leaf two-way-delay-variation {
         type uint32 {
           range "0..16777215";
         }
         default "0";
         description
           "Two-way delay variation in microseconds.";
       }
       leaf two-way-packet-loss {
         type decimal64 {
           fraction-digits 6;
           range "0..50.331642";
         }
         default "0";
         description
           "Two-way packet loss as a percentage of the total traffic
            sent over a configurable interval.  The finest precision is
            0.000003%.";
       }
     }

     grouping performance-metrics-throttle-container-packet {
       description
         "Packet PM threshold grouping.";
       uses te-types:performance-metrics-throttle-container {
         augment "throttle/threshold-out" {
           uses one-way-performance-metrics-packet;
           uses two-way-performance-metrics-packet;
           description
             "PM threshold-out packet augmentation for a
              generic grouping.";
         }
         augment "throttle/threshold-in" {
           uses one-way-performance-metrics-packet;
           uses two-way-performance-metrics-packet;
           description
             "PM threshold-in packet augmentation for a
              generic grouping.";
         }
         augment "throttle/threshold-accelerated-advertisement" {
           uses one-way-performance-metrics-packet;
           uses two-way-performance-metrics-packet;
           description
             "PM accelerated advertisement packet augmentation for a
              generic grouping.";
         }
       }
     }
   }
   <CODE ENDS>

6.  IANA Considerations

   This document registers the following URIs in the "ns" subregistry
   within the "IETF XML Registry" [RFC3688].

      URI:  urn:ietf:params:xml:ns:yang:ietf-te-types
      Registrant Contact:  The IESG.
      XML:  N/A; the requested URI is an XML namespace.

      URI:  urn:ietf:params:xml:ns:yang:ietf-te-packet-types
      Registrant Contact:  The IESG.
      XML:  N/A; the requested URI is an XML namespace.

   This document registers two YANG modules in the "YANG Module Names"
   registry [RFC6020].

      Name:  ietf-te-types
      Namespace:  urn:ietf:params:xml:ns:yang:ietf-te-types
      Prefix:  te-types
      Reference:  RFC 8776

      Name:  ietf-te-packet-types
      Namespace:  urn:ietf:params:xml:ns:yang:ietf-te-packet-types
      Prefix:  te-packet-types
      Reference:  RFC 8776

7.  Security Considerations

   The YANG module specified in this document defines a schema for data
   that is designed to be accessed via network management protocols such
   as NETCONF [RFC6241] or RESTCONF [RFC8040].  The lowest NETCONF layer
   is the secure transport layer, and the mandatory-to-implement secure
   transport is Secure Shell (SSH) [RFC6242].  The lowest RESTCONF layer
   is HTTPS, and the mandatory-to-implement secure transport is TLS
   [RFC8446].

   The Network Configuration Access Control Model (NACM) [RFC8341]
   provides the means to restrict access for particular NETCONF or
   RESTCONF users to a preconfigured subset of all available NETCONF or
   RESTCONF protocol operations and content.

   The YANG module in this document defines common TE type definitions
   (e.g., typedef, identity, and grouping statements) in YANG data
   modeling language to be imported and used by other TE modules.  When
   imported and used, the resultant schema will have data nodes that can
   be writable or readable.  Access to such data nodes may be considered
   sensitive or vulnerable in some network environments.  Write
   operations (e.g., edit-config) to these data nodes without proper
   protection can have a negative effect on network operations.

   The security considerations spelled out in the YANG 1.1 specification
   [RFC7950] apply for this document as well.

8.  References

8.1.  Normative References

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/info/rfc2119>.

   [RFC3688]  Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688,
              DOI 10.17487/RFC3688, January 2004,
              <https://www.rfc-editor.org/info/rfc3688>.

   [RFC6020]  Bjorklund, M., Ed., "YANG - A Data Modeling Language for
              the Network Configuration Protocol (NETCONF)", RFC 6020,
              DOI 10.17487/RFC6020, October 2010,
              <https://www.rfc-editor.org/info/rfc6020>.

   [RFC6241]  Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed.,
              and A. Bierman, Ed., "Network Configuration Protocol
              (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011,
              <https://www.rfc-editor.org/info/rfc6241>.

   [RFC6242]  Wasserman, M., "Using the NETCONF Protocol over Secure
              Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011,
              <https://www.rfc-editor.org/info/rfc6242>.

   [RFC6991]  Schoenwaelder, J., Ed., "Common YANG Data Types",
              RFC 6991, DOI 10.17487/RFC6991, July 2013,
              <https://www.rfc-editor.org/info/rfc6991>.

   [RFC7950]  Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language",
              RFC 7950, DOI 10.17487/RFC7950, August 2016,
              <https://www.rfc-editor.org/info/rfc7950>.

   [RFC8040]  Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF
              Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017,
              <https://www.rfc-editor.org/info/rfc8040>.

   [RFC8174]  Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
              2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
              May 2017, <https://www.rfc-editor.org/info/rfc8174>.

   [RFC8294]  Liu, X., Qu, Y., Lindem, A., Hopps, C., and L. Berger,
              "Common YANG Data Types for the Routing Area", RFC 8294,
              DOI 10.17487/RFC8294, December 2017,
              <https://www.rfc-editor.org/info/rfc8294>.

   [RFC8341]  Bierman, A. and M. Bjorklund, "Network Configuration
              Access Control Model", STD 91, RFC 8341,
              DOI 10.17487/RFC8341, March 2018,
              <https://www.rfc-editor.org/info/rfc8341>.

   [RFC8345]  Clemm, A., Medved, J., Varga, R., Bahadur, N.,
              Ananthakrishnan, H., and X. Liu, "A YANG Data Model for
              Network Topologies", RFC 8345, DOI 10.17487/RFC8345, March
              2018, <https://www.rfc-editor.org/info/rfc8345>.

   [RFC8446]  Rescorla, E., "The Transport Layer Security (TLS) Protocol
              Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018,
              <https://www.rfc-editor.org/info/rfc8446>.

8.2.  Informative References

   [G.709]    ITU-T, "Interfaces for the optical transport network",
              ITU-T Recommendation G.709, June 2016,
              <https://www.itu.int/rec/T-REC-G.709/>.

   [RFC2702]  Awduche, D., Malcolm, J., Agogbua, J., O'Dell, M., and J.
              McManus, "Requirements for Traffic Engineering Over MPLS",
              RFC 2702, DOI 10.17487/RFC2702, September 1999,
              <https://www.rfc-editor.org/info/rfc2702>.

   [RFC3209]  Awduche, D., Berger, L., Gan, D., Li, T., Srinivasan, V.,
              and G. Swallow, "RSVP-TE: Extensions to RSVP for LSP
              Tunnels", RFC 3209, DOI 10.17487/RFC3209, December 2001,
              <https://www.rfc-editor.org/info/rfc3209>.

   [RFC3272]  Awduche, D., Chiu, A., Elwalid, A., Widjaja, I., and X.
              Xiao, "Overview and Principles of Internet Traffic
              Engineering", RFC 3272, DOI 10.17487/RFC3272, May 2002,
              <https://www.rfc-editor.org/info/rfc3272>.

   [RFC3471]  Berger, L., Ed., "Generalized Multi-Protocol Label
              Switching (GMPLS) Signaling Functional Description",
              RFC 3471, DOI 10.17487/RFC3471, January 2003,
              <https://www.rfc-editor.org/info/rfc3471>.

   [RFC3477]  Kompella, K. and Y. Rekhter, "Signalling Unnumbered Links
              in Resource ReSerVation Protocol - Traffic Engineering
              (RSVP-TE)", RFC 3477, DOI 10.17487/RFC3477, January 2003,
              <https://www.rfc-editor.org/info/rfc3477>.

   [RFC3630]  Katz, D., Kompella, K., and D. Yeung, "Traffic Engineering
              (TE) Extensions to OSPF Version 2", RFC 3630,
              DOI 10.17487/RFC3630, September 2003,
              <https://www.rfc-editor.org/info/rfc3630>.

   [RFC3785]  Le Faucheur, F., Uppili, R., Vedrenne, A., Merckx, P., and
              T. Telkamp, "Use of Interior Gateway Protocol (IGP) Metric
              as a second MPLS Traffic Engineering (TE) Metric", BCP 87,
              RFC 3785, DOI 10.17487/RFC3785, May 2004,
              <https://www.rfc-editor.org/info/rfc3785>.

   [RFC4090]  Pan, P., Ed., Swallow, G., Ed., and A. Atlas, Ed., "Fast
              Reroute Extensions to RSVP-TE for LSP Tunnels", RFC 4090,
              DOI 10.17487/RFC4090, May 2005,
              <https://www.rfc-editor.org/info/rfc4090>.

   [RFC4124]  Le Faucheur, F., Ed., "Protocol Extensions for Support of
              Diffserv-aware MPLS Traffic Engineering", RFC 4124,
              DOI 10.17487/RFC4124, June 2005,
              <https://www.rfc-editor.org/info/rfc4124>.

   [RFC4125]  Le Faucheur, F. and W. Lai, "Maximum Allocation Bandwidth
              Constraints Model for Diffserv-aware MPLS Traffic
              Engineering", RFC 4125, DOI 10.17487/RFC4125, June 2005,
              <https://www.rfc-editor.org/info/rfc4125>.

   [RFC4126]  Ash, J., "Max Allocation with Reservation Bandwidth
              Constraints Model for Diffserv-aware MPLS Traffic
              Engineering & Performance Comparisons", RFC 4126,
              DOI 10.17487/RFC4126, June 2005,
              <https://www.rfc-editor.org/info/rfc4126>.

   [RFC4127]  Le Faucheur, F., Ed., "Russian Dolls Bandwidth Constraints
              Model for Diffserv-aware MPLS Traffic Engineering",
              RFC 4127, DOI 10.17487/RFC4127, June 2005,
              <https://www.rfc-editor.org/info/rfc4127>.

   [RFC4202]  Kompella, K., Ed. and Y. Rekhter, Ed., "Routing Extensions
              in Support of Generalized Multi-Protocol Label Switching
              (GMPLS)", RFC 4202, DOI 10.17487/RFC4202, October 2005,
              <https://www.rfc-editor.org/info/rfc4202>.

   [RFC4203]  Kompella, K., Ed. and Y. Rekhter, Ed., "OSPF Extensions in
              Support of Generalized Multi-Protocol Label Switching
              (GMPLS)", RFC 4203, DOI 10.17487/RFC4203, October 2005,
              <https://www.rfc-editor.org/info/rfc4203>.

   [RFC4328]  Papadimitriou, D., Ed., "Generalized Multi-Protocol Label
              Switching (GMPLS) Signaling Extensions for G.709 Optical
              Transport Networks Control", RFC 4328,
              DOI 10.17487/RFC4328, January 2006,
              <https://www.rfc-editor.org/info/rfc4328>.

   [RFC4427]  Mannie, E., Ed. and D. Papadimitriou, Ed., "Recovery
              (Protection and Restoration) Terminology for Generalized
              Multi-Protocol Label Switching (GMPLS)", RFC 4427,
              DOI 10.17487/RFC4427, March 2006,
              <https://www.rfc-editor.org/info/rfc4427>.

   [RFC4561]  Vasseur, J.-P., Ed., Ali, Z., and S. Sivabalan,
              "Definition of a Record Route Object (RRO) Node-Id Sub-
              Object", RFC 4561, DOI 10.17487/RFC4561, June 2006,
              <https://www.rfc-editor.org/info/rfc4561>.

   [RFC4657]  Ash, J., Ed. and J.L. Le Roux, Ed., "Path Computation
              Element (PCE) Communication Protocol Generic
              Requirements", RFC 4657, DOI 10.17487/RFC4657, September
              2006, <https://www.rfc-editor.org/info/rfc4657>.

   [RFC4736]  Vasseur, JP., Ed., Ikejiri, Y., and R. Zhang,
              "Reoptimization of Multiprotocol Label Switching (MPLS)
              Traffic Engineering (TE) Loosely Routed Label Switched
              Path (LSP)", RFC 4736, DOI 10.17487/RFC4736, November
              2006, <https://www.rfc-editor.org/info/rfc4736>.

   [RFC4872]  Lang, J.P., Ed., Rekhter, Y., Ed., and D. Papadimitriou,
              Ed., "RSVP-TE Extensions in Support of End-to-End
              Generalized Multi-Protocol Label Switching (GMPLS)
              Recovery", RFC 4872, DOI 10.17487/RFC4872, May 2007,
              <https://www.rfc-editor.org/info/rfc4872>.

   [RFC4873]  Berger, L., Bryskin, I., Papadimitriou, D., and A. Farrel,
              "GMPLS Segment Recovery", RFC 4873, DOI 10.17487/RFC4873,
              May 2007, <https://www.rfc-editor.org/info/rfc4873>.

   [RFC4875]  Aggarwal, R., Ed., Papadimitriou, D., Ed., and S.
              Yasukawa, Ed., "Extensions to Resource Reservation
              Protocol - Traffic Engineering (RSVP-TE) for Point-to-
              Multipoint TE Label Switched Paths (LSPs)", RFC 4875,
              DOI 10.17487/RFC4875, May 2007,
              <https://www.rfc-editor.org/info/rfc4875>.

   [RFC4920]  Farrel, A., Ed., Satyanarayana, A., Iwata, A., Fujita, N.,
              and G. Ash, "Crankback Signaling Extensions for MPLS and
              GMPLS RSVP-TE", RFC 4920, DOI 10.17487/RFC4920, July 2007,
              <https://www.rfc-editor.org/info/rfc4920>.

   [RFC5003]  Metz, C., Martini, L., Balus, F., and J. Sugimoto,
              "Attachment Individual Identifier (AII) Types for
              Aggregation", RFC 5003, DOI 10.17487/RFC5003, September
              2007, <https://www.rfc-editor.org/info/rfc5003>.

   [RFC5150]  Ayyangar, A., Kompella, K., Vasseur, JP., and A. Farrel,
              "Label Switched Path Stitching with Generalized
              Multiprotocol Label Switching Traffic Engineering (GMPLS
              TE)", RFC 5150, DOI 10.17487/RFC5150, February 2008,
              <https://www.rfc-editor.org/info/rfc5150>.

   [RFC5151]  Farrel, A., Ed., Ayyangar, A., and JP. Vasseur, "Inter-
              Domain MPLS and GMPLS Traffic Engineering -- Resource
              Reservation Protocol-Traffic Engineering (RSVP-TE)
              Extensions", RFC 5151, DOI 10.17487/RFC5151, February
              2008, <https://www.rfc-editor.org/info/rfc5151>.

   [RFC5305]  Li, T. and H. Smit, "IS-IS Extensions for Traffic
              Engineering", RFC 5305, DOI 10.17487/RFC5305, October
              2008, <https://www.rfc-editor.org/info/rfc5305>.

   [RFC5307]  Kompella, K., Ed. and Y. Rekhter, Ed., "IS-IS Extensions
              in Support of Generalized Multi-Protocol Label Switching
              (GMPLS)", RFC 5307, DOI 10.17487/RFC5307, October 2008,
              <https://www.rfc-editor.org/info/rfc5307>.

   [RFC5420]  Farrel, A., Ed., Papadimitriou, D., Vasseur, JP., and A.
              Ayyangar, "Encoding of Attributes for MPLS LSP
              Establishment Using Resource Reservation Protocol Traffic
              Engineering (RSVP-TE)", RFC 5420, DOI 10.17487/RFC5420,
              February 2009, <https://www.rfc-editor.org/info/rfc5420>.

   [RFC5541]  Le Roux, JL., Vasseur, JP., and Y. Lee, "Encoding of
              Objective Functions in the Path Computation Element
              Communication Protocol (PCEP)", RFC 5541,
              DOI 10.17487/RFC5541, June 2009,
              <https://www.rfc-editor.org/info/rfc5541>.

   [RFC5712]  Meyer, M., Ed. and JP. Vasseur, Ed., "MPLS Traffic
              Engineering Soft Preemption", RFC 5712,
              DOI 10.17487/RFC5712, January 2010,
              <https://www.rfc-editor.org/info/rfc5712>.

   [RFC5817]  Ali, Z., Vasseur, JP., Zamfir, A., and J. Newton,
              "Graceful Shutdown in MPLS and Generalized MPLS Traffic
              Engineering Networks", RFC 5817, DOI 10.17487/RFC5817,
              April 2010, <https://www.rfc-editor.org/info/rfc5817>.

   [RFC6001]  Papadimitriou, D., Vigoureux, M., Shiomoto, K., Brungard,
              D., and JL. Le Roux, "Generalized MPLS (GMPLS) Protocol
              Extensions for Multi-Layer and Multi-Region Networks (MLN/
              MRN)", RFC 6001, DOI 10.17487/RFC6001, October 2010,
              <https://www.rfc-editor.org/info/rfc6001>.

   [RFC6004]  Berger, L. and D. Fedyk, "Generalized MPLS (GMPLS) Support
              for Metro Ethernet Forum and G.8011 Ethernet Service
              Switching", RFC 6004, DOI 10.17487/RFC6004, October 2010,
              <https://www.rfc-editor.org/info/rfc6004>.

   [RFC6119]  Harrison, J., Berger, J., and M. Bartlett, "IPv6 Traffic
              Engineering in IS-IS", RFC 6119, DOI 10.17487/RFC6119,
              February 2011, <https://www.rfc-editor.org/info/rfc6119>.

   [RFC6370]  Bocci, M., Swallow, G., and E. Gray, "MPLS Transport
              Profile (MPLS-TP) Identifiers", RFC 6370,
              DOI 10.17487/RFC6370, September 2011,
              <https://www.rfc-editor.org/info/rfc6370>.

   [RFC6378]  Weingarten, Y., Ed., Bryant, S., Osborne, E., Sprecher,
              N., and A. Fulignoli, Ed., "MPLS Transport Profile (MPLS-
              TP) Linear Protection", RFC 6378, DOI 10.17487/RFC6378,
              October 2011, <https://www.rfc-editor.org/info/rfc6378>.

   [RFC6511]  Ali, Z., Swallow, G., and R. Aggarwal, "Non-Penultimate
              Hop Popping Behavior and Out-of-Band Mapping for RSVP-TE
              Label Switched Paths", RFC 6511, DOI 10.17487/RFC6511,
              February 2012, <https://www.rfc-editor.org/info/rfc6511>.

   [RFC6780]  Berger, L., Le Faucheur, F., and A. Narayanan, "RSVP
              ASSOCIATION Object Extensions", RFC 6780,
              DOI 10.17487/RFC6780, October 2012,
              <https://www.rfc-editor.org/info/rfc6780>.

   [RFC6790]  Kompella, K., Drake, J., Amante, S., Henderickx, W., and
              L. Yong, "The Use of Entropy Labels in MPLS Forwarding",
              RFC 6790, DOI 10.17487/RFC6790, November 2012,
              <https://www.rfc-editor.org/info/rfc6790>.

   [RFC6827]  Malis, A., Ed., Lindem, A., Ed., and D. Papadimitriou,
              Ed., "Automatically Switched Optical Network (ASON)
              Routing for OSPFv2 Protocols", RFC 6827,
              DOI 10.17487/RFC6827, January 2013,
              <https://www.rfc-editor.org/info/rfc6827>.

   [RFC7139]  Zhang, F., Ed., Zhang, G., Belotti, S., Ceccarelli, D.,
              and K. Pithewan, "GMPLS Signaling Extensions for Control
              of Evolving G.709 Optical Transport Networks", RFC 7139,
              DOI 10.17487/RFC7139, March 2014,
              <https://www.rfc-editor.org/info/rfc7139>.

   [RFC7260]  Takacs, A., Fedyk, D., and J. He, "GMPLS RSVP-TE
              Extensions for Operations, Administration, and Maintenance
              (OAM) Configuration", RFC 7260, DOI 10.17487/RFC7260, June
              2014, <https://www.rfc-editor.org/info/rfc7260>.

   [RFC7308]  Osborne, E., "Extended Administrative Groups in MPLS
              Traffic Engineering (MPLS-TE)", RFC 7308,
              DOI 10.17487/RFC7308, July 2014,
              <https://www.rfc-editor.org/info/rfc7308>.

   [RFC7471]  Giacalone, S., Ward, D., Drake, J., Atlas, A., and S.
              Previdi, "OSPF Traffic Engineering (TE) Metric
              Extensions", RFC 7471, DOI 10.17487/RFC7471, March 2015,
              <https://www.rfc-editor.org/info/rfc7471>.

   [RFC7551]  Zhang, F., Ed., Jing, R., and R. Gandhi, Ed., "RSVP-TE
              Extensions for Associated Bidirectional Label Switched
              Paths (LSPs)", RFC 7551, DOI 10.17487/RFC7551, May 2015,
              <https://www.rfc-editor.org/info/rfc7551>.

   [RFC7570]  Margaria, C., Ed., Martinelli, G., Balls, S., and B.
              Wright, "Label Switched Path (LSP) Attribute in the
              Explicit Route Object (ERO)", RFC 7570,
              DOI 10.17487/RFC7570, July 2015,
              <https://www.rfc-editor.org/info/rfc7570>.

   [RFC7571]  Dong, J., Chen, M., Li, Z., and D. Ceccarelli, "GMPLS
              RSVP-TE Extensions for Lock Instruct and Loopback",
              RFC 7571, DOI 10.17487/RFC7571, July 2015,
              <https://www.rfc-editor.org/info/rfc7571>.

   [RFC7579]  Bernstein, G., Ed., Lee, Y., Ed., Li, D., Imajuku, W., and
              J. Han, "General Network Element Constraint Encoding for
              GMPLS-Controlled Networks", RFC 7579,
              DOI 10.17487/RFC7579, June 2015,
              <https://www.rfc-editor.org/info/rfc7579>.

   [RFC7823]  Atlas, A., Drake, J., Giacalone, S., and S. Previdi,
              "Performance-Based Path Selection for Explicitly Routed
              Label Switched Paths (LSPs) Using TE Metric Extensions",
              RFC 7823, DOI 10.17487/RFC7823, May 2016,
              <https://www.rfc-editor.org/info/rfc7823>.

   [RFC8001]  Zhang, F., Ed., Gonzalez de Dios, O., Ed., Margaria, C.,
              Hartley, M., and Z. Ali, "RSVP-TE Extensions for
              Collecting Shared Risk Link Group (SRLG) Information",
              RFC 8001, DOI 10.17487/RFC8001, January 2017,
              <https://www.rfc-editor.org/info/rfc8001>.

   [RFC8149]  Saad, T., Ed., Gandhi, R., Ed., Ali, Z., Venator, R., and
              Y. Kamite, "RSVP Extensions for Reoptimization of Loosely
              Routed Point-to-Multipoint Traffic Engineering Label
              Switched Paths (LSPs)", RFC 8149, DOI 10.17487/RFC8149,
              April 2017, <https://www.rfc-editor.org/info/rfc8149>.

   [RFC8169]  Mirsky, G., Ruffini, S., Gray, E., Drake, J., Bryant, S.,
              and A. Vainshtein, "Residence Time Measurement in MPLS
              Networks", RFC 8169, DOI 10.17487/RFC8169, May 2017,
              <https://www.rfc-editor.org/info/rfc8169>.

   [RFC8570]  Ginsberg, L., Ed., Previdi, S., Ed., Giacalone, S., Ward,
              D., Drake, J., and Q. Wu, "IS-IS Traffic Engineering (TE)
              Metric Extensions", RFC 8570, DOI 10.17487/RFC8570, March
              2019, <https://www.rfc-editor.org/info/rfc8570>.

Acknowledgments

   The authors would like to thank the members of the multi-vendor YANG
   design team who are involved in the definition of these data types.

   The authors would also like to thank Tom Petch, Jan Lindblad, Sergio
   Belotti, Italo Busi, Carlo Perocchio, Francesco Lazzeri, and Aihua
   Guo for their review comments and for providing valuable feedback on
   this document.

Contributors

   Himanshu Shah
   Ciena

   Email: hshah@ciena.com


   Young Lee
   Samsung Electronics

   Email: younglee.tx@gmail.com


Authors' Addresses

   Tarek Saad
   Juniper Networks

   Email: tsaad@juniper.net


   Rakesh Gandhi
   Cisco Systems, Inc.

   Email: rgandhi@cisco.com


   Xufeng Liu
   Volta Networks

   Email: xufeng.liu.ietf@gmail.com


   Vishnu Pavan Beeram
   Juniper Networks

   Email: vbeeram@juniper.net


   Igor Bryskin
   Futurewei Technologies, Inc.

   Email: i_bryskin@yahoo.com