summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc9130.txt
blob: 6cce51bc99f0cdac4b6d02483a019ce69d72ff28 (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
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
Internet Engineering Task Force (IETF)                 S. Litkowski, Ed.
Request for Comments: 9130                                 Cisco Systems
Category: Standards Track                                       D. Yeung
ISSN: 2070-1721                                             Arrcus, Inc.
                                                               A. Lindem
                                                           Cisco Systems
                                                                J. Zhang
                                                        Juniper Networks
                                                               L. Lhotka
                                                                  CZ.NIC
                                                            October 2022


                 YANG Data Model for the IS-IS Protocol

Abstract

   This document defines a YANG data model that can be used to configure
   and manage the IS-IS protocol on network elements.

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/rfc9130.

Copyright Notice

   Copyright (c) 2022 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 Revised BSD License text as described in Section 4.e of the
   Trust Legal Provisions and are provided without warranty as described
   in the Revised BSD License.

Table of Contents

   1.  Introduction
     1.1.  Requirements Language
   2.  Design of the Data Model
     2.1.  IS-IS Configuration
     2.2.  Multi-Topology Parameters
     2.3.  Per-Level Parameters
     2.4.  Per-Interface Parameters
     2.5.  Authentication Parameters
     2.6.  IGP/LDP Synchronization
     2.7.  ISO Parameters
     2.8.  IP FRR
     2.9.  Operational States
   3.  RPC Operations
   4.  Notifications
   5.  Interactions with Other YANG Modules
   6.  IS-IS YANG Module
   7.  Security Considerations
   8.  IANA Considerations
   9.  References
     9.1.  Normative References
     9.2.  Informative References
   Appendix A.  Example of IS-IS Configuration in XML
   Acknowledgments
   Contributors
   Authors' Addresses

1.  Introduction

   This document defines a YANG data model [RFC7950] for the IS-IS
   routing protocol.

   The data model covers the configuration of an IS-IS routing protocol
   instance, as well as the retrieval of IS-IS operational states.

   A simplified tree representation of the data model is presented in
   Section 2.  Tree diagrams used in this document follow the notation
   defined in [RFC8340].

   The module defined in this document is designed as per the Network
   Management Datastore Architecture (NMDA) [RFC8342].

1.1.  Requirements Language

   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.

2.  Design of the Data Model

   The IS-IS YANG module augments the "control-plane-protocol" list in
   the "ietf-routing" module [RFC8349] with specific IS-IS parameters.

   The diagram below shows the overall structure of the "ietf-isis" YANG
   module defined in this document.  NOTE: '\' line wrapping is per
   [RFC8792].

   module: ietf-isis
     augment /rt:routing/rt:ribs/rt:rib/rt:routes/rt:route:
       +--ro metric?       uint32
       +--ro tag*          uint64
       +--ro route-type?   enumeration
     augment /if:interfaces/if:interface:
       +--rw clns-mtu?   uint16 {osi-interface}?
     augment /rt:routing/rt:control-plane-protocols/rt:
                 control-plane-protocol:
       +--rw isis
          +--rw enabled?                  boolean {admin-control}?
          +--rw level-type?               level
          +--rw system-id?                system-id
          +--rw maximum-area-addresses? \
             uint8 {maximum-area-addresses}?
          +--rw area-address*             area-address
          +--rw lsp-mtu?                  uint16
          +--rw lsp-lifetime?             uint16
          +--rw lsp-refresh?              rt-types:timer-value-seconds16
          |                                   {lsp-refresh}?
          +--rw poi-tlv?                  boolean {poi-tlv}?
          +--rw graceful-restart {graceful-restart}?
          |  +--rw enabled?            boolean
          |  +--rw restart-interval?   rt-types:timer-value-seconds16
          |  +--rw helper-enabled?     boolean
          +--rw nsr {nsr}?
          |  +--rw enabled?  boolean
          +--rw node-tags {node-tag}?
          |  +--rw node-tag* [tag]
          |        ...
          +--rw metric-type
          |  +--rw value?     enumeration
          |  +--rw level-1
          |  |     ...
          |  +--rw level-2
          |        ...
          +--rw default-metric
          |  +--rw value?     wide-metric
          |  +--rw level-1
          |  |     ...
          |  +--rw level-2
          |        ...
          +--rw auto-cost {auto-cost}?
          |  +--rw enabled?               boolean
          |  +--rw reference-bandwidth?   uint32
          +--rw authentication
          |  +--rw (authentication-type)?
          |  |     ...
          |  +--rw level-1
          |  |     ...
          |  +--rw level-2
          |        ...
          +--rw address-families {nlpid-control}?
          |  +--rw address-family-list* [address-family]
          |        ...
          +--rw mpls
          |  +--rw te-rid {te-rid}?
          |  |     ...
          |  +--rw ldp
          |        ...
          +--rw spf-control
          |  +--rw paths?            uint16 {max-ecmp}?
          |  +--rw ietf-spf-delay {ietf-spf-delay}?
          |        ...
          +--rw fast-reroute {fast-reroute}?
          |  +--rw lfa {lfa}?
          +--rw preference
          |  +--rw (granularity)?
          |        ...
          +--rw overload
          |  +--rw status?   boolean
          +--rw overload-max-metric {overload-max-metric}?
          |  +--rw timeout?   rt-types:timer-value-seconds16
          +--ro spf-log
          |  +--ro event* [id]
          |        ...
          +--ro lsp-log
          |  +--ro event* [id]
          |        ...
          +--ro hostnames
          |  +--ro hostname* [system-id]
          |        ...
          +--ro database
          |  +--ro levels* [level]
          |        ...
          +--ro local-rib
          |  +--ro route* [prefix]
          |        ...
          +--ro system-counters
          |  +--ro level* [level]
          |        ...
          +--ro protected-routes
          |  +--ro address-family-stats* \
          |     [address-family prefix alternate]
          |        ...
          +--ro unprotected-routes
          |  +--ro prefixes* [address-family prefix]
          |        ...
          +--ro protection-statistics* [frr-protection-method]
          |  +--ro frr-protection-method    identityref
          |  +--ro address-family-stats* [address-family]
          |        ...
          +--rw discontinuity-time?       yang:date-and-time
          +--rw topologies {multi-topology}?
          |  +--rw topology* [name]
          |        ...
          +--rw interfaces
             +--rw interface* [name]
                   ...

     rpcs:
       +---x clear-adjacency
       |  +---w input
       |     +---w routing-protocol-instance-name -> /rt:routing/
       |     |                                    control-plane-\
       |     |                                       protocols/
       |     |                                    control-plane-\
       |     |                                       protocol/name
       |     +---w level?                            level
       |     +---w interface?                        if:interface-ref
       +---x clear-database
          +---w input
             +---w routing-protocol-instance-name -> /rt:routing/
             |                                    control-plane-\
             |                                       protocols/
             |                                    control-plane-\
             |                                       protocol/name
             +---w level?                            level

     notifications:
       +---n database-overload
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro overload?                enumeration
       +---n lsp-too-large
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro pdu-size?                uint32
       |  +--ro lsp-id?                  lsp-id
       +---n if-state-change
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro state?                   if-state-type
       +---n corrupted-lsp-detected
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro lsp-id?                  lsp-id
       +---n attempt-to-exceed-max-sequence
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro lsp-id?                  lsp-id
       +---n id-len-mismatch
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro pdu-field-len?           uint8
       |  +--ro raw-pdu?                 binary
       +---n max-area-addresses-mismatch
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro max-area-addresses?      uint8
       |  +--ro raw-pdu?                 binary
       +---n own-lsp-purge
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro lsp-id?                  lsp-id
       +---n sequence-number-skipped
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro lsp-id?                  lsp-id
       +---n authentication-type-failure
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro raw-pdu?                 binary
       +---n authentication-failure
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro raw-pdu?                 binary
       +---n version-skew
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro protocol-version?        uint8
       |  +--ro raw-pdu?                 binary
       +---n area-mismatch
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro raw-pdu?                 binary
       +---n rejected-adjacency
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro raw-pdu?                 binary
       |  +--ro reason?                  string
       +---n protocols-supported-mismatch
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro raw-pdu?                 binary
       |  +--ro protocols*               uint8
       +---n lsp-error-detected
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro lsp-id?                  lsp-id
       |  +--ro raw-pdu?                 binary
       |  +--ro error-offset?            uint32
       |  +--ro tlv-type?                uint8
       +---n adjacency-state-change
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro neighbor?                string
       |  +--ro neighbor-system-id?      system-id
       |  +--ro state?                   adj-state-type
       |  +--ro reason?                  string
       +---n lsp-received
       |  +--ro routing-protocol-name?   -> /rt:routing/
       |  |                                 control-plane-protocols/
       |  |                                 control-plane-protocol/name
       |  +--ro isis-level?              level
       |  +--ro interface-name?          if:interface-ref
       |  +--ro interface-level?         level
       |  +--ro extended-circuit-id?     extended-circuit-id
       |  +--ro lsp-id?                  lsp-id
       |  +--ro sequence?                uint32
       |  +--ro received-timestamp?      yang:timestamp
       |  +--ro neighbor-system-id?      system-id
       +---n lsp-generation
          +--ro routing-protocol-name?   -> /rt:routing/
          |                                 control-plane-protocols/
          |                                 control-plane-protocol/name
          +--ro isis-level?              level
          +--ro lsp-id?                  lsp-id
          +--ro sequence?                uint32
          +--ro send-timestamp?          yang:timestamp

2.1.  IS-IS Configuration

   The IS-IS configuration is divided into two areas:

   *  Global parameters

   *  Per-interface configuration (see Section 2.4)

   Additional modules may be created to support additional parameters.
   These additional modules MUST augment the "ietf-isis" module.

   The model includes optional features for which the corresponding
   configuration data nodes are also optional.  As an example, the
   ability to control the administrative state of a particular IS-IS
   instance is optional.  By advertising the feature "admin-control", a
   device communicates to the client that it supports the ability to
   shut down a particular IS-IS instance.

   The global configuration contains the usual IS-IS parameters, e.g.,
   "lsp-mtu", "lsp-lifetime", "lsp-refresh", "default-metric".

2.2.  Multi-Topology Parameters

   The model supports Multi-Topology (MT) IS-IS as defined in [RFC5120].

   The "topologies" container is used to enable support of the MT
   extensions.

   The "name" used in the topology list should refer to an existing
   Routing Information Base (RIB) defined for the device [RFC8349].

   Some specific parameters can be defined on a per-topology basis, at
   both the global level and the interface level: for example, an
   interface metric can be defined per topology.

   Multiple address families (such as IPv4 or IPv6) can also be enabled
   within the default topology.  This can be achieved using the
   "address-families" container (requiring the "nlpid-control" feature
   to be supported).

2.3.  Per-Level Parameters

   Some parameters allow per-level configuration.  For such parameters,
   the parameter is modeled as a container with three configuration
   locations:

   A top-level container:
      Corresponds to "level-all", so the configuration applies to both
      levels.

   A level-1 container:
      Corresponds to parameters specific to level 1.

   A level-2 container:
      Corresponds to parameters specific to level 2.

               +--rw priority
               |  +--rw value?     uint8
               |  +--rw level-1
               |  |  +--rw value?   uint8
               |  +--rw level-2
               |     +--rw value?   uint8

   Example:

           <priority>
               <value>250</value>
               <level-1>
                   <value>100</value>
               </level-1>
           </priority>

   An implementation MUST prefer a level-specific parameter over a top-
   level parameter.  For example, if the priority is 100 for the level-1
   configuration and 250 for the top-level configuration, the
   implementation must use 100 for the level-1 priority and 250 for the
   level-2 priority.

   Some parameters, such as "overload bit" and "route preference", are
   not modeled to support per-level configuration.  If an implementation
   supports per-level configuration for such parameters, this
   implementation MUST augment the current model by adding both level-1
   and level-2 containers and MUST reuse existing configuration
   groupings.

   Example of augmentation:

   augment "/rt:routing/" +
           "rt:control-plane-protocols/rt:control-plane-protocol"+
           "/isis:isis/isis:overload" {
           when "rt:type = 'isis:isis'" {
             description
               "This augments the IS-IS routing protocol when used.";
           }
           description
             "This augments the IS-IS overload configuration
              with per-level configuration.";

           container level-1 {
             uses isis:overload-global-cfg;
             description
               "Level-1 configuration.";
           }
           container level-2 {
             uses isis:overload-global-cfg;
             description
               "Level-2 configuration.";
           }
   }

   If an implementation does not support per-level configuration for a
   parameter modeled with per-level configuration, the implementation
   should advertise a deviation to announce that it does not support the
   configuration of level-1 and level-2 containers.

   Finally, if an implementation supports per-level configuration but
   does not support the "level-all" configuration, it should also
   advertise a deviation.

2.4.  Per-Interface Parameters

   The per-interface section of the IS-IS instance describes the
   interface-specific parameters.

   The interface is modeled as a reference to an existing interface as
   defined in the "ietf-interfaces" YANG module [RFC8343].

   Each interface has some interface-specific parameters that may have a
   different per-level value as described in the previous section.  An
   interface-specific parameter MUST be preferred over an IS-IS global
   parameter.

   Some parameters, such as "hello-padding", are defined as containers
   to allow easy extension by vendor-specific modules.

       +--rw interfaces
          +--rw interface* [name]
             +--rw name                       if:interface-ref
             +--rw enabled?                   boolean {admin-control}?
             +--rw level-type?                level
             +--rw lsp-pacing-interval?       rt-types:
             |                                   timer-value-\
             |                                      milliseconds
             +--rw lsp-retransmit-interval?   rt-types:
             |                                   timer-value-seconds16
             +--rw passive?                   boolean
             +--rw csnp-interval?             rt-types:
             |                                   timer-value-seconds16
             +--rw hello-padding
             |  +--rw enabled?  boolean
             +--rw mesh-group-enabled?        mesh-group-state
             +--rw mesh-group?                uint8
             +--rw interface-type?            interface-type
             +--rw tag*                       uint32 {prefix-tag}?
             +--rw tag64*                     uint64 {prefix-tag64}?
             +--rw node-flag?                 boolean {node-flag}?
             +--rw hello-authentication
             |  +--rw (authentication-type)?
             |  |  +--:(key-chain) {key-chain}?
             |  |  |  +--rw key-chain?          key-chain:key-chain-ref
             |  |  +--:(password)
             |  |     +--rw key?                string
             |  |     +--rw crypto-algorithm?   identityref
             |  +--rw level-1
             |  |  +--rw (authentication-type)?
             |  |     +--:(key-chain) {key-chain}?
             |  |     |  +--rw key-chain?          key-chain:\
             |  |     |                               key-chain-ref
             |  |     +--:(password)
             |  |        +--rw key?                string
             |  |        +--rw crypto-algorithm?   identityref
             |  +--rw level-2
             |     +--rw (authentication-type)?
             |        +--:(key-chain) {key-chain}?
             |        |  +--rw key-chain?          key-chain:\
             |        |                               key-chain-ref
             |        +--:(password)
             |           +--rw key?                string
             |           +--rw crypto-algorithm?   identityref
             +--rw hello-interval
             |  +--rw value?     rt-types:timer-value-seconds16
             |  +--rw level-1
             |  |  +--rw value?   rt-types:timer-value-seconds16
             |  +--rw level-2
             |     +--rw value?   rt-types:timer-value-seconds16
             +--rw hello-multiplier
             |  +--rw value?     uint16
             |  +--rw level-1
             |  |  +--rw value?   uint16
             |  +--rw level-2
             |     +--rw value?   uint16
             +--rw priority
             |  +--rw value?     uint8
             |  +--rw level-1
             |  |  +--rw value?   uint8
             |  +--rw level-2
             |     +--rw value?   uint8
             +--rw metric
             |  +--rw value?     wide-metric
             |  +--rw level-1
             |  |  +--rw value?   wide-metric
             |  +--rw level-2
             |     +--rw value?   wide-metric
             +--rw bfd {bfd}?
             |  +--rw enabled?                          boolean
             |  +--rw local-multiplier?                 multiplier
             |  |      {client-base-cfg-parms}?
             |  +--rw (interval-config-type)? {client-base-cfg-parms}?
             |     +--:(tx-rx-intervals)
             |     |  +--rw desired-min-tx-interval?   uint32
             |     |  +--rw required-min-rx-interval?  uint32
             |     +--:(single-interval) {single-minimum-interval}?
             |        +--rw min-interval?              uint32
             +--rw address-families {nlpid-control}?
             |  +--rw address-family-list* [address-family]
             |     +--rw address-family    iana-rt-types:address-family
             +--rw mpls
             |  +--rw ldp
             |     +--rw igp-sync?   boolean {ldp-igp-sync}?
             +--rw fast-reroute {fast-reroute}?
             |  +--rw lfa {lfa}?
             |     +--rw candidate-enabled?  boolean
             |     +--rw enabled?            boolean
             |     +--rw remote-lfa {remote-lfa}?
             |     |  +--rw enabled?  boolean
             |     +--rw level-1
             |     |  +--rw candidate-enabled?  boolean
             |     |  +--rw enabled?            boolean
             |     |  +--rw remote-lfa {remote-lfa}?
             |     |     +--rw enabled?  boolean
             |     +--rw level-2
             |        +--rw candidate-enabled?  boolean
             |        +--rw enabled?            boolean
             |        +--rw remote-lfa {remote-lfa}?
             |           +--rw enabled?  boolean
             +--ro adjacencies
             |  +--ro adjacency* []
             |     +--ro neighbor-sys-type?             level
             |     +--ro neighbor-sysid?                system-id
             |     +--ro neighbor-extended-circuit-id?  extended-\
             |     |                                       circuit-id
             |     +--ro neighbor-snpa?                 snpa
             |     +--ro usage?                         level
             |     +--ro hold-timer?                    rt-types:
             |     |                                       timer-value-\
             |     |                                          seconds16
             |     +--ro neighbor-priority?             uint8
             |     +--ro lastuptime?                    yang:timestamp
             |     +--ro state?                         adj-state-type
             +--ro event-counters
             |  +--ro adjacency-changes?             uint32
             |  +--ro adjacency-number?              uint32
             |  +--ro init-fails?                    uint32
             |  +--ro adjacency-rejects?             uint32
             |  +--ro id-len-mismatch?               uint32
             |  +--ro max-area-addresses-mismatch?   uint32
             |  +--ro authentication-type-fails?     uint32
             |  +--ro authentication-fails?          uint32
             |  +--ro lan-dis-changes?               uint32
             +--ro packet-counters
             |  +--ro level* [level]
             |     +--ro level      level-number
             |     +--ro iih
             |     |  +--ro in?    uint32
             |     |  +--ro out?   uint32
             |     +--ro ish
             |     |  +--ro in?    uint32
             |     |  +--ro out?   uint32
             |     +--ro esh
             |     |  +--ro in?    uint32
             |     |  +--ro out?   uint32
             |     +--ro lsp
             |     |  +--ro in?    uint32
             |     |  +--ro out?   uint32
             |     +--ro psnp
             |     |  +--ro in?    uint32
             |     |  +--ro out?   uint32
             |     +--ro csnp
             |     |  +--ro in?    uint32
             |     |  +--ro out?   uint32
             |     +--ro unknown
             |        +--ro in?   uint32
             +--rw discontinuity-time?        yang:date-and-time
             +--rw topologies {multi-topology}?
                +--rw topology* [name]
                   +--rw name      ->
                   |              ../../../../../../../../rt:\
                   |                 ribs/rib/name
                   +--rw metric
                      +--rw value?     wide-metric
                      +--rw level-1
                      |  +--rw value?   wide-metric
                      +--rw level-2
                         +--rw value?   wide-metric

2.5.  Authentication Parameters

   The module defined in this document enables authentication
   configuration through the "ietf-key-chain" module [RFC8177].  The IS-
   IS module imports the "ietf-key-chain" module and reuses some
   groupings to allow global and per-interface configuration of
   authentication.  If global authentication is configured, an
   implementation SHOULD authenticate PSNPs (Partial Sequence Number
   PDUs), CSNPs (Complete Sequence Number PDUs), and LSPs (Link State
   PDUs) with the authentication parameters supplied.  The
   authentication of Hello PDUs (Protocol Data Units) can be activated
   on a per-interface basis.

2.6.  IGP/LDP Synchronization

   [RFC5443] defines a mechanism where IGP (the Interior Gateway
   Protocol) needs to be synchronized with LDP (the Label Distribution
   Protocol).  An "ldp-igp-sync" feature has been defined in the model
   to support this functionality.  The "mpls/ldp/igp-sync" leaf under
   "interface" allows activation of the functionality on a per-interface
   basis.  The "mpls/ldp/igp-sync" container in the global configuration
   is intentionally empty and is not required for feature activation.
   The goal of this empty container is to facilitate augmentation with
   additional parameters, e.g., timers.

2.7.  ISO Parameters

   As the IS-IS protocol is based on the ISO protocol suite, some ISO
   parameters may be required.

   This module augments the "ietf-interfaces" module configuration to
   support selected ISO configuration parameters.

   The "clns-mtu" parameter can be configured for an interface.

2.8.  IP FRR

   The YANG module defined in this document supports LFAs (Loop-Free
   Alternates) [RFC5286] and remote LFAs [RFC7490] as IP Fast Reroute
   (FRR) techniques.  The "fast-reroute" container may be augmented by
   other models to support other IP FRR flavors (Maximally Redundant
   Trees (MRTs) as defined in [RFC7812], Topology Independent LFA (TI-
   LFA) FRR as defined in [SR-TI-LFA], etc.).

   The current version of the model supports activation of LFAs and
   remote LFAs at the interface level only.  The global "lfa" container
   is present but kept empty to allow augmentation with vendor-specific
   properties, e.g., policies.

   Remote LFAs are considered an extension of LFAs.  Remote LFAs cannot
   be enabled if LFAs are not enabled.

   The "candidate-enabled" data leaf designates that an interface can be
   used as a backup.

2.9.  Operational States

   Operational states are defined in the "ietf-isis" module in various
   containers at various levels:

   system-counters:
      Provides statistical information about the global system.

   interface:
      Provides configuration state information for each interface.

   adjacencies:
      Provides state information about current IS-IS adjacencies.

   spf-log:
      Provides information about Shortest Path First (SPF) events for an
      IS-IS instance.  This SHOULD be implemented as a wrapping buffer.

   lsp-log:
      Provides information about LSP events for an IS-IS instance
      (reception of an LSP or modification of a local LSP).  This SHOULD
      be implemented as a wrapping buffer.  The implementation MAY
      optionally log LSP refreshes.

   local-rib:
      Provides the IS-IS internal routing table.

   database:
      Provides the contents of the current Link State Database (LSDB).

   hostnames:
      Provides the system-ID-to-hostname mappings [RFC5301].

   fast-reroute:
      Provides IP FRR state information.

3.  RPC Operations

   The "ietf-isis" module defines two RPC operations:

   clear-database:
      Resets the contents of a particular IS-IS database and restarts
      database synchronization with all neighbors.

   clear-adjacency:
      Restarts a particular set of IS-IS adjacencies.

4.  Notifications

   The "ietf-isis" module defines the following notifications:

   database-overload:
      This notification is sent when the IS-IS node's overload condition
      changes.

   lsp-too-large:
      This notification is sent when the system tries to propagate a PDU
      that is too large.

   if-state-change:
      This notification is sent when an interface's state changes.

   corrupted-lsp-detected:
      This notification is sent when the IS-IS node discovers that an
      LSP that was previously stored in the LSDB, i.e., local memory,
      has become corrupted.

   attempt-to-exceed-max-sequence:
      This notification is sent when the system wraps the 32-bit
      sequence counter of an LSP.

   id-len-mismatch:
      This notification is sent when a PDU with a different value for
      the system ID length is received.

   max-area-addresses-mismatch:
      This notification is sent when a PDU with a different value for
      the Maximum Area Addresses is received.

   own-lsp-purge:
      This notification is sent when the system receives a PDU with its
      own system ID and zero age.

   sequence-number-skipped:
      This notification is sent when the system receives a PDU with its
      own system ID and different contents.  The system has to reissue
      the LSP with a higher sequence number.

   authentication-type-failure:
      This notification is sent when the system receives a PDU with the
      wrong authentication type field.

   authentication-failure:
      This notification is sent when the system receives a PDU with the
      wrong authentication information.

   version-skew:
      This notification is sent when the system receives a PDU with a
      different protocol version number.

   area-mismatch:
      This notification is sent when the system receives a Hello PDU
      from an IS that does not share any area address.

   rejected-adjacency:
      This notification is sent when the system receives a Hello PDU
      from an IS but does not establish an adjacency for some reason.

   protocols-supported-mismatch:
      This notification is sent when the system receives a non-
      pseudonode LSP that has no matching protocol supported.

   lsp-error-detected:
      This notification is sent when the system receives an LSP with a
      parse error.

   adjacency-state-change:
      This notification is sent when an IS-IS adjacency moves to the
      "up" state or the "down" state.

   lsp-received:
      This notification is sent when an LSP is received.

   lsp-generation:
      This notification is sent when an LSP is regenerated.

5.  Interactions with Other YANG Modules

   The "isis" container augments the "/rt:routing/rt:control-plane-
   protocols/control-plane-protocol" container of the "ietf-routing"
   module [RFC8349] with IS-IS-specific parameters.

   The "ietf-isis" module augments "/if:interfaces/if:interface" as
   defined by [RFC8343] with ISO-specific parameters.

   Some IS-IS-specific route attributes are added to route objects in
   the "ietf-routing" module by augmenting "/rt:routing-
   state/rt:ribs/rt:rib/rt:routes/rt:route".

   The module defined in this document uses some groupings from "ietf-
   keychain" [RFC8177].

   The module reuses types from [RFC6991] and [RFC8294].

   To support Bidirectional Forwarding Detection (BFD) for fast
   detection, the module relies on [RFC9314].

6.  IS-IS YANG Module

   The following specifications are referenced in this module:
   [ISO-10589], [RFC1195], [RFC4090], [RFC5029], [RFC5120], [RFC5130],
   [RFC5286], [RFC5301], [RFC5302], [RFC5305], [RFC5307], [RFC5308],
   [RFC5443], [RFC5880], [RFC5881], [RFC6119], [RFC6232], [RFC6241],
   [RFC6991], [RFC7490], [RFC7794], [RFC7917], [RFC7981], [RFC8177],
   [RFC8294], [RFC8342], [RFC8343], [RFC8349], [RFC8405], [RFC8570],
   [RFC8706], and [RFC9314].

   <CODE BEGINS> file "ietf-isis@2022-10-19.yang"
   module ietf-isis {
     yang-version 1.1;
     namespace "urn:ietf:params:xml:ns:yang:ietf-isis";
     prefix isis;

     import ietf-routing {
       prefix rt;
       reference
         "RFC 8349: A YANG Data Model for Routing Management
          (NMDA Version)";
     }
     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-interfaces {
       prefix if;
       reference
         "RFC 8343: A YANG Data Model for Interface Management";
     }
     import ietf-key-chain {
       prefix key-chain;
       reference
         "RFC 8177: YANG Data Model for Key Chains";
     }
     import ietf-routing-types {
       prefix rt-types;
       reference
         "RFC 8294: Common YANG Data Types for the Routing Area";
     }
     import iana-routing-types {
       prefix iana-rt-types;
       reference
         "RFC 8294: Common YANG Data Types for the Routing Area";
     }
     import ietf-bfd-types {
       prefix bfd-types;
       reference
         "RFC 9314: YANG Data Model for Bidirectional Forwarding
          Detection (BFD)";
     }

     organization
       "IETF LSR Working Group";
     contact
       "WG Web:   <https://datatracker.ietf.org/wg/lsr/>
        WG List:  <mailto:lsr@ietf.org>

        Editor:   Stephane Litkowski
                  <mailto:slitkows.ietf@gmail.com>

        Author:   Derek Yeung
                  <mailto:derek@arrcus.com>

        Author:   Acee Lindem
                  <mailto:acee@cisco.com>

        Author:   Jeffrey Zhang
                  <mailto:zzhang@juniper.net>

        Author:   Ladislav Lhotka
                  <mailto:ladislav.lhotka@nic.cz>";
     description
       "This YANG module defines the generic configuration and
        operational states for the IS-IS protocol common to all
        vendor implementations.  It is intended that the module
        will be extended by vendors to define vendor-specific
        IS-IS configuration parameters and policies -
        for example, route maps or route policies.

        This YANG data model conforms to the Network Management
        Datastore Architecture (NMDA) as described in RFC 8342.

        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) 2022 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 Revised 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 9130; see the
        RFC itself for full legal notices.";
     reference
       "RFC 8342: Network Management Datastore Architecture (NMDA)";

     revision 2022-10-19 {
       description
         "Initial revision.";
       reference
         "RFC 9130: YANG Data Model for the IS-IS Protocol";
     }

     /* Identities */

     identity isis {
       base rt:routing-protocol;
       description
         "Identity for the IS-IS routing protocol.";
     }

     identity lsp-log-reason {
       description
         "Base identity for a Link State PDU (LSP)
          change log reason.";
     }

     identity refresh {
       base lsp-log-reason;
       description
         "Identity used when the LSP log reason is that an LSP
          refresh was received.";
     }

     identity content-change {
       base lsp-log-reason;
       description
         "Identity used when the LSP log reason is
          a change in the contents of the LSP.";
     }

     identity frr-protection-method {
       description
         "Base identity for a Fast Reroute protection method.";
     }

     identity frr-protection-method-lfa {
       base frr-protection-method;
       description
         "Loop-Free Alternate as defined in RFC 5286.";
       reference
         "RFC 5286: Basic Specification for IP Fast Reroute:
          Loop-Free Alternates";
     }

     identity frr-protection-method-rlfa {
       base frr-protection-method;
       description
         "Remote Loop-Free Alternate as defined in RFC 7490.";
       reference
         "RFC 7490: Remote Loop-Free Alternate (LFA)
          Fast Reroute (FRR)";
     }

     identity frr-protection-method-rsvpte {
       base frr-protection-method;
       description
         "RSVP-TE as defined in RFC 4090.";
       reference
         "RFC 4090: Fast Reroute Extensions to RSVP-TE for
          LSP Tunnels";
     }

     identity frr-protection-available-type {
       description
         "Base identity for Fast Reroute protection types
          provided by an alternate path.";
     }

     identity frr-protection-available-node-type {
       base frr-protection-available-type;
       description
         "Node protection is provided by the alternate.";
     }

     identity frr-protection-available-link-type {
       base frr-protection-available-type;
       description
         "Link protection is provided by the alternate.";
     }

     identity frr-protection-available-srlg-type {
       base frr-protection-available-type;
       description
         "Shared Risk Link Group (SRLG) protection is provided by
          the alternate.";
     }

     identity frr-protection-available-downstream-type {
       base frr-protection-available-type;
       description
         "The alternate is downstream of the node in the path.";
     }

     identity frr-protection-available-other-type {
       base frr-protection-available-type;
       description
         "The level of protection is unknown.";
     }

     identity frr-alternate-type {
       description
         "Base identity for the IP Fast Reroute alternate type.";
     }

     identity frr-alternate-type-equal-cost {
       base frr-alternate-type;
       description
         "ECMP-based alternate.";
     }

     identity frr-alternate-type-lfa {
       base frr-alternate-type;
       description
         "LFA-based alternate.";
     }

     identity frr-alternate-type-remote-lfa {
       base frr-alternate-type;
       description
         "Remote-LFA-based alternate.";
     }

     identity frr-alternate-type-tunnel {
       base frr-alternate-type;
       description
         "Tunnel-based alternate (such as RSVP-TE or GRE).";
     }

     identity frr-alternate-mrt {
       base frr-alternate-type;
       description
         "MRT-based alternate.";
     }

     identity frr-alternate-tilfa {
       base frr-alternate-type;
       description
         "TI-LFA-based alternate.";
     }

     identity frr-alternate-other {
       base frr-alternate-type;
       description
         "Other type of alternate.";
     }

     identity unidirectional-link-delay-subtlv-flag {
       description
         "Base identity for the flag corresponding to the
          Unidirectional Link Delay sub-TLV as defined in RFC 8570.";
       reference
         "RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
     }

     identity unidirectional-link-delay-subtlv-a-flag {
       base unidirectional-link-delay-subtlv-flag;
       description
         "The 'A' bit field represents the Anomalous (A) bit.
          The A bit is set when the measured value of
          this parameter exceeds its configured
          maximum threshold.
          The A bit is cleared when the measured value
          falls below its configured reuse threshold.
          If the A bit is clear,
          the value represents steady-state link performance.";
     }

     identity min-max-unidirectional-link-delay-subtlv-flag {
       description
         "Base identity for the flag corresponding to the Min/Max
          Unidirectional Link Delay sub-TLV as defined in RFC 8570.";
       reference
         "RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
     }

     identity min-max-unidirectional-link-delay-subtlv-a-flag {
       base min-max-unidirectional-link-delay-subtlv-flag;
       description
         "The 'A' bit field represents the Anomalous (A) bit.
          The A bit is set when the measured value of
          this parameter exceeds its configured
          maximum threshold.
          The A bit is cleared when the measured value
          falls below its configured reuse threshold.
          If the A bit is clear,
          the value represents steady-state link performance.";
     }

     identity unidirectional-link-loss-subtlv-flag {
       description
         "Base identity for the flag corresponding to the
          Unidirectional Link Loss sub-TLV as defined in RFC 8570.";
       reference
         "RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
     }

     identity unidirectional-link-loss-subtlv-a-flag {
       base unidirectional-link-loss-subtlv-flag;
       description
         "The 'A' bit field represents the Anomalous (A) bit.
          The A bit is set when the measured value of
          this parameter exceeds its configured
          maximum threshold.
          The A bit is cleared when the measured value
          falls below its configured reuse threshold.
          If the A bit is clear,
          the value represents steady-state link performance.";
     }

     identity tlv229-flag {
       description
         "Base identity for the flag corresponding to TLV 229
          (M-Topologies) as defined in RFC 5120.";
       reference
         "RFC 5120: M-ISIS: Multi Topology (MT) Routing in
          Intermediate System to Intermediate Systems (IS-ISs)";
     }

     identity tlv229-overload-flag {
       base tlv229-flag;
       description
         "If set, the originator is overloaded
          and must be avoided in the path calculation.";
     }

     identity tlv229-attached-flag {
       base tlv229-flag;
       description
         "If set, the originator is attached to
          another area using the referred metric.";
     }

     identity router-capability-flag {
       description
         "Base identity for the flag corresponding to the
          Router Capability TLV as defined in RFC 7981.";
       reference
         "RFC 7981: IS-IS Extensions for Advertising Router
          Information";
     }

     identity router-capability-flooding-flag {
       base router-capability-flag;
       description
         "Quote from RFC 7981:
          'If the S bit is set(1), the IS-IS Router CAPABILITY TLV
          MUST be flooded across the entire routing domain.  If the
          S bit is not set(0), the TLV MUST NOT be leaked between
          levels.  This bit MUST NOT be altered during the TLV
          leaking.'";
     }

     identity router-capability-down-flag {
       base router-capability-flag;
       description
         "Quote from RFC 7981:
          'When the IS-IS Router CAPABILITY TLV is leaked from
          Level 2 (L2) to Level 1 (L1), the D bit MUST be set.
          Otherwise, this bit MUST be clear.  IS-IS Router
          CAPABILITY TLVs with the D bit set MUST NOT be leaked from
          Level 1 to Level 2.  This is to prevent TLV looping.'";
     }

     identity lsp-flag {
       description
         "Base identity for LSP attributes as defined in ISO 10589.";
       reference
         "ISO 10589: Intermediate System to Intermediate System
          intra-domain routeing information exchange protocol
          for use in conjunction with the protocol for providing
          the connectionless-mode network service (ISO 8473)";
     }

     identity lsp-partitioned-flag {
       base lsp-flag;
       description
         "Originator partition repair supported.";
     }

     identity lsp-attached-error-metric-flag {
       base lsp-flag;
       description
         "Set when the originator is attached to
          another area using the error metric.";
     }

     identity lsp-attached-delay-metric-flag {
       base lsp-flag;
       description
         "Set when the originator is attached to
          another area using the delay metric.";
     }

     identity lsp-attached-expense-metric-flag {
       base lsp-flag;
       description
         "Set when the originator is attached to
          another area using the expense metric.";
     }

     identity lsp-attached-default-metric-flag {
       base lsp-flag;
       description
         "Set when the originator is attached to
          another area using the default metric.";
     }

     identity lsp-overload-flag {
       base lsp-flag;
       description
         "If set, the originator is overloaded
          and must be avoided in the path calculation.";
     }

     identity lsp-l1-system-flag {
       base lsp-flag;
       description
         "Set when the Intermediate System has an L1 type.";
     }

     identity lsp-l2-system-flag {
       base lsp-flag;
       description
         "Set when the Intermediate System has an L2 type.";
     }

     /* Feature definitions */

     feature osi-interface {
       description
         "Support of OSI-specific parameters on an interface.";
     }

     feature poi-tlv {
       description
         "Support of the Purge Originator Identification (POI) TLV.";
       reference
         "RFC 6232: Purge Originator Identification TLV for IS-IS";
     }

     feature ietf-spf-delay {
       description
         "Support for the IETF SPF delay algorithm.";
       reference
         "RFC 8405: Shortest Path First (SPF) Back-Off Delay Algorithm
          for Link-State IGPs";
     }

     feature bfd {
       description
         "Support for detection of IS-IS neighbor reachability
          via BFD.";
       reference
         "RFC 5880: Bidirectional Forwarding Detection (BFD)
          RFC 5881: Bidirectional Forwarding Detection (BFD)
          for IPv4 and IPv6 (Single Hop)";
     }

     feature key-chain {
       description
         "Support of key chains for authentication.";
       reference
         "RFC 8177: YANG Data Model for Key Chains";
     }

     feature node-flag {
       description
         "Support for node flags for IS-IS prefixes.";
       reference
         "RFC 7794: IS-IS Prefix Attributes for Extended IPv4 and IPv6
          Reachability";
     }

     feature node-tag {
       description
         "Support for node administrative tags for IS-IS
          routing instances.";
       reference
         "RFC 7917: Advertising Node Administrative Tags in IS-IS";
     }

     feature ldp-igp-sync {
       description
         "Support for LDP IGP synchronization.";
       reference
         "RFC 5443: LDP IGP Synchronization";
     }

     feature fast-reroute {
       description
         "Support for IP Fast Reroute (IP FRR).";
     }

     feature nsr {
       description
         "Support for Non-Stop-Routing (NSR).  The IS-IS NSR feature
          allows a router with redundant control-plane capability
          (e.g., dual Route Processor (RP) cards) to maintain its
          state and adjacencies during planned and unplanned
          IS-IS instance restarts.  It differs from graceful restart
          or Non-Stop Forwarding (NSF) in that no protocol signaling
          or assistance from adjacent IS-IS neighbors is required to
          recover control-plane state.";
     }

     feature lfa {
       description
         "Support for Loop-Free Alternates (LFAs).";
       reference
         "RFC 5286: Basic Specification for IP Fast Reroute:
          Loop-Free Alternates";
     }

     feature remote-lfa {
       description
         "Support for remote LFAs (R-LFAs).";
       reference
         "RFC 7490: Remote Loop-Free Alternate (LFA)
          Fast Reroute (FRR)";
     }

     feature overload-max-metric {
       description
         "Support of overload by setting all links to the maximum
          link metric.  In IS-IS, the overload bit is usually used to
          signal that a node cannot be used as a transit node.  The
          'overload-max-metric' feature provides similar behavior,
          also setting all the link metrics to MAX_METRIC.";
     }

     feature prefix-tag {
       description
         "Support for 32-bit prefix tags.";
       reference
         "RFC 5130: A Policy Control Mechanism in IS-IS Using
          Administrative Tags";
     }

     feature prefix-tag64 {
       description
         "Support for 64-bit prefix tags.";
       reference
         "RFC 5130: A Policy Control Mechanism in IS-IS Using
          Administrative Tags";
     }

     feature auto-cost {
       description
         "Support for an IS-IS interface metric computation
          according to a reference bandwidth.";
     }

     feature te-rid {
       description
         "Traffic Engineering router ID.";
       reference
         "RFC 5305: IS-IS Extensions for Traffic Engineering
          RFC 6119: IPv6 Traffic Engineering in IS-IS";
     }

     feature max-ecmp {
       description
         "Sets the maximum number of ECMP paths.";
     }

     feature multi-topology {
       description
         "Support for Multi-Topology (MT) Routing.";
       reference
         "RFC 5120: M-ISIS: Multi Topology (MT) Routing in
          Intermediate System to Intermediate Systems (IS-ISs)";
     }

     feature nlpid-control {
       description
         "Support for the advertisement of a Network Layer
          Protocol Identifier within an IS-IS configuration.";
     }

     feature graceful-restart {
       description
         "Support for IS-IS graceful restart.";
       reference
         "RFC 8706: Restart Signaling for IS-IS";
     }

     feature lsp-refresh {
       description
         "Configuration of the LSP refresh interval.";
     }

     feature maximum-area-addresses {
       description
         "Support for 'maximum-area-addresses' configuration.";
     }

     feature admin-control {
       description
         "Administrative control of the protocol state.";
     }

     /* Type definitions */

     typedef circuit-id {
       type uint8;
       description
         "This type defines the circuit ID
          associated with an interface.";
     }

     typedef extended-circuit-id {
       type uint32;
       description
         "This type defines the extended circuit ID
          associated with an interface.";
     }

     typedef interface-type {
       type enumeration {
         enum broadcast {
           description
             "Broadcast interface type.";
         }
         enum point-to-point {
           description
             "Point-to-point interface type.";
         }
       }
       description
         "This type defines the type of adjacency
          to be established for the interface.
          'interface-type' determines the type
          of Hello message that is used.";
     }

     typedef level {
       type enumeration {
         enum level-1 {
           description
             "This enum indicates L1-only capability.";
         }
         enum level-2 {
           description
             "This enum indicates L2-only capability.";
         }
         enum level-all {
           description
             "This enum indicates capability for both levels.";
         }
       }
       default "level-all";
       description
         "This type defines the IS-IS level of an object.";
     }

     typedef adj-state-type {
       type enumeration {
         enum up {
           description
             "This state indicates that the adjacency is established.";
         }
         enum down {
           description
             "This state indicates that the adjacency is
              NOT established.";
         }
         enum init {
           description
             "This state indicates that the adjacency is being
              established.";
         }
         enum failed {
           description
             "This state indicates that the adjacency has failed.";
         }
       }
       description
         "This type defines the states of an adjacency.";
     }

     typedef if-state-type {
       type enumeration {
         enum up {
           description
             "'up' state.";
         }
         enum down {
           description
             "'down' state.";
         }
       }
       description
         "This type defines the state of an interface.";
     }

     typedef level-number {
       type uint8 {
         range "1 .. 2";
       }
       description
         "This type defines the current IS-IS level.";
     }

     typedef lsp-id {
       type string {
         pattern '[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.[0-9A-Fa-f]'
               + '{4}\.[0-9][0-9]-[0-9][0-9]';
       }
       description
         "This type defines the IS-IS LSP ID format using a
          pattern.  An example LSP ID is '0143.0438.AEF0.02-01'.";
     }

     typedef area-address {
       type string {
         pattern '[0-9A-Fa-f]{2}(\.[0-9A-Fa-f]{4}){0,6}';
       }
       description
         "This type defines the area address format.";
     }

     typedef snpa {
       type string {
         length "0 .. 20";
       }
       description
         "This type defines the Subnetwork Point of Attachment (SNPA)
          format.  The SNPA should be encoded according to the rules
          specified for the particular type of subnetwork being used.
          As an example, for an Ethernet subnetwork, the SNPA is
          encoded as a Media Access Control (MAC) address, such as
          '00aa.bbcc.ddee'.";
     }

     typedef system-id {
       type string {
         pattern '[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}';
       }
       description
         "This type defines the IS-IS system ID by using a pattern.
          An example system ID is '0143.0438.AEF0'.";
     }

     typedef extended-system-id {
       type string {
         pattern '[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.'
               + '[0-9][0-9]';
       }
       description
         "This type defines the IS-IS system ID using a pattern.
          'extended-system-id' contains the pseudonode number
          in addition to the system ID.
          An example extended system ID is '0143.0438.AEF0.00'.";
     }

     typedef wide-metric {
       type uint32 {
         range "0 .. 16777215";
       }
       description
         "This type defines the wide-style format of an IS-IS metric.";
     }

     typedef std-metric {
       type uint8 {
         range "0 .. 63";
       }
       description
         "This type defines the old-style format of the IS-IS metric.";
     }

     typedef mesh-group-state {
       type enumeration {
         enum mesh-inactive {
           description
             "The interface is not part of a mesh group.";
         }
         enum mesh-set {
           description
             "The interface is part of a mesh group.";
         }
         enum mesh-blocked {
           description
             "LSPs must not be flooded over this interface.";
         }
       }
       description
         "This type describes the mesh group state of an interface.";
     }

     /* Grouping for notifications */

     grouping notification-instance-hdr {
       description
         "Instance-specific IS-IS notification data grouping.";
       leaf routing-protocol-name {
         type leafref {
           path "/rt:routing/rt:control-plane-protocols/"
              + "rt:control-plane-protocol/rt:name";
         }
         description
           "Name of the IS-IS instance.";
       }
       leaf isis-level {
         type level;
         description
           "IS-IS level of the instance.";
       }
     }

     grouping notification-interface-hdr {
       description
         "Interface-specific IS-IS notification data grouping.";
       leaf interface-name {
         type if:interface-ref;
         description
           "IS-IS interface name.";
       }
       leaf interface-level {
         type level;
         description
           "IS-IS level of the interface.";
       }
       leaf extended-circuit-id {
         type extended-circuit-id;
         description
           "Extended circuit ID of the interface.";
       }
     }

     /* Groupings for IP Fast Reroute */

     grouping instance-fast-reroute-config {
       description
         "This group defines the global configuration of IP
          Fast Reroute (FRR).";
       container fast-reroute {
         if-feature "fast-reroute";
         description
           "This container may be augmented with global
            parameters for IP FRR.";
         container lfa {
           if-feature "lfa";
           description
             "This container may be augmented with
              global parameters for Loop-Free Alternates (LFAs).
              The creation of this container has no effect on
              LFA activation.";
         }
       }
     }

     grouping interface-lfa-config {
       leaf candidate-enabled {
         type boolean;
         default "true";
         description
           "Enables the interface to be used as a backup.";
       }
       leaf enabled {
         type boolean;
         default "false";
         description
           "Activates the LFA.  Per-prefix LFA computation is assumed.";
       }
       container remote-lfa {
         if-feature "remote-lfa";
         leaf enabled {
           type boolean;
           default "false";
           description
             "Activates the remote LFA (R-LFA).";
         }
         description
           "Remote LFA configuration.";
       }
       description
         "Grouping for LFA interface configuration.";
     }

     grouping interface-fast-reroute-config {
       description
         "This group defines the interface configuration of IP FRR.";
       container fast-reroute {
         if-feature "fast-reroute";
         container lfa {
           if-feature "lfa";
           uses interface-lfa-config;
           container level-1 {
             uses interface-lfa-config;
             description
               "LFA level-1 configuration.";
           }
           container level-2 {
             uses interface-lfa-config;
             description
               "LFA level-2 configuration.";
           }
           description
             "LFA configuration.";
         }
         description
           "Interface IP FRR configuration.";
       }
     }

     grouping instance-fast-reroute-state {
       description
         "IP FRR state data grouping.";
       container protected-routes {
         config false;
         list address-family-stats {
           key "address-family prefix alternate";
           leaf address-family {
             type iana-rt-types:address-family;
             description
               "Address family.";
           }
           leaf prefix {
             type inet:ip-prefix;
             description
               "Protected prefix.";
           }
           leaf alternate {
             type inet:ip-address;
             description
               "Alternate next hop for the prefix.";
           }
           leaf alternate-type {
             type identityref {
               base frr-alternate-type;
             }
             description
               "Type of alternate.";
           }
           leaf best {
             type boolean;
             description
               "Set when the alternate is the preferred alternate;
                clear otherwise.";
           }
           leaf non-best-reason {
             type string {
               length "1..255";
             }
             description
               "Information field that explains why the alternate
                is not the best alternate.  The length should be
                limited to 255 Unicode characters.  The expected format
                is a single line of text.";
           }
           container protection-available {
             leaf-list protection-types {
               type identityref {
                 base frr-protection-available-type;
               }
               description
                 "This list contains a set of protection
                  types defined as identities.
                  An identity must be added for each type of
                  protection provided by the alternate.
                  As an example, if an alternate provides
                  SRLG, node, and link protection, three
                  identities must be added in this list:
                  one for SRLG protection, one for node
                  protection, and one for link protection.";
             }
             description
               "Protection types provided by the alternate.";
           }
           leaf alternate-metric-1 {
             type uint32;
             description
               "Metric from the Point of Local Repair (PLR) to the
                destination through the alternate path.";
           }
           leaf alternate-metric-2 {
             type uint32;
             description
               "Metric from the PLR to the alternate node.";
           }
           leaf alternate-metric-3 {
             type uint32;
             description
               "Metric from the alternate node to the destination.";
           }
           description
             "Per-address-family protected prefix statistics.";
         }
         description
           "List of prefixes that are protected.";
       }
       container unprotected-routes {
         config false;
         list prefixes {
           key "address-family prefix";
           leaf address-family {
             type iana-rt-types:address-family;
             description
               "Address family.";
           }
           leaf prefix {
             type inet:ip-prefix;
             description
               "Unprotected prefix.";
           }
           description
             "Per-address-family unprotected prefix statistics.";
         }
         description
           "List of prefixes that are not protected.";
       }
       list protection-statistics {
         key "frr-protection-method";
         config false;
         leaf frr-protection-method {
           type identityref {
             base frr-protection-method;
           }
           description
             "Protection method used.";
         }
         list address-family-stats {
           key "address-family";
           leaf address-family {
             type iana-rt-types:address-family;
             description
               "Address family.";
           }
           leaf total-routes {
             type yang:gauge32;
             description
               "Total prefixes.";
           }
           leaf unprotected-routes {
             type yang:gauge32;
             description
               "Total prefixes that are not protected.";
           }
           leaf protected-routes {
             type yang:gauge32;
             description
               "Total prefixes that are protected.";
           }
           leaf link-protected-routes {
             type yang:gauge32;
             description
               "Total prefixes that are link protected.";
           }
           leaf node-protected-routes {
             type yang:gauge32;
             description
               "Total prefixes that are node protected.";
           }
           description
             "Per-address-family protected prefix statistics.";
         }
         description
           "Global protection statistics.";
       }
     }

     /* Routing table and local Routing Information Base (RIB)
        groupings */

     grouping local-rib {
       description
         "Local RIB: RIB for routes computed by the local IS-IS
          routing instance.";
       container local-rib {
         config false;
         description
           "Local RIB.";
         list route {
           key "prefix";
           description
             "Routes.";
           leaf prefix {
             type inet:ip-prefix;
             description
               "Destination prefix.";
           }
           container next-hops {
             description
               "Next hops for the route.";
             list next-hop {
               key "next-hop";
               description
                 "List of next hops for the route.";
               leaf outgoing-interface {
                 type if:interface-ref;
                 description
                   "Name of the outgoing interface.";
               }
               leaf next-hop {
                 type inet:ip-address;
                 description
                   "Next-hop address.";
               }
             }
           }
           leaf metric {
             type uint32;
             description
               "Metric for this route.";
           }
           leaf level {
             type level-number;
             description
               "Level number for this route.";
           }
           leaf route-tag {
             type uint32;
             description
               "Route tag for this route.";
           }
         }
       }
     }

     grouping route-content {
       description
         "IS-IS protocol-specific route properties grouping.";
       leaf metric {
         type uint32;
         description
           "IS-IS metric of a route.";
       }
       leaf-list tag {
         type uint64;
         description
           "List of tags associated with the route.  This list
            provides a consolidated view of both 32-bit and 64-bit
            tags (RFC 5130) available for the prefix.";
         reference
           "RFC 5130: A Policy Control Mechanism in IS-IS Using
            Administrative Tags";
       }
       leaf route-type {
         type enumeration {
           enum l2-intra-area {
             description
               "Level-2 internal route.  As per RFC 5302,
                the prefix is directly connected to the
                advertising router.  It cannot be
                distinguished from an L1->L2 inter-area
                route.";
             reference
               "RFC 5302: Domain-Wide Prefix Distribution with
                Two-Level IS-IS";
           }
           enum l1-intra-area {
             description
               "Level-1 internal route.  As per RFC 5302,
                the prefix is directly connected to the
                advertising router.";
           }
           enum l2-external {
             description
               "Level-2 external route.  As per RFC 5302,
                such a route is learned from other IGPs.
                It cannot be distinguished from an L1->L2
                inter-area external route.";
           }
           enum l1-external {
             description
               "Level-1 external route.  As per RFC 5302,
                such a route is learned from other IGPs.";
           }
           enum l1-inter-area {
             description
               "These prefixes are learned via L2 routing.";
           }
           enum l1-inter-area-external {
             description
               "These prefixes are learned via L2 routing
                towards a level-2 external route.";
           }
         }
         description
           "IS-IS route type.";
       }
     }

     /* Grouping definitions for configuration and operational states */

     grouping adjacency-state {
       container adjacencies {
         config false;
         list adjacency {
           leaf neighbor-sys-type {
             type level;
             description
               "Level capability of the neighboring system.";
           }
           leaf neighbor-sysid {
             type system-id;
             description
               "The system ID of the neighbor.";
           }
           leaf neighbor-extended-circuit-id {
             type extended-circuit-id;
             description
               "The circuit ID of the neighbor.";
           }
           leaf neighbor-snpa {
             type snpa;
             description
               "The SNPA of the neighbor.";
           }
           leaf usage {
             type level;
             description
               "Defines the level(s) activated for the adjacency.
                On a point-to-point link, this might be level 1 and
                level 2, but on a LAN, the usage will be level 1
                between neighbors at level 1 or level 2 between
                neighbors at level 2.";
           }
           leaf hold-timer {
             type rt-types:timer-value-seconds16;
             units "seconds";
             description
               "The holding time (in seconds) for this adjacency.
                This value is based on received Hello PDUs and the
                elapsed time since receipt.";
           }
           leaf neighbor-priority {
             type uint8 {
               range "0 .. 127";
             }
             description
               "Priority of the neighboring IS for becoming the
                Designated Intermediate System (DIS).";
           }
           leaf lastuptime {
             type yang:timestamp;
             description
               "When the adjacency most recently entered the
                'up' state, measured in hundredths of a
                second since the last reinitialization of
                the network management subsystem.
                The value is 0 if the adjacency has never
                been in the 'up' state.";
           }
           leaf state {
             type adj-state-type;
             description
               "This leaf describes the state of the interface.";
           }
           description
             "List of operational adjacencies.";
         }
         description
           "This container lists the adjacencies of
            the local node.";
       }
       description
         "Adjacency state.";
     }

     grouping admin-control {
       leaf enabled {
         if-feature "admin-control";
         type boolean;
         default "true";
         description
           "Enables or disables the protocol.";
       }
       description
         "Grouping for administrative control.";
     }

     grouping ietf-spf-delay {
       leaf initial-delay {
         type rt-types:timer-value-milliseconds;
         units "msec";
         default "50";
         description
           "Delay used while in the QUIET state (milliseconds).";
       }
       leaf short-delay {
         type rt-types:timer-value-milliseconds;
         units "msec";
         default "200";
         description
           "Delay used while in the SHORT_WAIT state (milliseconds).";
       }
       leaf long-delay {
         type rt-types:timer-value-milliseconds;
         units "msec";
         default "5000";
         description
           "Delay used while in the LONG_WAIT state (milliseconds).";
       }
       leaf hold-down {
         type rt-types:timer-value-milliseconds;
         units "msec";
         default "10000";
         description
           "This timer value defines the period without any changes
            for the IGP to be considered stable (in milliseconds).";
       }
       leaf time-to-learn {
         type rt-types:timer-value-milliseconds;
         units "msec";
         default "500";
         description
           "Duration used to learn all the IGP events
            related to a single network event (milliseconds).";
       }
       leaf current-state {
         type enumeration {
           enum quiet {
             description
               "QUIET state.";
           }
           enum short-wait {
             description
               "SHORT_WAIT state.";
           }
           enum long-wait {
             description
               "LONG_WAIT state.";
           }
         }
         config false;
         description
           "Current SPF Back-Off algorithm state.";
       }
       leaf remaining-time-to-learn {
         type rt-types:timer-value-milliseconds;
         units "msec";
         config false;
         description
           "Remaining time until the time-to-learn timer fires.";
       }
       leaf remaining-hold-down {
         type rt-types:timer-value-milliseconds;
         units "msec";
         config false;
         description
           "Remaining time until the hold-down timer fires.";
       }
       leaf last-event-received {
         type yang:timestamp;
         config false;
         description
           "Time of the last IGP event received.";
       }
       leaf next-spf-time {
         type yang:timestamp;
         config false;
         description
           "Time when the next SPF has been scheduled.";
       }
       leaf last-spf-time {
         type yang:timestamp;
         config false;
         description
           "Time of the last SPF computation.";
       }
       description
         "Grouping for IETF SPF delay configuration and state.";
       reference
         "RFC 8405: Shortest Path First (SPF) Back-Off Delay Algorithm
          for Link-State IGPs";
     }

     grouping node-tag-config {
       description
         "IS-IS node tag configuration state.";
       container node-tags {
         if-feature "node-tag";
         list node-tag {
           key "tag";
           leaf tag {
             type uint32;
             description
               "Node tag value.";
           }
           description
             "List of tags.";
         }
         description
           "Container for node administrative tags.";
       }
     }

     grouping authentication-global-cfg {
       choice authentication-type {
         case key-chain {
           if-feature "key-chain";
           leaf key-chain {
             type key-chain:key-chain-ref;
             description
               "Reference to a key chain.";
           }
         }
         case password {
           leaf key {
             type string;
             description
               "This leaf specifies the authentication key.  The
                length of the key may be dependent on the
                cryptographic algorithm.";
           }
           leaf crypto-algorithm {
             type identityref {
               base key-chain:crypto-algorithm;
             }
             description
               "Cryptographic algorithm associated with a key.";
           }
         }
         description
           "Choice of authentication.";
       }
       description
         "Grouping for global authentication configuration.";
     }

     grouping metric-type-global-cfg {
       leaf value {
         type enumeration {
           enum wide-only {
             description
               "Advertises the new metric style only (RFC 5305).";
             reference
               "RFC 5305: IS-IS Extensions for Traffic Engineering";
           }
           enum old-only {
             description
               "Advertises the old metric style only (RFC 1195).";
             reference
               "RFC 1195: Use of OSI IS-IS for routing in TCP/IP and
                dual environments";
           }
           enum both {
             description
               "Advertises both metric styles.";
           }
         }
         description
           "Type of metric to be generated:

            -  'wide-only' means that only a new metric style
               is generated.
            -  'old-only' means that only an old metric style
               is generated.
            -  'both' means that both are advertised.

            This leaf only affects IPv4 metrics.";
       }
       description
         "Grouping for global metric style configuration.";
     }

     grouping metric-type-global-cfg-with-default {
       leaf value {
         type enumeration {
           enum wide-only {
             description
               "Advertises the new metric style only (RFC 5305).";
             reference
               "RFC 5305: IS-IS Extensions for Traffic Engineering";
           }
           enum old-only {
             description
               "Advertises the old metric style only (RFC 1195).";
             reference
               "RFC 1195: Use of OSI IS-IS for routing in TCP/IP and
                dual environments";
           }
           enum both {
             description
               "Advertises both metric styles.";
           }
         }
         default "wide-only";
         description
           "Type of metric to be generated:

            -  'wide-only' means that only a new metric style
               is generated.
            -  'old-only' means that only an old metric style
               is generated.
            -  'both' means that both are advertised.

            This leaf only affects IPv4 metrics.";
       }
       description
         "Grouping for global metric style configuration.";
     }

     grouping default-metric-global-cfg {
       leaf value {
         type wide-metric;
         description
           "Value of the metric.";
       }
       description
         "Global default metric configuration grouping.";
     }

     grouping default-metric-global-cfg-with-default {
       leaf value {
         type wide-metric;
         default "10";
         description
           "Value of the metric.";
       }
       description
         "Global default metric configuration grouping.";
     }

     grouping overload-global-cfg {
       leaf status {
         type boolean;
         default "false";
         description
           "This leaf specifies the overload status.";
       }
       description
         "Grouping for overload bit configuration.";
     }

     grouping overload-max-metric-global-cfg {
       leaf timeout {
         type rt-types:timer-value-seconds16;
         units "seconds";
         description
           "Timeout (in seconds) of the overload condition.";
       }
       description
         "Overload maximum metric configuration grouping.";
     }

     grouping route-preference-global-cfg {
       choice granularity {
         case detail {
           leaf internal {
             type uint8;
             description
               "Protocol preference for internal routes.";
           }
           leaf external {
             type uint8;
             description
               "Protocol preference for external routes.";
           }
         }
         case coarse {
           leaf default {
             type uint8;
             description
               "Protocol preference for all IS-IS routes.";
           }
         }
         description
           "Choice for implementation of route preference.";
       }
       description
         "Global route preference grouping.";
     }

     grouping hello-authentication-cfg {
       choice authentication-type {
         case key-chain {
           if-feature "key-chain";
           leaf key-chain {
             type key-chain:key-chain-ref;
             description
               "Reference to a key chain.";
           }
         }
         case password {
           leaf key {
             type string;
             description
               "Authentication key specification.  The length of the
                key may be dependent on the cryptographic algorithm.";
           }
           leaf crypto-algorithm {
             type identityref {
               base key-chain:crypto-algorithm;
             }
             description
               "Cryptographic algorithm associated with a key.";
           }
         }
         description
           "Choice of authentication.";
       }
       description
         "Grouping for Hello authentication.";
     }

     grouping hello-interval-cfg {
       leaf value {
         type rt-types:timer-value-seconds16;
         units "seconds";
         description
           "Interval (in seconds) between successive Hello
            messages.";
       }
       description
         "Interval between Hello messages.";
     }

     grouping hello-interval-cfg-with-default {
       leaf value {
         type rt-types:timer-value-seconds16;
         units "seconds";
         default "10";
         description
           "Interval (in seconds) between successive Hello
            messages.";
       }
       description
         "Interval between Hello messages.";
     }

     grouping hello-multiplier-cfg {
       leaf value {
         type uint16;
         description
           "Number of missed Hello messages prior to
            declaring the adjacency down.";
       }
       description
         "Grouping for the number of missed Hello messages prior to
          declaring the adjacency down.";
     }

     grouping hello-multiplier-cfg-with-default {
       leaf value {
         type uint16;
         default "3";
         description
           "Number of missed Hello messages prior to
            declaring the adjacency down.";
       }
       description
         "Grouping for the number of missed Hello messages prior to
          declaring the adjacency down.";
     }

     grouping priority-cfg {
       leaf value {
         type uint8 {
           range "0 .. 127";
         }
         description
           "Priority of the interface for DIS election.";
       }
       description
         "Interface DIS election priority grouping.";
     }

     grouping priority-cfg-with-default {
       leaf value {
         type uint8 {
           range "0 .. 127";
         }
         default "64";
         description
           "Priority of the interface for DIS election.";
       }
       description
         "Interface DIS election priority grouping.";
     }

     grouping metric-cfg {
       leaf value {
         type wide-metric;
         description
           "Metric value.";
       }
       description
         "Interface metric grouping.";
     }

     grouping metric-cfg-with-default {
       leaf value {
         type wide-metric;
         default "10";
         description
           "Metric value.";
       }
       description
         "Interface metric grouping.";
     }

     grouping metric-parameters {
       container metric-type {
         uses metric-type-global-cfg-with-default;
         container level-1 {
           uses metric-type-global-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses metric-type-global-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Metric style global configuration.";
       }
       container default-metric {
         uses default-metric-global-cfg-with-default;
         container level-1 {
           uses default-metric-global-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses default-metric-global-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Default metric global configuration.";
       }
       container auto-cost {
         if-feature "auto-cost";
         description
           "Interface auto-cost configuration state.";
         leaf enabled {
           type boolean;
           description
             "Enables or disables interface auto-cost.";
         }
         leaf reference-bandwidth {
           when "../enabled = 'true'" {
             description
               "Only when auto-cost is enabled.";
           }
           type uint32 {
             range "1..4294967";
           }
           units "Mbits";
           description
             "Configures the reference bandwidth used to automatically
              determine the interface cost (Mbits).  The cost is the
              reference bandwidth divided by the interface speed,
              with 1 being the minimum cost.";
         }
       }
       description
         "Grouping for global metric parameters.";
     }

     grouping high-availability-parameters {
       container graceful-restart {
         if-feature "graceful-restart";
         leaf enabled {
           type boolean;
           default "false";
           description
             "Enables graceful restart.";
         }
         leaf restart-interval {
           type rt-types:timer-value-seconds16;
           units "seconds";
           description
             "Interval (in seconds) to attempt graceful restart prior
              to failure.";
         }
         leaf helper-enabled {
           type boolean;
           default "true";
           description
             "Enables a local IS-IS router as a graceful restart
              helper.";
         }
         description
           "Configuration of graceful restart.";
       }
       container nsr {
         if-feature "nsr";
         description
           "Non-Stop Routing (NSR) configuration.";
         leaf enabled {
           type boolean;
           default "false";
           description
             "Enables or disables NSR.";
         }
       }
       description
         "Grouping for high-availability parameters.";
     }

     grouping authentication-parameters {
       container authentication {
         uses authentication-global-cfg;
         container level-1 {
           uses authentication-global-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses authentication-global-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Authentication global configuration for
            both LSPs and Sequence Number PDUs (SNPs).";
       }
       description
         "Grouping for authentication parameters.";
     }

     grouping address-family-parameters {
       container address-families {
         if-feature "nlpid-control";
         list address-family-list {
           key "address-family";
           leaf address-family {
             type iana-rt-types:address-family;
             description
               "Address family.";
           }
           leaf enabled {
             type boolean;
             description
               "Activates the address family.";
           }
           description
             "List of address families and whether or not they
              are activated.";
         }
         description
           "Address family configuration.";
       }
       description
         "Grouping for address family parameters.";
     }

     grouping mpls-parameters {
       container mpls {
         container te-rid {
           if-feature "te-rid";
           description
             "Stable IS-IS router IP address used for Traffic
              Engineering.";
           leaf ipv4-router-id {
             type inet:ipv4-address;
             description
               "Router ID value that would be used in TLV 134.";
           }
           leaf ipv6-router-id {
             type inet:ipv6-address;
             description
               "Router ID value that would be used in TLV 140.";
           }
         }
         container ldp {
           container igp-sync {
             if-feature "ldp-igp-sync";
             description
               "This container may be augmented with global
                parameters for LDP IGP synchronization.";
           }
           description
             "LDP configuration.";
         }
         description
           "MPLS configuration.";
       }
       description
         "Grouping for MPLS global parameters.";
     }

     grouping lsp-parameters {
       leaf lsp-mtu {
         type uint16;
         units "bytes";
         default "1492";
         description
           "Maximum size of an LSP PDU in bytes.";
       }
       leaf lsp-lifetime {
         type uint16 {
           range "1..65535";
         }
         units "seconds";
         description
           "Lifetime of the router's LSPs in seconds.";
       }
       leaf lsp-refresh {
         if-feature "lsp-refresh";
         type rt-types:timer-value-seconds16;
         units "seconds";
         description
           "Refresh interval of the router's LSPs in seconds.";
       }
       leaf poi-tlv {
         if-feature "poi-tlv";
         type boolean;
         default "false";
         description
           "Enables the advertisement of the IS-IS Purge Originator
            Identification TLV.";
       }
       description
         "Grouping for LSP global parameters.";
     }

     grouping spf-parameters {
       container spf-control {
         leaf paths {
           if-feature "max-ecmp";
           type uint16 {
             range "1..65535";
           }
           description
             "Maximum number of Equal-Cost Multi-Path (ECMP) paths.";
         }
         container ietf-spf-delay {
           if-feature "ietf-spf-delay";
           uses ietf-spf-delay;
           description
             "IETF SPF delay algorithm configuration.";
         }
         description
           "SPF calculation control.";
       }
       description
         "Grouping for SPF global parameters.";
     }

     grouping instance-config {
       description
         "IS-IS global configuration grouping.";
       uses admin-control;
       leaf level-type {
         type level;
         default "level-all";
         description
           "Level of an IS-IS node.  Can be 'level-1', 'level-2', or
            'level-all'.";
       }
       leaf system-id {
         type system-id;
         description
           "System ID of the node.";
       }
       leaf maximum-area-addresses {
         if-feature "maximum-area-addresses";
         type uint8;
         default "3";
         description
           "Maximum areas supported.";
       }
       leaf-list area-address {
         type area-address;
         description
           "List of areas supported by the protocol instance.";
       }
       uses lsp-parameters;
       uses high-availability-parameters;
       uses node-tag-config;
       uses metric-parameters;
       uses authentication-parameters;
       uses address-family-parameters;
       uses mpls-parameters;
       uses spf-parameters;
       uses instance-fast-reroute-config;
       container preference {
         uses route-preference-global-cfg;
         description
           "Router preference configuration for IS-IS
            protocol instance route installation.";
       }
       container overload {
         uses overload-global-cfg;
         description
           "Router protocol instance overload state configuration.";
       }
       container overload-max-metric {
         if-feature "overload-max-metric";
         uses overload-max-metric-global-cfg;
         description
           "Router protocol instance overload maximum
            metric advertisement configuration.";
       }
     }

     grouping instance-state {
       description
         "IS-IS instance operational state.";
       uses spf-log;
       uses lsp-log;
       uses hostname-db;
       uses lsdb;
       uses local-rib;
       uses system-counters;
       uses instance-fast-reroute-state;
       leaf discontinuity-time {
         type yang:date-and-time;
         description
           "The time of the most recent occasion at which any one
            or more of this IS-IS instance's counters suffered a
            discontinuity.  If no such discontinuities have occurred
            since the IS-IS instance was last reinitialized, then
            this node contains the time the IS-IS instance was
            reinitialized, which normally occurs when it was
            created.";
       }
     }

     grouping multi-topology-config {
       description
         "Per-topology configuration.";
       container default-metric {
         uses default-metric-global-cfg;
         container level-1 {
           uses default-metric-global-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses default-metric-global-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Default metric per-topology configuration.";
       }
       uses node-tag-config;
     }

     grouping interface-config {
       description
         "Interface configuration grouping.";
       uses admin-control;
       leaf level-type {
         type level;
         default "level-all";
         description
           "IS-IS level of the interface.";
       }
       leaf lsp-pacing-interval {
         type rt-types:timer-value-milliseconds;
         units "milliseconds";
         default "33";
         description
           "Interval (in milliseconds) between LSP transmissions.";
       }
       leaf lsp-retransmit-interval {
         type rt-types:timer-value-seconds16;
         units "seconds";
         description
           "Interval (in seconds) between LSP retransmissions.";
       }
       leaf passive {
         type boolean;
         default "false";
         description
           "Indicates whether the interface is in passive mode (IS-IS
            is not running, but the network is advertised).";
       }
       leaf csnp-interval {
         type rt-types:timer-value-seconds16;
         units "seconds";
         default "10";
         description
           "Interval (in seconds) between Complete Sequence Number
            Packet (CSNP) messages.";
       }
       container hello-padding {
         leaf enabled {
           type boolean;
           default "true";
           description
             "IS-IS Hello padding activation.  Enabled by default.";
         }
         description
           "IS-IS Hello padding configuration.";
       }
       leaf mesh-group-enabled {
         type mesh-group-state;
         description
           "IS-IS interface mesh group state.";
       }
       leaf mesh-group {
         when "../mesh-group-enabled = 'mesh-set'" {
           description
             "Only valid when 'mesh-group-enabled' equals 'mesh-set'.";
         }
         type uint8;
         description
           "IS-IS interface mesh group ID.";
       }
       leaf interface-type {
         type interface-type;
         default "broadcast";
         description
           "Type of adjacency to be established for the interface.
            This dictates the type of Hello messages that are used.";
       }
       leaf-list tag {
         if-feature "prefix-tag";
         type uint32;
         description
           "List of tags associated with the interface.";
       }
       leaf-list tag64 {
         if-feature "prefix-tag64";
         type uint64;
         description
           "List of 64-bit tags associated with the interface.";
       }
       leaf node-flag {
         if-feature "node-flag";
         type boolean;
         default "false";
         description
           "Sets the prefix as a node representative prefix.";
       }
       container hello-authentication {
         uses hello-authentication-cfg;
         container level-1 {
           uses hello-authentication-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses hello-authentication-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Authentication type to be used in Hello messages.";
       }
       container hello-interval {
         uses hello-interval-cfg-with-default;
         container level-1 {
           uses hello-interval-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses hello-interval-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Interval between Hello messages.";
       }
       container hello-multiplier {
         uses hello-multiplier-cfg-with-default;
         container level-1 {
           uses hello-multiplier-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses hello-multiplier-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Hello multiplier configuration.";
       }
       container priority {
         must '../interface-type = "broadcast"' {
           error-message "Priority only applies to broadcast "
                       + "interfaces.";
           description
             "Checks for a broadcast interface.";
         }
         uses priority-cfg-with-default;
         container level-1 {
           uses priority-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses priority-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Priority for DIS election.";
       }
       container metric {
         uses metric-cfg-with-default;
         container level-1 {
           uses metric-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses metric-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Metric configuration.";
       }
       container bfd {
         if-feature "bfd";
         description
           "BFD interface configuration.";
         uses bfd-types:client-cfg-parms;
         reference
           "RFC 5880: Bidirectional Forwarding Detection (BFD)
            RFC 5881: Bidirectional Forwarding Detection
            (BFD) for IPv4 and IPv6 (Single Hop)
            RFC 9314: YANG Data Model for Bidirectional Forwarding
            Detection (BFD)";
       }
       container address-families {
         if-feature "nlpid-control";
         list address-family-list {
           key "address-family";
           leaf address-family {
             type iana-rt-types:address-family;
             description
               "Address family.";
           }
           description
             "List of address families.";
         }
         description
           "Interface address families.";
       }
       container mpls {
         container ldp {
           leaf igp-sync {
             if-feature "ldp-igp-sync";
             type boolean;
             default "false";
             description
               "Enables IGP/LDP synchronization.";
           }
           description
             "Configuration related to LDP.";
         }
         description
           "MPLS configuration for IS-IS interfaces.";
       }
       uses interface-fast-reroute-config;
     }

     grouping multi-topology-interface-config {
       description
         "IS-IS interface topology configuration.";
       container metric {
         uses metric-cfg;
         container level-1 {
           uses metric-cfg;
           description
             "Configuration specific to level 1.";
         }
         container level-2 {
           uses metric-cfg;
           description
             "Configuration specific to level 2.";
         }
         description
           "Metric IS-IS interface configuration.";
       }
     }

     grouping interface-state {
       description
         "IS-IS interface operational state.";
       uses adjacency-state;
       uses event-counters;
       uses packet-counters;
       leaf discontinuity-time {
         type yang:date-and-time;
         description
           "The time of the most recent occasion at which any one
            or more of this IS-IS interface's counters suffered a
            discontinuity.  If no such discontinuities have occurred
            since the IS-IS interface was last reinitialized, then
            this node contains the time the IS-IS interface was
            reinitialized, which normally occurs when it was
            created.";
       }
     }

     /* Grouping for the hostname database */

     grouping hostname-db {
       container hostnames {
         config false;
         list hostname {
           key "system-id";
           leaf system-id {
             type system-id;
             description
               "System ID associated with the hostname.";
           }
           leaf hostname {
             type string {
               length "1..255";
             }
             description
               "Hostname associated with the system ID
                as defined in RFC 5301.";
             reference
               "RFC 5301: Dynamic Hostname Exchange Mechanism
                for IS-IS";
           }
           description
             "List of system ID / hostname associations.";
         }
         description
           "Hostname-to-system-ID mapping database.";
       }
       description
         "Grouping for hostname-to-system-ID mapping database.";
     }

     /* Groupings for counters */

     grouping system-counters {
       container system-counters {
         config false;
         list level {
           key "level";
           leaf level {
             type level-number;
             description
               "IS-IS level.";
           }
           leaf corrupted-lsps {
             type uint32;
             description
               "Number of corrupted in-memory LSPs detected.
                LSPs received from the wire with a bad
                checksum are silently dropped and not counted.
                LSPs received from the wire with parse errors
                are counted by 'lsp-errors'.";
           }
           leaf authentication-type-fails {
             type uint32;
             description
               "Number of authentication type mismatches.";
           }
           leaf authentication-fails {
             type uint32;
             description
               "Number of authentication key failures.";
           }
           leaf database-overload {
             type uint32;
             description
               "Number of times the database has become
                overloaded.";
           }
           leaf own-lsp-purge {
             type uint32;
             description
               "Number of times a zero-aged copy of the system's
                own LSP is received from some other IS-IS node.";
           }
           leaf manual-address-drop-from-area {
             type uint32;
             description
               "Number of times a manual address
                has been dropped from the area.";
           }
           leaf max-sequence {
             type uint32;
             description
               "Number of times the system has attempted
                to exceed the maximum sequence number.";
           }
           leaf sequence-number-skipped {
             type uint32;
             description
               "Number of times a sequence number skip has
                occurred.";
           }
           leaf id-len-mismatch {
             type uint32;
             description
               "Number of times a PDU is received with a
                different value for the ID field length
                than that of the receiving system.";
           }
           leaf partition-changes {
             type uint32;
             description
               "Number of partition changes detected.";
           }
           leaf lsp-errors {
             type uint32;
             description
               "Number of LSPs received with errors.";
           }
           leaf spf-runs {
             type uint32;
             description
               "Number of times SPF was run at this level.";
           }
           description
             "List of supported levels.";
         }
         description
           "List of counters for the IS-IS protocol instance.";
       }
       description
         "Grouping for IS-IS system counters.";
     }

     grouping event-counters {
       container event-counters {
         config false;
         leaf adjacency-changes {
           type uint32;
           description
             "The number of times an adjacency state change has
              occurred on this interface.";
         }
         leaf adjacency-number {
           type uint32;
           description
             "The number of adjacencies on this interface.";
         }
         leaf init-fails {
           type uint32;
           description
             "The number of times initialization of this interface has
              failed.  This counts events such as Point-to-Point
              Protocol (PPP) Network Control Protocol (NCP) failures.
              Failures to form an adjacency are counted by
              'adjacency-rejects'.";
         }
         leaf adjacency-rejects {
           type uint32;
           description
             "The number of times an adjacency has been
              rejected on this interface.";
         }
         leaf id-len-mismatch {
           type uint32;
           description
             "The number of times an IS-IS PDU with an ID
              field length different from that for this
              system has been received on this interface.";
         }
         leaf max-area-addresses-mismatch {
           type uint32;
           description
             "The number of times an IS-IS PDU has been
              received on this interface with the
              max area address field differing from that of
              this system.";
         }
         leaf authentication-type-fails {
           type uint32;
           description
             "Number of authentication type mismatches.";
         }
         leaf authentication-fails {
           type uint32;
           description
             "Number of authentication key failures.";
         }
         leaf lan-dis-changes {
           type uint32;
           description
             "The number of times the DIS has changed on this
              interface at this level.  If the interface type is
              'point-to-point', the count is zero.";
         }
         description
           "IS-IS interface event counters.";
       }
       description
         "Grouping for IS-IS interface event counters.";
     }

     grouping packet-counters {
       container packet-counters {
         config false;
         list level {
           key "level";
           leaf level {
             type level-number;
             description
               "IS-IS level.";
           }
           container iih {
             leaf in {
               type uint32;
               description
                 "Received IS-IS Hello (IIH) PDUs.";
             }
             leaf out {
               type uint32;
               description
                 "Sent IIH PDUs.";
             }
             description
               "Number of IIH PDUs received/sent.";
           }
           container ish {
             leaf in {
               type uint32;
               description
                 "Received Intermediate System Hello (ISH) PDUs.";
             }
             leaf out {
               type uint32;
               description
                 "Sent ISH PDUs.";
             }
             description
               "ISH PDUs received/sent.";
           }
           container esh {
             leaf in {
               type uint32;
               description
                 "Received End System Hello (ESH) PDUs.";
             }
             leaf out {
               type uint32;
               description
                 "Sent ESH PDUs.";
             }
             description
               "Number of ESH PDUs received/sent.";
           }
           container lsp {
             leaf in {
               type uint32;
               description
                 "Received Link State PDU (LSP) PDUs.";
             }
             leaf out {
               type uint32;
               description
                 "Sent LSP PDUs.";
             }
             description
               "Number of LSP PDUs received/sent.";
           }
           container psnp {
             leaf in {
               type uint32;
               description
                 "Received Partial Sequence Number PDU (PSNP) PDUs.";
             }
             leaf out {
               type uint32;
               description
                 "Sent PSNP PDUs.";
             }
             description
               "Number of PSNP PDUs received/sent.";
           }
           container csnp {
             leaf in {
               type uint32;
               description
                 "Received Complete Sequence Number PDU (CSNP) PDUs.";
             }
             leaf out {
               type uint32;
               description
                 "Sent CSNP PDUs.";
             }
             description
               "Number of CSNP PDUs received/sent.";
           }
           container unknown {
             leaf in {
               type uint32;
               description
                 "Received unknown PDUs.";
             }
             description
               "Number of unknown PDUs received.";
           }
           description
             "List of packet counters for supported levels.";
         }
         description
           "Packet counters per IS-IS level.";
       }
       description
         "Grouping for packet counters per IS-IS level.";
     }

     /* Groupings for various log buffers */

     grouping spf-log {
       container spf-log {
         config false;
         list event {
           key "id";
           leaf id {
             type yang:counter32;
             description
               "Event identifier.  A purely internal value.
                The most recent events are expected to have a bigger
                ID number.";
           }
           leaf spf-type {
             type enumeration {
               enum full {
                 description
                   "Full SPF computation.";
               }
               enum route-only {
                 description
                   "SPF computation of route reachability
                    only.";
               }
             }
             description
               "Type of SPF computation performed.";
           }
           leaf level {
             type level-number;
             description
               "IS-IS level number for the SPF computation.";
           }
           leaf schedule-timestamp {
             type yang:timestamp;
             description
               "Timestamp of when the SPF computation was
                scheduled.";
           }
           leaf start-timestamp {
             type yang:timestamp;
             description
               "Timestamp of when the SPF computation started.";
           }
           leaf end-timestamp {
             type yang:timestamp;
             description
               "Timestamp of when the SPF computation ended.";
           }
           list trigger-lsp {
             key "lsp";
             leaf lsp {
               type lsp-id;
               description
                 "LSP ID of the LSP that triggered the SPF
                  computation.";
             }
             leaf sequence {
               type uint32;
               description
                 "Sequence number of the LSP that triggered the SPF
                  computation.";
             }
             description
               "This list includes the LSPs that triggered the
                SPF computation.";
           }
           description
             "List of computation events.  Implemented as a
              wrapping buffer.";
         }
         description
           "This container lists the SPF computation events.";
       }
       description
         "Grouping for SPF log events.";
     }

     grouping lsp-log {
       container lsp-log {
         config false;
         list event {
           key "id";
           leaf id {
             type yang:counter32;
             description
               "Event identifier.  A purely internal value.
                The most recent events are expected to have a bigger
                ID number.";
           }
           leaf level {
             type level-number;
             description
               "IS-IS level number for the LSP.";
           }
           container lsp {
             leaf lsp {
               type lsp-id;
               description
                 "LSP ID of the LSP.";
             }
             leaf sequence {
               type uint32;
               description
                 "Sequence number of the LSP.";
             }
             description
               "LSP identification container for either the received
                LSP or the locally generated LSP.";
           }
           leaf received-timestamp {
             type yang:timestamp;
             description
               "This is the timestamp when the LSP was received.
                In the case of a local LSP update, the timestamp refers
                to the LSP origination time.";
           }
           leaf reason {
             type identityref {
               base lsp-log-reason;
             }
             description
               "Type of LSP change.";
           }
           description
             "List of LSP events.  Implemented as a wrapping buffer.";
         }
         description
           "This container lists the LSP log.
            Local LSP modifications are also included in the list.";
       }
       description
         "Grouping for the LSP log.";
     }

     /* Groupings for the Link State Database (LSDB) descriptions */
     /* Unknown TLV and sub-TLV descriptions */

     grouping tlv {
       description
         "Type-Length-Value (TLV).";
       leaf type {
         type uint16;
         description
           "TLV type.";
       }
       leaf length {
         type uint16;
         description
           "TLV length (octets).";
       }
       leaf value {
         type yang:hex-string;
         description
           "TLV value.";
       }
     }

     grouping unknown-tlvs {
       description
         "Unknown TLVs grouping.  Used for unknown TLVs or
          unknown sub-TLVs.";
       container unknown-tlvs {
         description
           "All unknown TLVs.";
         list unknown-tlv {
           description
             "Unknown TLV.";
           uses tlv;
         }
       }
     }

     /* TLVs and sub-TLVs for prefixes */

     grouping prefix-reachability-attributes {
       description
         "Grouping for extended reachability attributes of an
          IPv4 or IPv6 prefix.";
       leaf external-prefix-flag {
         type boolean;
         description
           "External prefix flag.";
       }
       leaf readvertisement-flag {
         type boolean;
         description
           "Re-advertisement flag.";
       }
       leaf node-flag {
         type boolean;
         description
           "Node flag.";
       }
     }

     grouping prefix-ipv4-source-router-id {
       description
         "Grouping for the IPv4 source router ID of a prefix
          advertisement.";
       leaf ipv4-source-router-id {
         type inet:ipv4-address;
         description
           "IPv4 source router ID address.";
       }
     }

     grouping prefix-ipv6-source-router-id {
       description
         "Grouping for the IPv6 source router ID of a prefix
          advertisement.";
       leaf ipv6-source-router-id {
         type inet:ipv6-address;
         description
           "IPv6 source router ID address.";
       }
     }

     grouping prefix-attributes-extension {
       description
         "Prefix extended attributes as defined in RFC 7794.";
       reference
         "RFC 7794: IS-IS Prefix Attributes for Extended IPv4 and IPv6
          Reachability";
       uses prefix-reachability-attributes;
       uses prefix-ipv4-source-router-id;
       uses prefix-ipv6-source-router-id;
     }

     grouping prefix-ipv4-std {
       description
         "Grouping for attributes of an IPv4 standard prefix
          as defined in RFC 1195.";
       reference
         "RFC 1195: Use of OSI IS-IS for routing in TCP/IP and
          dual environments";
       leaf ip-prefix {
         type inet:ipv4-address;
         description
           "IPv4 prefix address.";
       }
       leaf prefix-len {
         type uint8;
         description
           "IPv4 prefix length (in bits).";
       }
       leaf i-e {
         type boolean;
         description
           "Internal or external (I/E) metric bit value.
            Set to 'false' to indicate an internal metric.";
       }
       container default-metric {
         leaf metric {
           type std-metric;
           description
             "Default IS-IS metric for the IPv4 prefix.";
         }
         description
           "IS-IS default metric container.";
       }
       container delay-metric {
         leaf metric {
           type std-metric;
           description
             "IS-IS delay metric for the IPv4 prefix.";
         }
         leaf supported {
           type boolean;
           default "false";
           description
             "Indicates whether the IS-IS delay metric is supported.";
         }
         description
           "IS-IS delay metric container.";
       }
       container expense-metric {
         leaf metric {
           type std-metric;
           description
             "IS-IS expense metric for the IPv4 prefix.";
         }
         leaf supported {
           type boolean;
           default "false";
           description
             "Indicates whether the IS-IS expense metric is supported.";
         }
         description
           "IS-IS expense metric container.";
       }
       container error-metric {
         leaf metric {
           type std-metric;
           description
             "This leaf describes the IS-IS error metric value.";
         }
         leaf supported {
           type boolean;
           default "false";
           description
             "Indicates whether the IS-IS error metric is supported.";
         }
         description
           "IS-IS error metric container.";
       }
     }

     grouping prefix-ipv4-extended {
       description
         "Grouping for attributes of an IPv4 extended prefix
          as defined in RFC 5305.";
       reference
         "RFC 5305: IS-IS Extensions for Traffic Engineering";
       leaf up-down {
         type boolean;
         description
           "Value of the up/down bit.
            Set to 'true' when the prefix has been advertised down
            the hierarchy.";
       }
       leaf ip-prefix {
         type inet:ipv4-address;
         description
           "IPv4 prefix address.";
       }
       leaf prefix-len {
         type uint8;
         description
           "IPv4 prefix length (in bits).";
       }
       leaf metric {
         type wide-metric;
         description
           "IS-IS wide metric value.";
       }
       leaf-list tag {
         type uint32;
         description
           "List of 32-bit tags associated with the IPv4 prefix.";
       }
       leaf-list tag64 {
         type uint64;
         description
           "List of 64-bit tags associated with the IPv4 prefix.";
       }
       uses prefix-attributes-extension;
     }

     grouping prefix-ipv6-extended {
       description
         "Grouping for attributes of an IPv6 prefix
          as defined in RFC 5308.";
       reference
         "RFC 5308: Routing IPv6 with IS-IS";
       leaf up-down {
         type boolean;
         description
           "Value of the up/down bit.
            Set to 'true' when the prefix has been advertised down
            the hierarchy.";
       }
       leaf ip-prefix {
         type inet:ipv6-address;
         description
           "IPv6 prefix address.";
       }
       leaf prefix-len {
         type uint8;
         description
           "IPv6 prefix length (in bits).";
       }
       leaf metric {
         type wide-metric;
         description
           "IS-IS wide metric value.";
       }
       leaf-list tag {
         type uint32;
         description
           "List of 32-bit tags associated with the IPv6 prefix.";
       }
       leaf-list tag64 {
         type uint64;
         description
           "List of 64-bit tags associated with the IPv6 prefix.";
       }
       uses prefix-attributes-extension;
     }

     /* TLVs and sub-TLVs for neighbors */

     grouping neighbor-link-attributes {
       description
         "Grouping for link attributes as defined
          in RFC 5029.";
       reference
         "RFC 5029: Definition of an IS-IS Link Attribute Sub-TLV";
       leaf link-attributes-flags {
         type uint16;
         description
           "Flags for the link attributes.";
       }
     }

     grouping neighbor-gmpls-extensions {
       description
         "Grouping for GMPLS attributes of a neighbor as defined
          in RFC 5307.";
       reference
         "RFC 5307: IS-IS Extensions in Support of Generalized
          Multi-Protocol Label Switching (GMPLS)";
       leaf link-local-id {
         type uint32;
         description
           "Local identifier of the link.";
       }
       leaf remote-local-id {
         type uint32;
         description
           "Remote identifier of the link.";
       }
       leaf protection-capability {
         type uint8;
         description
           "Describes the protection capabilities
            of the link.  This is the value of the
            first octet of the sub-TLV type 20 value.";
       }
       container interface-switching-capability {
         description
           "Interface switching capabilities of the link.";
         leaf switching-capability {
           type uint8;
           description
             "Switching capability of the link.";
         }
         leaf encoding {
           type uint8;
           description
             "Type of encoding of the LSP being used.";
         }
         container max-lsp-bandwidths {
           description
             "Per-priority maximum LSP bandwidths.";
           list max-lsp-bandwidth {
             leaf priority {
               type uint8 {
                 range "0 .. 7";
               }
               description
                 "Priority from 0 to 7.";
             }
             leaf bandwidth {
               type rt-types:bandwidth-ieee-float32;
               description
                 "Maximum LSP bandwidth.";
             }
             description
               "List of maximum LSP bandwidths for different
                priorities.";
           }
         }
         container tdm-specific {
           when '../switching-capability = 100';
           description
             "Switching-capability-specific information applicable
              when the switching type is Time-Division Multiplexing
              (TDM).";
           leaf minimum-lsp-bandwidth {
             type rt-types:bandwidth-ieee-float32;
             description
               "Minimum LSP bandwidth.";
           }
           leaf indication {
             type uint8;
             description
               "Indicates whether the interface supports Standard
                or Arbitrary SONET/SDH (Synchronous Optical Network /
                Synchronous Digital Hierarchy).";
           }
         }
         container psc-specific {
           when "../switching-capability >= 1 and
                 ../switching-capability <= 4";
           description
             "Switching-capability-specific information applicable
              when the switching type is PSC1, PSC2, PSC3, or PSC4
              ('PSC' stands for 'Packet Switching Capability').";
           leaf minimum-lsp-bandwidth {
             type rt-types:bandwidth-ieee-float32;
             description
               "Minimum LSP bandwidth.";
           }
           leaf mtu {
             type uint16;
             units "bytes";
             description
               "Interface MTU.";
           }
         }
       }
     }

     grouping neighbor-extended-te-extensions {
       description
         "Grouping for TE attributes of a neighbor as defined
          in RFC 8570.";
       reference
         "RFC 8570: IS-IS Traffic Engineering (TE) Metric Extensions";
       container unidirectional-link-delay {
         description
           "Container for the average delay
            from the local neighbor to the remote neighbor.";
         container flags {
           leaf-list unidirectional-link-delay-subtlv-flags {
             type identityref {
               base unidirectional-link-delay-subtlv-flag;
             }
             description
               "This list contains identities for the bits that
                are set.";
           }
           description
             "Unidirectional Link Delay sub-TLV flags.";
         }
         leaf value {
           type uint32;
           units "usec";
           description
             "Delay value expressed in microseconds.";
         }
       }
       container min-max-unidirectional-link-delay {
         description
           "Container for the minimum and maximum delay
            from the local neighbor to the remote neighbor.";
         container flags {
           leaf-list min-max-unidirectional-link-delay-subtlv-flags {
             type identityref {
               base min-max-unidirectional-link-delay-subtlv-flag;
             }
             description
               "This list contains identities for the bits that
                are set.";
           }
           description
             "Min/Max Unidirectional Link Delay sub-TLV flags.";
         }
         leaf min-value {
           type uint32;
           units "usec";
           description
             "Minimum delay value expressed in microseconds.";
         }
         leaf max-value {
           type uint32;
           units "usec";
           description
             "Maximum delay value expressed in microseconds.";
         }
       }
       container unidirectional-link-delay-variation {
         description
           "Container for the average delay variation
            from the local neighbor to the remote neighbor.";
         leaf value {
           type uint32;
           units "usec";
           description
             "Delay variation value expressed in microseconds.";
         }
       }
       container unidirectional-link-loss {
         description
           "Container for packet loss from the local neighbor to the
            remote neighbor.";
         container flags {
           leaf-list unidirectional-link-loss-subtlv-flags {
             type identityref {
               base unidirectional-link-loss-subtlv-flag;
             }
             description
               "This list contains identities for the bits that
                are set.";
           }
           description
             "Unidirectional Link Loss sub-TLV flags.";
         }
         leaf value {
           type uint32;
           units "percent";
           description
             "Link packet loss expressed as a percentage of
              the total traffic sent over a configurable interval.";
         }
       }
       container unidirectional-link-residual-bandwidth {
         description
           "Container for the residual bandwidth
            from the local neighbor to the remote neighbor.";
         leaf value {
           type rt-types:bandwidth-ieee-float32;
           units "Bps";
           description
             "Residual bandwidth.";
         }
       }
       container unidirectional-link-available-bandwidth {
         description
           "Container for the available bandwidth
            from the local neighbor to the remote neighbor.";
         leaf value {
           type rt-types:bandwidth-ieee-float32;
           units "Bps";
           description
             "Available bandwidth.";
         }
       }
       container unidirectional-link-utilized-bandwidth {
         description
           "Container for the utilized bandwidth
            from the local neighbor to the remote neighbor.";
         leaf value {
           type rt-types:bandwidth-ieee-float32;
           units "Bps";
           description
             "Utilized bandwidth.";
         }
       }
     }

     grouping neighbor-te-extensions {
       description
         "Grouping for TE attributes of a neighbor as defined
          in RFC 5305.";
       reference
         "RFC 5305: IS-IS Extensions for Traffic Engineering";
       leaf admin-group {
         type uint32;
         description
           "Administrative Group / Resource Class/Color.";
       }
       container local-if-ipv4-addrs {
         description
           "All local interface IPv4 addresses.";
         leaf-list local-if-ipv4-addr {
           type inet:ipv4-address;
           description
             "List of local interface IPv4 addresses.";
         }
       }
       container remote-if-ipv4-addrs {
         description
           "All remote interface IPv4 addresses.";
         leaf-list remote-if-ipv4-addr {
           type inet:ipv4-address;
           description
             "List of remote interface IPv4 addresses.";
         }
       }
       leaf te-metric {
         type uint32;
         description
           "TE metric.";
       }
       leaf max-bandwidth {
         type rt-types:bandwidth-ieee-float32;
         description
           "Maximum bandwidth.";
       }
       leaf max-reservable-bandwidth {
         type rt-types:bandwidth-ieee-float32;
         description
           "Maximum reservable bandwidth.";
       }
       container unreserved-bandwidths {
         description
           "All unreserved bandwidths.";
         list unreserved-bandwidth {
           leaf priority {
             type uint8 {
               range "0 .. 7";
             }
             description
               "Priority from 0 to 7.";
           }
           leaf unreserved-bandwidth {
             type rt-types:bandwidth-ieee-float32;
             description
               "Unreserved bandwidth.";
           }
           description
             "List of unreserved bandwidths for different
              priorities.";
         }
       }
     }

     grouping neighbor-extended {
       description
         "Grouping for attributes of an IS-IS extended neighbor.";
       leaf neighbor-id {
         type extended-system-id;
         description
           "System ID of the extended neighbor.";
       }
       container instances {
         description
           "List of all adjacencies between the local
            system and the neighbor system ID.";
         list instance {
           key "id";
           leaf id {
             type uint32;
             description
               "Unique identifier of an instance of a
                particular neighbor.";
           }
           leaf metric {
             type wide-metric;
             description
               "IS-IS wide metric for the extended neighbor.";
           }
           uses neighbor-gmpls-extensions;
           uses neighbor-te-extensions;
           uses neighbor-extended-te-extensions;
           uses neighbor-link-attributes;
           uses unknown-tlvs;
           description
             "Instance of a particular adjacency.";
         }
       }
     }

     grouping neighbor {
       description
         "IS-IS standard neighbor grouping.";
       leaf neighbor-id {
         type extended-system-id;
         description
           "IS-IS neighbor system ID.";
       }
       container instances {
         description
           "List of all adjacencies between the local
            system and the neighbor system ID.";
         list instance {
           key "id";
           leaf id {
             type uint32;
             description
               "Unique identifier of an instance of a
                particular neighbor.";
           }
           leaf i-e {
             type boolean;
             description
               "Internal or external (I/E) metric bit value.
                Set to 'false' to indicate an internal metric.";
           }
           container default-metric {
             leaf metric {
               type std-metric;
               description
                 "IS-IS default metric value.";
             }
             description
               "IS-IS default metric container.";
           }
           container delay-metric {
             leaf metric {
               type std-metric;
               description
                 "IS-IS delay metric value.";
             }
             leaf supported {
               type boolean;
               default "false";
               description
                 "IS-IS delay metric supported.";
             }
             description
               "IS-IS delay metric container.";
           }
           container expense-metric {
             leaf metric {
               type std-metric;
               description
                 "IS-IS expense metric value.";
             }
             leaf supported {
               type boolean;
               default "false";
               description
                 "IS-IS expense metric supported.";
             }
             description
               "IS-IS expense metric container.";
           }
           container error-metric {
             leaf metric {
               type std-metric;
               description
                 "IS-IS error metric value.";
             }
             leaf supported {
               type boolean;
               default "false";
               description
                 "IS-IS error metric supported.";
             }
             description
               "IS-IS error metric container.";
           }
           description
             "Instance of a particular adjacency as defined in
              ISO 10589.";
           reference
             "ISO 10589: Intermediate System to Intermediate System
              intra-domain routeing information exchange protocol
              for use in conjunction with the protocol for providing
              the connectionless-mode network service (ISO 8473)";
         }
       }
     }

     /* Top-level TLVs */

     grouping tlv132-ipv4-addresses {
       leaf-list ipv4-addresses {
         type inet:ipv4-address;
         description
           "List of IPv4 addresses of the IS-IS node.  The IS-IS
            reference is TLV 132.";
       }
       description
         "Grouping for TLV 132.";
     }

     grouping tlv232-ipv6-addresses {
       leaf-list ipv6-addresses {
         type inet:ipv6-address;
         description
           "List of IPv6 addresses of the IS-IS node.  The IS-IS
            reference is TLV 232.";
       }
       description
         "Grouping for TLV 232.";
     }

     grouping tlv134-ipv4-te-rid {
       leaf ipv4-te-routerid {
         type inet:ipv4-address;
         description
           "IPv4 Traffic Engineering router ID of the IS-IS node.
            The IS-IS reference is TLV 134.";
       }
       description
         "Grouping for TLV 134.";
     }

     grouping tlv140-ipv6-te-rid {
       leaf ipv6-te-routerid {
         type inet:ipv6-address;
         description
           "IPv6 Traffic Engineering router ID of the IS-IS node.
            The IS-IS reference is TLV 140.";
       }
       description
         "Grouping for TLV 140.";
     }

     grouping tlv129-protocols {
       leaf-list protocol-supported {
         type uint8;
         description
           "List of supported protocols of the IS-IS node.
            The IS-IS reference is TLV 129.";
       }
       description
         "Grouping for TLV 129.";
     }

     grouping tlv137-hostname {
       leaf dynamic-hostname {
         type string;
         description
           "Hostname of the IS-IS node.  The IS-IS reference
            is TLV 137.";
       }
       description
         "Grouping for TLV 137.";
     }

     grouping tlv10-authentication {
       container authentication {
         leaf authentication-type {
           type identityref {
             base key-chain:crypto-algorithm;
           }
           description
             "Authentication type to be used with an IS-IS node.";
         }
         leaf authentication-key {
           type string;
           description
             "Authentication key to be used.  For security reasons,
              the authentication key MUST NOT be presented in
              a cleartext format in response to any request
              (e.g., via get or get-config).";
         }
         description
           "IS-IS node authentication information container.  The
            IS-IS reference is TLV 10.";
       }
       description
         "Grouping for TLV 10.";
     }

     grouping tlv229-mt {
       container mt-entries {
         list topology {
           description
             "List of topologies supported.";
           leaf mt-id {
             type uint16 {
               range "0 .. 4095";
             }
             description
               "Multi-Topology (MT) identifier of the topology.";
           }
           container attributes {
             leaf-list flags {
               type identityref {
                 base tlv229-flag;
               }
               description
                 "This list contains identities for the bits that
                  are set.";
             }
             description
               "TLV 229 flags.";
           }
         }
         description
           "IS-IS node topology information container.  The
            IS-IS reference is TLV 229.";
       }
       description
         "Grouping for TLV 229.";
     }

     grouping tlv242-router-capabilities {
       container router-capabilities {
         list router-capability {
           container flags {
             leaf-list router-capability-flags {
               type identityref {
                 base router-capability-flag;
               }
               description
                 "This list contains identities for the bits that
                  are set.";
             }
             description
               "Router Capability flags.";
           }
           container node-tags {
             if-feature "node-tag";
             list node-tag {
               leaf tag {
                 type uint32;
                 description
                   "Node tag value.";
               }
               description
                 "List of tags.";
             }
             description
               "Container for node administrative tags.";
           }
           uses unknown-tlvs;
           description
             "IS-IS node capabilities.  This list element may
              be extended with detailed information.  The IS-IS
              reference is TLV 242.";
         }
         description
           "List of Router Capability TLVs.";
       }
       description
         "Grouping for TLV 242.";
     }

     grouping tlv138-srlg {
       description
         "Grouping for TLV 138.";
       container links-srlgs {
         list links {
           leaf neighbor-id {
             type extended-system-id;
             description
               "System ID of the extended neighbor.";
           }
           leaf flags {
             type uint8;
             description
               "Flags associated with the link.";
           }
           leaf link-local-id {
             type union {
               type inet:ip-address;
               type uint32;
             }
             description
               "Local identifier of the link.
                It could be an IPv4 address or a local identifier.";
           }
           leaf link-remote-id {
             type union {
               type inet:ip-address;
               type uint32;
             }
             description
               "Remote identifier of the link.
                It could be an IPv4 address or a remotely learned
                identifier.";
           }
           container srlgs {
             description
               "List of SRLGs.";
             leaf-list srlg {
               type uint32;
               description
                 "SRLG value of the link.";
             }
           }
           description
             "SRLG attribute of a link.";
         }
         description
           "List of links with SRLGs.";
       }
     }

     /* Grouping for LSDB descriptions */

     grouping lsp-entry {
       description
         "IS-IS LSP database entry grouping.";
       leaf decoded-completed {
         type boolean;
         description
           "The IS-IS LSP body has been fully decoded.";
       }
       leaf raw-data {
         type yang:hex-string;
         description
           "The hexadecimal representation of the complete LSP
            as received or originated, in network byte order.";
       }
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID of the LSP.";
       }
       leaf checksum {
         type uint16;
         description
           "LSP checksum.";
       }
       leaf remaining-lifetime {
         type uint16;
         units "seconds";
         description
           "Remaining lifetime (in seconds) until LSP expiration.";
       }
       leaf sequence {
         type uint32;
         description
           "This leaf describes the sequence number of the LSP.";
       }
       container attributes {
         leaf-list lsp-flags {
           type identityref {
             base lsp-flag;
           }
           description
             "This list contains identities for the bits that
              are set.";
         }
         description
           "LSP attributes.";
       }
       uses tlv132-ipv4-addresses;
       uses tlv232-ipv6-addresses;
       uses tlv134-ipv4-te-rid;
       uses tlv140-ipv6-te-rid;
       uses tlv129-protocols;
       uses tlv137-hostname;
       uses tlv10-authentication;
       uses tlv229-mt;
       uses tlv242-router-capabilities;
       uses tlv138-srlg;
       uses unknown-tlvs;
       container is-neighbor {
         list neighbor {
           key "neighbor-id";
           uses neighbor;
           description
             "List of neighbors.";
         }
         description
           "Standard IS neighbors container.  The IS-IS reference is
            TLV 2.";
       }
       container extended-is-neighbor {
         list neighbor {
           key "neighbor-id";
           uses neighbor-extended;
           description
             "List of extended IS neighbors.";
         }
         description
           "Standard IS extended neighbors container.  The IS-IS
            reference is TLV 22.";
       }
       container ipv4-internal-reachability {
         list prefixes {
           uses prefix-ipv4-std;
           description
             "List of prefixes.";
         }
         description
           "IPv4 internal reachability information container.
            The IS-IS reference is TLV 128.";
       }
       container ipv4-external-reachability {
         list prefixes {
           uses prefix-ipv4-std;
           description
             "List of prefixes.";
         }
         description
           "IPv4 external reachability information container.  The
            IS-IS reference is TLV 130.";
       }
       container extended-ipv4-reachability {
         list prefixes {
           uses prefix-ipv4-extended;
           uses unknown-tlvs;
           description
             "List of prefixes.";
         }
         description
           "IPv4 extended reachability information container.  The
            IS-IS reference is TLV 135.";
       }
       container mt-is-neighbor {
         list neighbor {
           leaf mt-id {
             type uint16 {
               range "0 .. 4095";
             }
             description
               "Multi-Topology (MT) identifier.";
           }
           uses neighbor-extended;
           description
             "List of neighbors.";
         }
         description
           "IS-IS MT neighbor container.  The IS-IS reference is
            TLV 223.";
       }
       container mt-extended-ipv4-reachability {
         list prefixes {
           leaf mt-id {
             type uint16 {
               range "0 .. 4095";
             }
             description
               "MT identifier.";
           }
           uses prefix-ipv4-extended;
           uses unknown-tlvs;
           description
             "List of extended prefixes.";
         }
         description
           "IPv4 MT extended reachability information container.
            The IS-IS reference is TLV 235.";
         reference
           "RFC 5120: M-ISIS: Multi Topology (MT) Routing in
            Intermediate System to Intermediate Systems (IS-ISs)";
       }
       container mt-ipv6-reachability {
         list prefixes {
           leaf mt-id {
             type uint16 {
               range "0 .. 4095";
             }
             description
               "MT identifier.";
           }
           uses prefix-ipv6-extended;
           uses unknown-tlvs;
           description
             "List of IPv6 extended prefixes.";
         }
         description
           "IPv6 MT extended reachability information container.
            The IS-IS reference is TLV 237.";
         reference
           "RFC 5120: M-ISIS: Multi Topology (MT) Routing in
            Intermediate System to Intermediate Systems (IS-ISs)";
       }
       container ipv6-reachability {
         list prefixes {
           uses prefix-ipv6-extended;
           uses unknown-tlvs;
           description
             "List of IPv6 prefixes.";
         }
         description
           "IPv6 reachability information container.  The IS-IS
            reference is TLV 236.";
       }
     }

     grouping lsdb {
       description
         "Link State Database (LSDB) grouping.";
       container database {
         config false;
         list levels {
           key "level";
           leaf level {
             type level-number;
             description
               "LSDB level number (1 or 2).";
           }
           list lsp {
             key "lsp-id";
             uses lsp-entry;
             description
               "List of LSPs in the LSDB.";
           }
           description
             "List of LSPs for the LSDB-level container.";
         }
         description
           "IS-IS LSDB container.";
       }
     }

     /* Augmentations */

     augment "/rt:routing/"
           + "rt:ribs/rt:rib/rt:routes/rt:route" {
       when "derived-from-or-self(rt:source-protocol, 'isis:isis')" {
         description
           "IS-IS-specific route attributes.";
       }
       uses route-content;
       description
         "This augments the route object in the Routing Information
          Base (RIB) with IS-IS-specific attributes.";
     }

     augment "/if:interfaces/if:interface" {
       leaf clns-mtu {
         if-feature "osi-interface";
         type uint16;
         description
           "Connectionless-mode Network Service (CLNS) MTU of the
            interface.";
       }
       description
         "ISO-specific interface parameters.";
     }

     augment "/rt:routing/rt:control-plane-protocols/"
           + "rt:control-plane-protocol" {
       when "derived-from-or-self(rt:type, 'isis:isis')" {
         description
           "This augmentation is only valid when the routing protocol
            instance type is 'isis'.";
       }
       description
         "This augments a routing protocol instance with IS-IS-specific
          parameters.";
       container isis {
         must 'count(area-address) > 0' {
           error-message "At least one area address must be "
                       + "configured.";
           description
             "Enforces the configuration of at least one area.";
         }
         uses instance-config;
         uses instance-state;
         container topologies {
           if-feature "multi-topology";
           list topology {
             key "name";
             leaf enabled {
               type boolean;
               description
                 "Enables the topology configuration.";
             }
             leaf name {
               type leafref {
                 path "../../../../../../rt:ribs/rt:rib/rt:name";
               }
               description
                 "RIB corresponding to the topology.";
             }
             uses multi-topology-config;
             description
               "List of topologies.";
           }
           description
             "MT container.";
         }
         container interfaces {
           list interface {
             key "name";
             leaf name {
               type if:interface-ref;
               description
                 "Reference to the interface within
                  the routing instance.";
             }
             uses interface-config;
             uses interface-state;
             container topologies {
               if-feature "multi-topology";
               list topology {
                 key "name";
                 leaf name {
                   type leafref {
                     path "../../../../../../../../"
                        + "rt:ribs/rt:rib/rt:name";
                   }
                   description
                     "RIB corresponding to the topology.";
                 }
                 uses multi-topology-interface-config;
                 description
                   "List of interface topologies.";
               }
               description
                 "MT container.";
             }
             description
               "List of IS-IS interfaces.";
           }
           description
             "Configuration container specific to IS-IS interfaces.";
         }
         description
           "IS-IS configuration/state top-level container.";
       }
     }

     /* RPC methods */

     rpc clear-adjacency {
       description
         "This RPC request clears a particular set of IS-IS
          adjacencies.  If the operation fails for an internal
          reason, then the 'error-tag' and 'error-app-tag' should be
          set indicating the reason for the failure.";
       reference
         "RFC 6241: Network Configuration Protocol (NETCONF)";
       input {
         leaf routing-protocol-instance-name {
           type leafref {
             path "/rt:routing/rt:control-plane-protocols/"
                + "rt:control-plane-protocol/rt:name";
           }
           mandatory true;
           description
             "Name of the IS-IS protocol instance whose IS-IS
              adjacency is being cleared.

              If the corresponding IS-IS instance doesn't exist,
              then the operation will fail with an 'error-tag' of
              'data-missing' and an 'error-app-tag' of
              'routing-protocol-instance-not-found'.";
         }
         leaf level {
           type level;
           description
             "IS-IS level of the adjacency to be cleared.  If the
              IS-IS level is 'level-all', level-1 and level-2
              adjacencies would both be cleared.

              If the value provided is different from the value
              authorized in the enum type, then the operation
              SHALL fail with an 'error-tag' of 'data-missing' and
              an 'error-app-tag' of 'bad-isis-level'.";
         }
         leaf interface {
           type if:interface-ref;
           description
             "IS-IS interface name.

              If the corresponding IS-IS interface doesn't exist,
              then the operation SHALL fail with an 'error-tag' of
              'data-missing' and an 'error-app-tag' of
              'isis-interface-not-found'.";
         }
       }
     }

     rpc clear-database {
       description
         "This RPC request clears a particular IS-IS database.
          Additionally, all neighbor adjacencies will be forced to
          the DOWN state and self-originated LSPs will be
          reoriginated.  If the operation fails for an IS-IS
          internal reason, then the 'error-tag' and 'error-app-tag'
          should be set indicating the reason for the failure.";
       input {
         leaf routing-protocol-instance-name {
           type leafref {
             path "/rt:routing/rt:control-plane-protocols/"
                + "rt:control-plane-protocol/rt:name";
           }
           mandatory true;
           description
             "Name of the IS-IS protocol instance whose IS-IS
              database or databases are being cleared.

              If the corresponding IS-IS instance doesn't exist,
              then the operation will fail with an 'error-tag' of
              'data-missing' and an 'error-app-tag' of
              'routing-protocol-instance-not-found'.";
         }
         leaf level {
           type level;
           description
             "IS-IS level of the adjacency to be cleared.  If the
              IS-IS level is 'level-all', the databases for both
              level 1 and level 2 would be cleared.

              If the value provided is different from the value
              authorized in the enum type, then the operation
              SHALL fail with an 'error-tag' of 'data-missing' and
              an 'error-app-tag' of 'bad-isis-level'.";
         }
       }
     }

     /* Notifications */

     notification database-overload {
       uses notification-instance-hdr;
       leaf overload {
         type enumeration {
           enum off {
             description
               "Indicates that the IS-IS instance has left the
                overload state.";
           }
           enum on {
             description
               "Indicates that the IS-IS instance has entered the
                overload state.";
           }
         }
         description
           "New overload state of the IS-IS instance.";
       }
       description
         "This notification is sent when an IS-IS instance
          overload state changes.";
     }

     notification lsp-too-large {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf pdu-size {
         type uint32;
         description
           "Size of the LSP PDU.";
       }
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID.";
       }
       description
         "This notification is sent when an attempt to propagate
          an LSP that is larger than the dataLinkBlockSize (ISO 10589)
          for the circuit occurs.  The generation of the notification
          must be throttled with at least 5 seconds between successive
          notifications.";
       reference
         "ISO 10589: Intermediate System to Intermediate System
          intra-domain routeing information exchange protocol
          for use in conjunction with the protocol for providing
          the connectionless-mode network service (ISO 8473)";
     }

     notification if-state-change {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf state {
         type if-state-type;
         description
           "Interface state.";
       }
       description
         "This notification is sent when an interface
          state change is detected.";
     }

     notification corrupted-lsp-detected {
       uses notification-instance-hdr;
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID.";
       }
       description
         "This notification is sent when an LSP that was stored in
          memory has become corrupted.";
     }

     notification attempt-to-exceed-max-sequence {
       uses notification-instance-hdr;
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID.";
       }
       description
         "This notification is sent when the system
          wraps the 32-bit sequence counter of an LSP.";
     }

     notification id-len-mismatch {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf pdu-field-len {
         type uint8;
         description
           "Value for the system ID length in the received PDU.";
       }
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       description
         "This notification is sent when a PDU with a different value
          for the system ID length is received.  The generation of the
          notification must be throttled with at least 5 seconds
          between successive notifications.";
     }

     notification max-area-addresses-mismatch {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf max-area-addresses {
         type uint8;
         description
           "Received number of supported areas.";
       }
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       description
         "This notification is sent when a PDU with a different value
          for the Maximum Area Addresses has been received.  The
          generation of the notification must be throttled with
          at least 5 seconds between successive notifications.";
     }

     notification own-lsp-purge {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID.";
       }
       description
         "This notification is sent when the system receives
          a PDU with its own system ID and zero age.";
     }

     notification sequence-number-skipped {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID.";
       }
       description
         "This notification is sent when the system receives a
          PDU with its own system ID and different contents.  The
          system has to originate the LSP with a higher sequence
          number.";
     }

     notification authentication-type-failure {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       description
         "This notification is sent when the system receives a
          PDU with the wrong authentication type field.
          The generation of the notification must be throttled
          with at least 5 seconds between successive notifications.";
     }

     notification authentication-failure {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       description
         "This notification is sent when the system receives
          a PDU on which authentication fails.  The generation of the
          notification must be throttled with at least 5 seconds
          between successive notifications.";
     }

     notification version-skew {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf protocol-version {
         type uint8;
         description
           "Protocol version received in the PDU.";
       }
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       description
         "This notification is sent when the system receives a
          PDU with a different protocol version number.
          The generation of the notification must be throttled
          with at least 5 seconds between successive notifications.";
     }

     notification area-mismatch {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       description
         "This notification is sent when the system receives a
          Hello PDU from an IS that does not share any area
          address.  The generation of the notification must be
          throttled with at least 5 seconds between successive
          notifications.";
     }

     notification rejected-adjacency {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       leaf reason {
         type string {
           length "0..255";
         }
         description
           "The system may provide a reason to reject the
            adjacency.  If the reason is not available,
            the reason string will not be returned.
            The expected format is a single line of text.";
       }
       description
         "This notification is sent when the system receives a
          Hello PDU from an IS but does not establish an adjacency
          for some reason.  The generation of the notification
          must be throttled with at least 5 seconds between
          successive notifications.";
     }

     notification protocols-supported-mismatch {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       leaf-list protocols {
         type uint8;
         description
           "List of protocols supported by the remote system.";
       }
       description
         "This notification is sent when the system receives a
          non-pseudonode LSP that has no matching protocols
          supported.  The generation of the notification must be
          throttled with at least 5 seconds between successive
          notifications.";
     }

     notification lsp-error-detected {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID.";
       }
       leaf raw-pdu {
         type binary;
         description
           "Received raw PDU.";
       }
       leaf error-offset {
         type uint32;
         description
           "If the problem is a malformed TLV, the error offset
            points to the start of the TLV.  If the problem is with
            the LSP header, the error offset points to the errant
            byte.";
       }
       leaf tlv-type {
         type uint8;
         description
           "If the problem is a malformed TLV, the TLV type is set
            to the type value of the suspicious TLV.  Otherwise,
            this leaf is not present.";
       }
       description
         "This notification is sent when the system receives an
          LSP with a parse error.  The generation of the notification
          must be throttled with at least 5 seconds between
          successive notifications.";
     }

     notification adjacency-state-change {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf neighbor {
         type string {
           length "1..255";
         }
         description
           "Name of the neighbor.  It corresponds to the hostname
            associated with the system ID of the neighbor in the
            mapping database (RFC 5301).  If the name of the neighbor
            is not available, it is not returned.";
         reference
           "RFC 5301: Dynamic Hostname Exchange Mechanism for IS-IS";
       }
       leaf neighbor-system-id {
         type system-id;
         description
           "Neighbor system ID.";
       }
       leaf state {
         type adj-state-type;
         description
           "New state of the IS-IS adjacency.";
       }
       leaf reason {
         type string {
           length "1..255";
         }
         description
           "If the adjacency is going to the 'down' state, this leaf
            provides a reason for the adjacency going down.  The reason
            is provided as text.  If the adjacency is going to the 'up'
            state, no reason is provided.  The expected format is a
            single line of text.";
       }
       description
         "This notification is sent when an IS-IS adjacency
          moves to the 'up' state or the 'down' state.";
     }

     notification lsp-received {
       uses notification-instance-hdr;
       uses notification-interface-hdr;
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID.";
       }
       leaf sequence {
         type uint32;
         description
           "Sequence number of the received LSP.";
       }
       leaf received-timestamp {
         type yang:timestamp;
         description
           "Timestamp when the LSP was received.";
       }
       leaf neighbor-system-id {
         type system-id;
         description
           "Neighbor system ID of the LSP sender.";
       }
       description
         "This notification is sent when an LSP is received.
          The generation of the notification must be throttled with
          at least 5 seconds between successive notifications.";
     }

     notification lsp-generation {
       uses notification-instance-hdr;
       leaf lsp-id {
         type lsp-id;
         description
           "LSP ID.";
       }
       leaf sequence {
         type uint32;
         description
           "Sequence number of the received LSP.";
       }
       leaf send-timestamp {
         type yang:timestamp;
         description
           "Timestamp when the LSP was regenerated.";
       }
       description
         "This notification is sent when an LSP is regenerated.
          The generation of the notification must be throttled with
          at least 5 seconds between successive notifications.";
     }
   }
   <CODE ENDS>

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.

   There are a number of data nodes defined in this YANG module that are
   writable/creatable/deletable (i.e., config true, which is the
   default).  These 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.  These are the subtrees and data nodes
   and their sensitivity/vulnerability:

      /isis

      /isis/interfaces/interface[name]

   For IS-IS, the ability to modify IS-IS configuration will allow the
   entire IS-IS domain to be compromised, including forming adjacencies
   with unauthorized routers to misroute traffic or mount a massive
   Denial-of-Service (DoS) attack.  For example, adding IS-IS on any
   unprotected interface could allow an IS-IS adjacency to be formed
   with an unauthorized and malicious neighbor.  Once an adjacency is
   formed, traffic could be hijacked.  As a simpler example, a DoS
   attack could be mounted by changing the cost of an IS-IS interface to
   be asymmetric, such that a hard routing loop ensues.  In general,
   unauthorized modification of most IS-IS features will pose its own
   set of security risks; therefore, the Security Considerations
   sections in the respective reference RFCs should be consulted.

   Some of the readable data nodes in this YANG module may be considered
   sensitive or vulnerable in some network environments.  It is thus
   important to control read access (e.g., via get, get-config, or
   notification) to these data nodes.  These are the subtrees and data
   nodes and their sensitivity/vulnerability:

      /isis/database

      /isis/local-rib

   Exposure of the Link State Database (LSDB) will reveal the detailed
   topology of the network.  Similarly, the IS-IS local RIB exposes the
   reachable prefixes in the IS-IS routing domain.  Exposure of the LSDB
   and local RIB may also reveal information beyond the scope of the IS-
   IS router; this may be undesirable, since such exposure may
   facilitate other attacks.  Additionally, the complete IP network
   topology -- and, if deployed, the TE topology of the IS-IS domain --
   can be reconstructed from the LSDB.  Though not as straightforward,
   the IS-IS local RIB can also be exploited to discover topological
   information.  Network operators may consider their topologies to be
   sensitive confidential data.

   For IS-IS authentication, configuration is supported via the
   specification of a key chain [RFC8177] or the direct specification of
   a key and authentication algorithm.  Hence, authentication
   configuration using the "key-chain" case in the "authentication-type"
   container inherits the security considerations of [RFC8177].  This
   includes considerations with respect to the local storage and
   handling of authentication keys.

   Some of the RPC operations in this YANG module may be considered
   sensitive or vulnerable in some network environments.  It is thus
   important to control access to these operations.  These are the
   operations and their sensitivity/vulnerability:

   The IS-IS YANG module supports the "clear-adjacency" and "clear-
   database" RPCs.  If access to either of these is compromised, they
   can be exploited to mount DoS attacks due to the resultant network
   outages.

   The actual authentication key data (whether locally specified or part
   of a key chain) is sensitive and needs to be kept secret from
   unauthorized parties; compromise of the key data would allow an
   attacker to forge IS-IS traffic that would be accepted as authentic,
   potentially compromising the entire IS-IS domain.

   The model describes several notifications.  Implementations must
   rate-limit the generation of these notifications to avoid creating
   significant notification load.  Otherwise, this notification load may
   negatively affect system stability and may be exploited as an attack
   vector.

8.  IANA Considerations

   The IANA has assigned the following URI in the "IETF XML Registry"
   [RFC3688].

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

   This document also adds the following YANG module name in the "YANG
   Module Names" registry [RFC6020]:

   Name:  ietf-isis
   Maintained by IANA?  N
   Namespace:  urn:ietf:params:xml:ns:yang:ietf-isis
   Prefix:  isis
   Reference:  RFC 9130

9.  References

9.1.  Normative References

   [ISO-10589]
              ISO, "Intermediate System to Intermediate System intra-
              domain routeing information exchange protocol for use in
              conjunction with the protocol for providing the
              connectionless-mode network service (ISO 8473)",
              International Standard 10589: 2002, Second Edition, 2002,
              <https://www.iso.org/standard/30932.html>.

   [RFC1195]  Callon, R., "Use of OSI IS-IS for routing in TCP/IP and
              dual environments", RFC 1195, DOI 10.17487/RFC1195,
              December 1990, <https://www.rfc-editor.org/info/rfc1195>.

   [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>.

   [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>.

   [RFC5029]  Vasseur, JP. and S. Previdi, "Definition of an IS-IS Link
              Attribute Sub-TLV", RFC 5029, DOI 10.17487/RFC5029,
              September 2007, <https://www.rfc-editor.org/info/rfc5029>.

   [RFC5120]  Przygienda, T., Shen, N., and N. Sheth, "M-ISIS: Multi
              Topology (MT) Routing in Intermediate System to
              Intermediate Systems (IS-ISs)", RFC 5120,
              DOI 10.17487/RFC5120, February 2008,
              <https://www.rfc-editor.org/info/rfc5120>.

   [RFC5130]  Previdi, S., Shand, M., Ed., and C. Martin, "A Policy
              Control Mechanism in IS-IS Using Administrative Tags",
              RFC 5130, DOI 10.17487/RFC5130, February 2008,
              <https://www.rfc-editor.org/info/rfc5130>.

   [RFC5286]  Atlas, A., Ed. and A. Zinin, Ed., "Basic Specification for
              IP Fast Reroute: Loop-Free Alternates", RFC 5286,
              DOI 10.17487/RFC5286, September 2008,
              <https://www.rfc-editor.org/info/rfc5286>.

   [RFC5301]  McPherson, D. and N. Shen, "Dynamic Hostname Exchange
              Mechanism for IS-IS", RFC 5301, DOI 10.17487/RFC5301,
              October 2008, <https://www.rfc-editor.org/info/rfc5301>.

   [RFC5302]  Li, T., Smit, H., and T. Przygienda, "Domain-Wide Prefix
              Distribution with Two-Level IS-IS", RFC 5302,
              DOI 10.17487/RFC5302, October 2008,
              <https://www.rfc-editor.org/info/rfc5302>.

   [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>.

   [RFC5308]  Hopps, C., "Routing IPv6 with IS-IS", RFC 5308,
              DOI 10.17487/RFC5308, October 2008,
              <https://www.rfc-editor.org/info/rfc5308>.

   [RFC5443]  Jork, M., Atlas, A., and L. Fang, "LDP IGP
              Synchronization", RFC 5443, DOI 10.17487/RFC5443, March
              2009, <https://www.rfc-editor.org/info/rfc5443>.

   [RFC5880]  Katz, D. and D. Ward, "Bidirectional Forwarding Detection
              (BFD)", RFC 5880, DOI 10.17487/RFC5880, June 2010,
              <https://www.rfc-editor.org/info/rfc5880>.

   [RFC5881]  Katz, D. and D. Ward, "Bidirectional Forwarding Detection
              (BFD) for IPv4 and IPv6 (Single Hop)", RFC 5881,
              DOI 10.17487/RFC5881, June 2010,
              <https://www.rfc-editor.org/info/rfc5881>.

   [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>.

   [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>.

   [RFC6232]  Wei, F., Qin, Y., Li, Z., Li, T., and J. Dong, "Purge
              Originator Identification TLV for IS-IS", RFC 6232,
              DOI 10.17487/RFC6232, May 2011,
              <https://www.rfc-editor.org/info/rfc6232>.

   [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>.

   [RFC7490]  Bryant, S., Filsfils, C., Previdi, S., Shand, M., and N.
              So, "Remote Loop-Free Alternate (LFA) Fast Reroute (FRR)",
              RFC 7490, DOI 10.17487/RFC7490, April 2015,
              <https://www.rfc-editor.org/info/rfc7490>.

   [RFC7794]  Ginsberg, L., Ed., Decraene, B., Previdi, S., Xu, X., and
              U. Chunduri, "IS-IS Prefix Attributes for Extended IPv4
              and IPv6 Reachability", RFC 7794, DOI 10.17487/RFC7794,
              March 2016, <https://www.rfc-editor.org/info/rfc7794>.

   [RFC7917]  Sarkar, P., Ed., Gredler, H., Hegde, S., Litkowski, S.,
              and B. Decraene, "Advertising Node Administrative Tags in
              IS-IS", RFC 7917, DOI 10.17487/RFC7917, July 2016,
              <https://www.rfc-editor.org/info/rfc7917>.

   [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>.

   [RFC7981]  Ginsberg, L., Previdi, S., and M. Chen, "IS-IS Extensions
              for Advertising Router Information", RFC 7981,
              DOI 10.17487/RFC7981, October 2016,
              <https://www.rfc-editor.org/info/rfc7981>.

   [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>.

   [RFC8177]  Lindem, A., Ed., Qu, Y., Yeung, D., Chen, I., and J.
              Zhang, "YANG Data Model for Key Chains", RFC 8177,
              DOI 10.17487/RFC8177, June 2017,
              <https://www.rfc-editor.org/info/rfc8177>.

   [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>.

   [RFC8342]  Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K.,
              and R. Wilton, "Network Management Datastore Architecture
              (NMDA)", RFC 8342, DOI 10.17487/RFC8342, March 2018,
              <https://www.rfc-editor.org/info/rfc8342>.

   [RFC8343]  Bjorklund, M., "A YANG Data Model for Interface
              Management", RFC 8343, DOI 10.17487/RFC8343, March 2018,
              <https://www.rfc-editor.org/info/rfc8343>.

   [RFC8349]  Lhotka, L., Lindem, A., and Y. Qu, "A YANG Data Model for
              Routing Management (NMDA Version)", RFC 8349,
              DOI 10.17487/RFC8349, March 2018,
              <https://www.rfc-editor.org/info/rfc8349>.

   [RFC8405]  Decraene, B., Litkowski, S., Gredler, H., Lindem, A.,
              Francois, P., and C. Bowers, "Shortest Path First (SPF)
              Back-Off Delay Algorithm for Link-State IGPs", RFC 8405,
              DOI 10.17487/RFC8405, June 2018,
              <https://www.rfc-editor.org/info/rfc8405>.

   [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>.

   [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>.

   [RFC8706]  Ginsberg, L. and P. Wells, "Restart Signaling for IS-IS",
              RFC 8706, DOI 10.17487/RFC8706, February 2020,
              <https://www.rfc-editor.org/info/rfc8706>.

   [RFC9314]  Jethanandani, M., Ed., Rahman, R., Ed., Zheng, L., Ed.,
              Pallagatti, S., and G. Mirsky, "YANG Data Model for
              Bidirectional Forwarding Detection (BFD)", RFC 9314,
              DOI 10.17487/RFC9314, September 2022,
              <https://www.rfc-editor.org/info/rfc9314>.

   [W3C.REC-xml-20081126]
              Bray, T., Paoli, J., Sperberg-McQueen, M., Maler, E., and
              F. Yergeau, "Extensible Markup Language (XML) 1.0 (Fifth
              Edition)", World Wide Web Consortium Recommendation REC-
              xml-20081126, November 2008,
              <https://www.w3.org/TR/2008/REC-xml-20081126>.

9.2.  Informative References

   [RFC7812]  Atlas, A., Bowers, C., and G. Enyedi, "An Architecture for
              IP/LDP Fast Reroute Using Maximally Redundant Trees (MRT-
              FRR)", RFC 7812, DOI 10.17487/RFC7812, June 2016,
              <https://www.rfc-editor.org/info/rfc7812>.

   [RFC8340]  Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams",
              BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018,
              <https://www.rfc-editor.org/info/rfc8340>.

   [RFC8792]  Watsen, K., Auerswald, E., Farrel, A., and Q. Wu,
              "Handling Long Lines in Content of Internet-Drafts and
              RFCs", RFC 8792, DOI 10.17487/RFC8792, June 2020,
              <https://www.rfc-editor.org/info/rfc8792>.

   [SR-TI-LFA]
              Litkowski, S., Bashandy, A., Filsfils, C., Francois, P.,
              Decraene, B., and D. Voyer, "Topology Independent Fast
              Reroute using Segment Routing", Work in Progress,
              Internet-Draft, draft-ietf-rtgwg-segment-routing-ti-lfa-
              08, 21 January 2022,
              <https://datatracker.ietf.org/doc/html/draft-ietf-rtgwg-
              segment-routing-ti-lfa-08>.

Appendix A.  Example of IS-IS Configuration in XML

   This appendix gives an example of the configuration of an IS-IS
   instance on a device.  The example is written in XML
   [W3C.REC-xml-20081126].

   <?xml version="1.0" encoding="utf-8"?>
   <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
     <routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
         <name>SLI</name>
         <router-id>192.0.2.1</router-id>
         <control-plane-protocols>
           <control-plane-protocol>
             <name>IS-IS-example</name>
             <description/>
             <type>
               <type xmlns:isis="urn:ietf:params:xml:ns:yang:ietf-isis">
               isis:isis
               </type>
             </type>
             <isis xmlns="urn:ietf:params:xml:ns:yang:ietf-isis">
                 <enabled>true</enabled>
                 <level-type>level-2</level-type>
                 <system-id>87FC.FCDF.4432</system-id>
                 <area-address>49.0001</area-address>
                 <mpls>
                   <te-rid>
                     <ipv4-router-id>192.0.2.1</ipv4-router-id>
                   </te-rid>
                 </mpls>
                 <lsp-lifetime>65535</lsp-lifetime>
                 <lsp-refresh>65000</lsp-refresh>
                 <metric-type>
                   <value>wide-only</value>
                 </metric-type>
                 <default-metric>
                   <value>111111</value>
                 </default-metric>
                 <address-families>
                   <address-family-list>
                     <address-family>ipv4</address-family>
                     <enabled>true</enabled>
                   </address-family-list>
                   <address-family-list>
                     <address-family>ipv6</address-family>
                     <enabled>true</enabled>
                   </address-family-list>
                 </address-families>
                 <interfaces>
                   <interface>
                     <name>Loopback0</name>
                     <tag>200</tag>
                     <metric>
                       <value>0</value>
                     </metric>
                     <passive>true</passive>
                   </interface>
                   <interface>
                     <name>Eth1</name>
                     <level-type>level-2</level-type>
                     <interface-type>point-to-point</interface-type>
                     <metric>
                       <value>167890</value>
                     </metric>
                   </interface>
                 </interfaces>
             </isis>
           </control-plane-protocol>
         </control-plane-protocols>
     </routing>
     <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
       <interface>
         <name>Loopback0</name>
         <description/>
         <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
         ianaift:softwareLoopback
         </type>
         <link-up-down-trap-enable>enabled</link-up-down-trap-enable>
         <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
           <address>
             <ip>192.0.2.1</ip>
             <prefix-length>32</prefix-length>
           </address>
         </ipv4>
         <ipv6 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
           <address>
             <ip>2001:db8::1</ip>
             <prefix-length>128</prefix-length>
           </address>
         </ipv6>
       </interface>
       <interface>
         <name>Eth1</name>
         <description/>
         <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
         ianaift:ethernetCsmacd
         </type>
         <link-up-down-trap-enable>enabled</link-up-down-trap-enable>
         <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
           <address>
             <ip>198.51.100.1</ip>
             <prefix-length>30</prefix-length>
           </address>
         </ipv4>
         <ipv6 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
           <address>
             <ip>2001:db8:0:0:ff::1</ip>
             <prefix-length>64</prefix-length>
           </address>
         </ipv6>
       </interface>
     </interfaces>
   </data>

Acknowledgments

   The authors would like to thank Tom Petch, Alvaro Retana, Stewart
   Bryant, Barry Leiba, Benjamin Kaduk, Adam Roach, and Roman Danyliw
   for their review and comments.

Contributors

   The authors would like to thank Kiran Agrahara Sreenivasa, Dean
   Bogdanovic, Yingzhen Qu, Yi Yang, and Jeff Tantsura for their major
   contributions to this document.

Authors' Addresses

   Stephane Litkowski (editor)
   Cisco Systems
   Email: slitkows.ietf@gmail.com


   Derek Yeung
   Arrcus, Inc.
   2077 Gateway Place, Suite 400
   San Jose, CA 95110
   United States of America
   Email: derek@arrcus.com


   Acee Lindem
   Cisco Systems
   301 Midenhall Way
   Cary, NC 27513
   United States of America
   Email: acee@cisco.com


   Jeffrey Zhang
   Juniper Networks
   10 Technology Park Drive
   Westford, MA 01886
   United States of America
   Email: zzhang@juniper.net


   Ladislav Lhotka
   CZ.NIC
   Email: ladislav.lhotka@nic.cz