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
|
Internet Engineering Task Force (IETF) I. Farrer, Ed.
Request for Comments: 9243 Deutsche Telekom AG
Category: Standards Track June 2022
ISSN: 2070-1721
A YANG Data Model for DHCPv6 Configuration
Abstract
This document describes YANG data models for the configuration and
management of Dynamic Host Configuration Protocol for IPv6 (DHCPv6)
(RFC 8415) servers, relays, and clients.
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/rfc9243.
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. Scope
1.2. Extensibility of the DHCPv6 Server YANG Module
1.2.1. DHCPv6 Option Definitions
2. Terminology
2.1. Requirements Language
3. DHCPv6 Tree Diagrams
3.1. DHCPv6 Server Tree Diagram
3.2. DHCPv6 Relay Tree Diagram
3.3. DHCPv6 Client Tree Diagram
4. DHCPv6 YANG Modules
4.1. DHCPv6 Common YANG Module
4.2. DHCPv6 Server YANG Module
4.3. DHCPv6 Relay YANG Module
4.4. DHCPv6 Client YANG Module
5. Security Considerations
6. IANA Considerations
6.1. URI Registration
6.2. YANG Module Name Registration
7. References
7.1. Normative References
7.2. Informative References
Appendix A. Data Tree Examples
A.1. DHCPv6 Server Configuration Examples
A.2. DHCPv6 Relay Configuration Example
A.3. DHCPv6 Client Configuration Example
Appendix B. Example of Augmenting Additional DHCPv6 Option
Definitions
Appendix C. Example Vendor-Specific Server Configuration Module
Appendix D. Example Definition of Class-Selector Configuration
Acknowledgments
Contributors
Author's Address
1. Introduction
DHCPv6 [RFC8415] is used for supplying configuration and other
relevant parameters to clients in IPv6 networks. This document
defines YANG [RFC7950] modules for the configuration and management
of DHCPv6 'elements' (servers, relays, and clients), using the
Network Configuration Protocol (NETCONF) [RFC6241] or RESTCONF
[RFC8040].
Separate modules are defined for each element. Additionally, a
'common' module contains typedefs and groupings used by all of the
element modules. Appendix A provides XML examples for each of the
element modules and shows their interaction.
The relay and client modules provide configuration that is applicable
to devices' interfaces. This is done by importing the 'ietf-
interfaces' YANG module [RFC8343] and using interface-refs to the
relevant interface(s).
It is worth noting that as DHCPv6 is itself a client configuration
protocol, it is not the intention of this document to provide a
replacement for the allocation of DHCPv6-assigned addressing and
parameters by using NETCONF/YANG. The DHCPv6 client module is
intended for the configuration and monitoring of the DHCPv6 client
function and does not replace DHCPv6 address and parameter
configuration.
The YANG modules in this document adopt the Network Management
Datastore Architecture (NMDA) [RFC8342].
1.1. Scope
[RFC8415] describes the current version of the DHCPv6 base protocol
specification. A large number of additional specifications have also
been published, extending DHCPv6 element functionality and adding new
options. The YANG modules contained in this document do not attempt
to capture all of these extensions and additions; rather, they model
the DHCPv6 functions and options covered in [RFC8415]. A focus has
also been given on the extensibility of the modules so that they are
easy to augment to add additional functionality as required by a
particular implementation or deployment scenario.
1.2. Extensibility of the DHCPv6 Server YANG Module
The modules in this document only attempt to model DHCPv6-specific
behavior and do not cover the configuration and management of
functionality relevant for specific server implementations. The
level of variance between implementations is too great to attempt to
standardize them in a way that is useful without being restrictive.
However, it is recognized that implementation-specific configuration
and management is also an essential part of DHCP deployment and
operations. To resolve this, Appendix C contains an example YANG
module for the configuration of implementation-specific functions,
illustrating how this functionality can be augmented into the main
'ietf-dhcpv6-server.yang' module.
In DHCPv6, the concept of 'class selection' for messages received by
the server is common. This is the identification and classification
of messages based on a number of parameters so that the correct
provisioning information can be supplied, for example, by allocating
a prefix from the correct pool or supplying a set of options relevant
for a specific vendor's client implementation. During the
development of this document, implementations were researched and the
findings were that while this function is common to all, the method
for configuring and implementing this function differs greatly.
Therefore, configuration of the class selection function has been
omitted from the DHCPv6 server module to allow implementors to define
their own suitable YANG modules. Appendix D provides an example of
this, which demonstrates how this can be integrated with the main
'ietf-dhcpv6-server.yang' module.
1.2.1. DHCPv6 Option Definitions
A large number of DHCPv6 options have been created in addition to
those defined in [RFC8415]. As implementations differ widely as to
which DHCPv6 options they support, the following approach has been
taken to defining options: only the DHCPv6 options defined in
[RFC8415] are included in this document.
Of these, only the options that require operator configuration are
modeled. For example, OPTION_IA_NA (3) is created by the DHCP server
when requested by the client. The contents of the fields in the
option are based on a number of input configuration parameters that
the server will apply when it receives the request (e.g., the T1/T2
timers that are relevant for the pool of addresses). As a result,
there are no fields that are directly configurable for the option, so
it is not modeled.
The following table shows the DHCPv6 options that are modeled, the
element(s) they are modeled for, and the relevant YANG module names:
+=====================+======+=====+======+=========================+
|Name |Server|Relay|Client| Module Name |
+=====================+======+=====+======+=========================+
|OPTION_ORO (6) Option| | | X | ietf-dhcpv6-client.yang |
|Request Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_PREFERENCE (7)| X | | | ietf-dhcpv6-server.yang |
|Preference Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_AUTH (11) | X | X | | ietf-dhcpv6-common.yang |
|Authentication Option| | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_UNICAST (12) | X | | | ietf-dhcpv6-server.yang |
|Server Unicast Option| | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_RAPID_COMMIT | X | | X | ietf-dhcpv6-common.yang |
|(14) Rapid Commit | | | | |
|Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_USER_CLASS | | | X | ietf-dhcpv6-client.yang |
|(15) User Class | | | | |
|Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_VENDOR_CLASS | | | X | ietf-dhcpv6-client.yang |
|(16) Vendor Class | | | | |
|Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_VENDOR_OPTS | X | | X | ietf-dhcpv6-common.yang |
|(17) Vendor-specific | | | | |
|Information Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_INTERFACE_ID | | X | | ietf-dhcpv6-relay.yang |
|(18) Interface-Id | | | | |
|Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_RECONF_MSG | X | | | ietf-dhcpv6-server.yang |
|(19) Reconfigure | | | | |
|Message Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_RECONF_ACCEPT | X | | X | ietf-dhcpv6-client.yang |
|(20) Reconfigure | | | | |
|Accept Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_INFORMATION | X | | | ietf-dhcpv6-server.yang |
|_REFRESH_TIME (32) | | | | |
|Information Refresh | | | | |
|Time Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_SOL_MAX_RT | X | | | ietf-dhcpv6-server.yang |
|(82) sol max rt | | | | |
|Option | | | | |
+---------------------+------+-----+------+-------------------------+
|OPTION_INF_MAX_RT | X | | | ietf-dhcpv6-server.yang |
|(83) inf max rt | | | | |
|Option | | | | |
+---------------------+------+-----+------+-------------------------+
Table 1: Modeled DHCPv6 Options
Further option definitions can be added using additional YANG modules
via augmentation of the relevant element modules from this document.
Appendix B contains an example module showing how the DHCPv6 option
definitions can be extended in this manner. Some guidance on how to
write YANG modules for additional DHCPv6 options is also provided.
2. Terminology
The reader should be familiar with the YANG data modeling language
defined in [RFC7950].
The YANG modules in this document adopt NMDA [RFC8342]. The meanings
of the symbols used in tree diagrams are defined in [RFC8340].
The reader should be familiar with DHCPv6-relevant terminology
defined in [RFC8415] and other relevant documents.
2.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.
3. DHCPv6 Tree Diagrams
3.1. DHCPv6 Server Tree Diagram
The tree diagram in Figure 1 provides an overview of the DHCPv6
server module. The tree also includes the common functions module
defined in Section 4.1.
module: ietf-dhcpv6-server
+--rw dhcpv6-server
+--rw enabled? boolean
+--rw server-duid? dhc6:duid
+--rw vendor-config
+--rw option-sets
| +--rw option-set* [option-set-id]
| +--rw option-set-id string
| +--rw description? string
| +--rw preference-option
| | +--rw pref-value? uint8
| +--rw auth-option
| | +--rw algorithm? uint8
| | +--rw rdm? uint8
| | +--rw replay-detection? uint64
| | +--rw (protocol)?
| | +--:(conf-token)
| | | +--rw token-auth-information? binary
| | +--:(rkap)
| | +--rw datatype? uint8
| | +--rw auth-info-value? binary
| +--rw server-unicast-option
| | +--rw server-address? inet:ipv6-address
| +--rw rapid-commit-option!
| +--rw vendor-specific-information-options
| | +--rw vendor-specific-information-option*
| | [enterprise-number]
| | +--rw enterprise-number uint32
| | +--rw vendor-option-data* [sub-option-code]
| | +--rw sub-option-code uint16
| | +--rw sub-option-data? binary
| +--rw reconfigure-message-option
| | +--rw msg-type? uint8
| +--rw reconfigure-accept-option!
| +--rw info-refresh-time-option
| | +--rw info-refresh-time? dhc6:timer-seconds32
| +--rw sol-max-rt-option
| | +--rw sol-max-rt-value? dhc6:timer-seconds32
| +--rw inf-max-rt-option
| +--rw inf-max-rt-value? dhc6:timer-seconds32
+--rw class-selector
+--rw allocation-ranges
+--rw option-set-id* leafref
+--rw valid-lifetime? dhc6:timer-seconds32
+--rw renew-time? dhc6:timer-seconds32
+--rw rebind-time? dhc6:timer-seconds32
+--rw preferred-lifetime? dhc6:timer-seconds32
+--rw rapid-commit? boolean
+--rw allocation-range* [id]
| +--rw id string
| +--rw description? string
| +--rw network-prefix inet:ipv6-prefix
| +--rw option-set-id* leafref
| +--rw valid-lifetime? dhc6:timer-seconds32
| +--rw renew-time? dhc6:timer-seconds32
| +--rw rebind-time? dhc6:timer-seconds32
| +--rw preferred-lifetime? dhc6:timer-seconds32
| +--rw rapid-commit? boolean
| +--rw address-pools {na-assignment}?
| | +--rw address-pool* [pool-id]
| | +--rw pool-id string
| | +--rw pool-prefix
| | | inet:ipv6-prefix
| | +--rw start-address
| | | inet:ipv6-address-no-zone
| | +--rw end-address
| | | inet:ipv6-address-no-zone
| | +--rw max-address-utilization? dhc6:threshold
| | +--rw option-set-id* leafref
| | +--rw valid-lifetime?
| | | dhc6:timer-seconds32
| | +--rw renew-time?
| | | dhc6:timer-seconds32
| | +--rw rebind-time?
| | | dhc6:timer-seconds32
| | +--rw preferred-lifetime?
| | | dhc6:timer-seconds32
| | +--rw rapid-commit? boolean
| | +--rw host-reservations
| | | +--rw host-reservation* [reserved-addr]
| | | +--rw client-duid? dhc6:duid
| | | +--rw reserved-addr
| | | | inet:ipv6-address
| | | +--rw option-set-id* leafref
| | | +--rw valid-lifetime?
| | | | dhc6:timer-seconds32
| | | +--rw renew-time?
| | | | dhc6:timer-seconds32
| | | +--rw rebind-time?
| | | | dhc6:timer-seconds32
| | | +--rw preferred-lifetime?
| | | | dhc6:timer-seconds32
| | | +--rw rapid-commit? boolean
| | +--ro active-leases
| | +--ro total-count uint64
| | +--ro allocated-count uint64
| | +--ro active-lease* [leased-address]
| | +--ro leased-address
| | | inet:ipv6-address
| | +--ro client-duid? dhc6:duid
| | +--ro ia-id uint32
| | +--ro allocation-time?
| | | yang:date-and-time
| | +--ro last-renew-rebind?
| | | yang:date-and-time
| | +--ro preferred-lifetime?
| | | dhc6:timer-seconds32
| | +--ro valid-lifetime?
| | | dhc6:timer-seconds32
| | +--ro lease-t1?
| | | dhc6:timer-seconds32
| | +--ro lease-t2?
| | | dhc6:timer-seconds32
| | +--ro status
| | +--ro code? uint16
| | +--ro message? string
| +--rw prefix-pools {prefix-delegation}?
| +--rw prefix-pool* [pool-id]
| +--rw pool-id string
| +--rw pool-prefix
| | inet:ipv6-prefix
| +--rw client-prefix-length uint8
| +--rw max-pd-space-utilization? dhc6:threshold
| +--rw option-set-id* leafref
| +--rw valid-lifetime?
| | dhc6:timer-seconds32
| +--rw renew-time?
| | dhc6:timer-seconds32
| +--rw rebind-time?
| | dhc6:timer-seconds32
| +--rw preferred-lifetime?
| | dhc6:timer-seconds32
| +--rw rapid-commit? boolean
| +--rw host-reservations
| | +--rw prefix-reservation* [reserved-prefix]
| | | +--rw client-duid? dhc6:duid
| | | +--rw reserved-prefix
| | | | inet:ipv6-prefix
| | | +--rw reserved-prefix-len? uint8
| | +--rw option-set-id* leafref
| | +--rw valid-lifetime?
| | | dhc6:timer-seconds32
| | +--rw renew-time?
| | | dhc6:timer-seconds32
| | +--rw rebind-time?
| | | dhc6:timer-seconds32
| | +--rw preferred-lifetime?
| | | dhc6:timer-seconds32
| | +--rw rapid-commit? boolean
| +--ro active-leases
| +--ro total-count uint64
| +--ro allocated-count uint64
| +--ro active-lease* [leased-prefix]
| +--ro leased-prefix
| | inet:ipv6-prefix
| +--ro client-duid? dhc6:duid
| +--ro ia-id uint32
| +--ro allocation-time?
| | yang:date-and-time
| +--ro last-renew-rebind?
| | yang:date-and-time
| +--ro preferred-lifetime?
| | dhc6:timer-seconds32
| +--ro valid-lifetime?
| | dhc6:timer-seconds32
| +--ro lease-t1?
| | dhc6:timer-seconds32
| +--ro lease-t2?
| | dhc6:timer-seconds32
| +--ro status
| +--ro code? uint16
| +--ro message? string
+--rw statistics
+--rw discontinuity-time? yang:date-and-time
+--ro solicit-count? yang:counter32
+--ro advertise-count? yang:counter32
+--ro request-count? yang:counter32
+--ro confirm-count? yang:counter32
+--ro renew-count? yang:counter32
+--ro rebind-count? yang:counter32
+--ro reply-count? yang:counter32
+--ro release-count? yang:counter32
+--ro decline-count? yang:counter32
+--ro reconfigure-count? yang:counter32
+--ro information-request-count? yang:counter32
+--ro discarded-message-count? yang:counter32
rpcs:
+---x delete-address-lease {na-assignment}?
| +---w input
| | +---w lease-address-to-delete leafref
| +--ro output
| +--ro return-message? string
+---x delete-prefix-lease {prefix-delegation}?
+---w input
| +---w lease-prefix-to-delete leafref
+--ro output
+--ro return-message? string
notifications:
+---n address-pool-utilization-threshold-exceeded
| {na-assignment}?
| +--ro pool-id leafref
| +--ro total-pool-addresses uint64
| +--ro max-allocated-addresses uint64
| +--ro allocated-address-count uint64
+---n prefix-pool-utilization-threshold-exceeded
| {prefix-delegation}?
| +--ro pool-id leafref
| +--ro total-pool-prefixes uint64
| +--ro max-allocated-prefixes uint64
| +--ro allocated-prefixes-count uint64
+---n invalid-client-detected
| +--ro message-type? enumeration
| +--ro duid? dhc6:duid
| +--ro description? string
+---n decline-received {na-assignment}?
| +--ro duid? dhc6:duid
| +--ro declined-resources* []
| +--ro (resource-type)?
| +--:(declined-address)
| | +--ro address? inet:ipv6-address
| +--:(declined-prefix)
| +--ro prefix? inet:ipv6-prefix
+---n non-success-code-sent
+--ro duid? dhc6:duid
+--ro status
+--ro code? uint16
+--ro message? string
Figure 1: DHCPv6 Server Data Module Structure
Descriptions of important nodes:
enabled: This enables/disables the function of the DHCPv6 server.
dhcpv6-server: This container holds the server's DHCPv6-specific
configuration.
server-duid: Each server must have a DHCP Unique Identifier
(DUID) to identify itself to clients. A DUID consists of a
2-octet type field and an arbitrary length (of no more than 128
octets) content field. Currently, there are four DUID types
defined in [RFC8415] and [RFC6355]. The DUID may be configured
using the format for one of these types or using the
'unstructured' format. The DUID type definitions are imported
from the 'ietf-dhcpv6-common.yang' module.
[IANA-HARDWARE-TYPES] and [IANA-PEN] are referenced for the
relevant DUID types.
vendor-config: This container is provided as a location for
additional implementation-specific YANG nodes for the
configuration of the device to be augmented. See Appendix C
for an example of such a module.
option-sets: The server can be configured with multiple option-
sets. These are groups of DHCPv6 options with common
parameters that may be supplied to clients on request. The
'option-set-id' field is used to reference an option-set
elsewhere in the server's configuration.
option-set: This holds configuration parameters for DHCPv6
options. The initial set of applicable option definitions are
defined here, and additional options that are also relevant to
the relay and/or client are imported from the 'ietf-
dhcpv6-common' module. Where needed, other DHCPv6 option
modules can be augmented as they are defined. The complete
list of DHCPV6 options is located at
[IANA-DHCPV6-OPTION-CODES].
class-selector: This is provided as a location for additional
implementation-specific YANG nodes for vendor-specific class
selector nodes to be augmented. See Appendix D for an example
of this.
allocation-ranges: A hierarchical model is used for the
allocation of addresses and prefixes. The top-level
'allocation-ranges' container holds global configuration
parameters. Under this, the 'allocation-range' list is used
for specifying IPv6 prefixes and additional prefix-specific
parameters.
address-pools: This is used for Identity Association for Non-
temporary Addresses (IA_NA) and Identity Association for
Temporary Addresses (IA_TA) pool allocations with a container
for defining host reservations. State information about active
leases from each pool is also located here.
prefix-pools: This defines pools to be used for prefix delegation
to clients. Static host reservations can also be configured.
As prefix delegation is not supported by all DHCPv6 server
implementations, it is enabled by a feature statement.
Information about RPCs:
delete-address-lease: This allows the deletion of a lease for an
individual IPv6 address from the server's lease database. Per
[BCP18], if available, a language identifier should be included
in the output message.
delete-prefix-lease: This allows the deletion of a lease for an
individual IPv6 prefix from the server's lease database. Per
[BCP18], if available, a language identifier should be included
in the output message.
Information about notifications:
address/prefix-pool-utilization-threshold-exceeded: This is
raised when the number of leased addresses or prefixes in a
pool exceeds the configured usage threshold.
invalid-client-detected: This is raised when the server detects
an invalid client. A description of the error and message type
that has generated the notification can be included.
decline-received: This is raised when a DHCPv6 Decline message is
received from a client.
non-success-code-sent: This is raised when there is a status
message for a failure. Status codes are drawn from
[IANA-DHCPV6-STATUS-CODES].
3.2. DHCPv6 Relay Tree Diagram
The tree diagram in Figure 2 provides an overview of the DHCPv6 relay
module. The tree also includes the common functions module defined
in Section 4.1.
The RPCs in the module are taken from requirements defined in
[RFC8987].
module: ietf-dhcpv6-relay
+--rw dhcpv6-relay
+--rw enabled? boolean
+--rw relay-if* [if-name]
| +--rw if-name if:interface-ref
| +--rw enabled? boolean
| +--rw destination-address* inet:ipv6-address
| +--rw link-address? inet:ipv6-address
| +--rw relay-options
| | +--rw auth-option
| | | +--rw algorithm? uint8
| | | +--rw rdm? uint8
| | | +--rw replay-detection? uint64
| | | +--rw (protocol)?
| | | +--:(conf-token)
| | | | +--rw token-auth-information? binary
| | | +--:(rkap)
| | | +--rw datatype? uint8
| | | +--rw auth-info-value? binary
| | +--rw interface-id-option
| | +--rw interface-id? binary
| +--rw statistics
| | +--rw discontinuity-time?
| | | yang:date-and-time
| | +--ro solicit-received-count?
| | | yang:counter32
| | +--ro advertise-sent-count?
| | | yang:counter32
| | +--ro request-received-count?
| | | yang:counter32
| | +--ro confirm-received-count?
| | | yang:counter32
| | +--ro renew-received-count?
| | | yang:counter32
| | +--ro rebind-received-count?
| | | yang:counter32
| | +--ro reply-sent-count?
| | | yang:counter32
| | +--ro release-received-count?
| | | yang:counter32
| | +--ro decline-received-count?
| | | yang:counter32
| | +--ro reconfigure-sent-count?
| | | yang:counter32
| | +--ro information-request-received-count?
| | | yang:counter32
| | +--ro unknown-message-received-count?
| | | yang:counter32
| | +--ro unknown-message-sent-count?
| | | yang:counter32
| | +--ro discarded-message-count?
| | yang:counter32
| +--rw prefix-delegation! {prefix-delegation}?
| +--ro pd-leases* [ia-pd-prefix]
| +--ro ia-pd-prefix inet:ipv6-prefix
| +--ro last-renew? yang:date-and-time
| +--ro client-peer-address? inet:ipv6-address
| +--ro client-duid? dhc6:duid
| +--ro server-duid? dhc6:duid
+--rw statistics
+--ro relay-forward-sent-count?
| yang:counter32
+--ro relay-forward-received-count?
| yang:counter32
+--ro relay-reply-received-count?
| yang:counter32
+--ro relay-forward-unknown-sent-count?
| yang:counter32
+--ro relay-forward-unknown-received-count?
| yang:counter32
+--ro discarded-message-count?
yang:counter32
rpcs:
+---x clear-prefix-entry {prefix-delegation}?
| +---w input
| | +---w lease-prefix leafref
| +--ro output
| +--ro return-message? string
+---x clear-client-prefixes {prefix-delegation}?
| +---w input
| | +---w client-duid dhc6:duid
| +--ro output
| +--ro return-message? string
+---x clear-interface-prefixes {prefix-delegation}?
+---w input
| +---w interface -> /dhcpv6-relay/relay-if/if-name
+--ro output
+--ro return-message? string
notifications:
+---n relay-event
+--ro topology-change
+--ro relay-if-name?
| -> /dhcpv6-relay/relay-if/if-name
+--ro last-ipv6-addr? inet:ipv6-address
Figure 2: DHCPv6 Relay Data Module Structure
Descriptions of important nodes:
enabled: This globally enables/disables all DHCPv6 relay
functions.
dhcpv6-relay: This container holds the relay's DHCPv6-specific
configuration.
relay-if: As a relay may have multiple client-facing interfaces,
they are configured in a list. The 'if-name' leaf is the key
and is an interface-ref to the applicable interface defined by
the 'ietf-interfaces' YANG module.
enabled: This enables/disables all DHCPv6 relay functions for the
specific interface.
destination-addresses: This defines a list of IPv6 addresses that
client messages will be relayed to, which may include unicast
or multicast addresses.
link-address: This configures the value that the relay will put
into the link-address field of Relay-Forward messages.
prefix-delegation: As prefix delegation is not supported by all
DHCPv6 relay implementations, it is enabled by this feature
statement where required.
pd-leases: This contains read-only nodes for holding information
about active delegated prefix leases.
relay-options: This holds configuration parameters for DHCPv6
options that can be sent by the relay. The initial set of
applicable option definitions are defined here, and additional
options that are also relevant to the server and/or client are
imported from the 'ietf-dhcpv6-common' module. Information for
the Authentication Option (OPTION_AUTH (11)) is drawn from
[IANA-DHCPV6-AUTH-NAMESPACES] and [RFC3118]. Where needed,
other DHCPv6 option modules can be augmented as they are
defined. The complete list of DHCPV6 options is located at
[IANA-DHCPV6-OPTION-CODES].
Information about RPCs:
clear-prefix-entry: This allows the removal of a delegated lease
entry from the relay. Per [BCP18], if available, a language
identifier should be included in the output message.
clear-client-prefixes: This allows the removal of all of the
delegated lease entries for a single client (referenced by
client DUID) from the relay. Per [BCP18], if available, a
language identifier should be included in the output message.
clear-interface-prefixes: This allows the removal of all of the
delegated lease entries from an interface on the relay. Per
[BCP18], if available, a language identifier should be included
in the output message.
Information about notifications:
topology-change: This is raised when the topology of the relay
agent is changed, e.g., a client-facing interface is
reconfigured.
3.3. DHCPv6 Client Tree Diagram
The tree diagram in Figure 3 provides an overview of the DHCPv6
client module. The tree also includes the common functions module
defined in Section 4.1.
module: ietf-dhcpv6-client
+--rw dhcpv6-client
+--rw enabled? boolean
+--rw client-if* [if-name]
+--rw if-name if:interface-ref
+--rw enabled? boolean
+--rw interface-duid? dhc6:duid
| {(non-temp-addr or prefix-delegation or temp-addr)
and anon-profile}?
+--rw client-configured-options
| +--rw option-request-option
| | +--rw oro-option* uint16
| +--rw rapid-commit-option!
| +--rw user-class-option!
| | +--rw user-class-data-instance*
| | [user-class-data-id]
| | +--rw user-class-data-id uint8
| | +--rw user-class-data? binary
| +--rw vendor-class-option
| | +--rw vendor-class-option-instances*
| | [enterprise-number]
| | +--rw enterprise-number uint32
| | +--rw vendor-class-data-element*
| | [vendor-class-data-id]
| | +--rw vendor-class-data-id uint8
| | +--rw vendor-class-data? binary
| +--rw vendor-specific-information-options
| | +--rw vendor-specific-information-option*
| | [enterprise-number]
| | +--rw enterprise-number uint32
| | +--rw vendor-option-data* [sub-option-code]
| | +--rw sub-option-code uint16
| | +--rw sub-option-data? binary
| +--rw reconfigure-accept-option!
+--rw ia-na* [ia-id] {non-temp-addr}?
| +--rw ia-id uint32
| +--rw ia-na-options
| +--ro lease-state
| +--ro ia-na-address? inet:ipv6-address
| +--ro lease-t1? dhc6:timer-seconds32
| +--ro lease-t2? dhc6:timer-seconds32
| +--ro preferred-lifetime? dhc6:timer-seconds32
| +--ro valid-lifetime? dhc6:timer-seconds32
| +--ro allocation-time? yang:date-and-time
| +--ro last-renew-rebind? yang:date-and-time
| +--ro server-duid? dhc6:duid
| +--ro status
| +--ro code? uint16
| +--ro message? string
+--rw ia-ta* [ia-id] {temp-addr}?
| +--rw ia-id uint32
| +--rw ia-ta-options
| +--ro lease-state
| +--ro ia-ta-address? inet:ipv6-address
| +--ro preferred-lifetime? dhc6:timer-seconds32
| +--ro valid-lifetime? dhc6:timer-seconds32
| +--ro allocation-time? yang:date-and-time
| +--ro last-renew-rebind? yang:date-and-time
| +--ro server-duid? dhc6:duid
| +--ro status
| +--ro code? uint16
| +--ro message? string
+--rw ia-pd* [ia-id] {prefix-delegation}?
| +--rw ia-id uint32
| +--rw prefix-length-hint? uint8
| +--rw ia-pd-options
| +--ro lease-state
| +--ro ia-pd-prefix? inet:ipv6-prefix
| +--ro lease-t1? dhc6:timer-seconds32
| +--ro lease-t2? dhc6:timer-seconds32
| +--ro preferred-lifetime? dhc6:timer-seconds32
| +--ro valid-lifetime? dhc6:timer-seconds32
| +--ro allocation-time? yang:date-and-time
| +--ro last-renew-rebind? yang:date-and-time
| +--ro server-duid? dhc6:duid
| +--ro status
| +--ro code? uint16
| +--ro message? string
+--rw statistics
+--rw discontinuity-time? yang:date-and-time
+--ro solicit-count? yang:counter32
+--ro advertise-count? yang:counter32
+--ro request-count? yang:counter32
+--ro confirm-count? yang:counter32
+--ro renew-count? yang:counter32
+--ro rebind-count? yang:counter32
+--ro reply-count? yang:counter32
+--ro release-count? yang:counter32
+--ro decline-count? yang:counter32
+--ro reconfigure-count? yang:counter32
+--ro information-request-count? yang:counter32
+--ro discarded-message-count? yang:counter32
notifications:
+---n invalid-ia-address-detected
| {non-temp-addr or temp-addr}?
| +--ro ia-id uint32
| +--ro ia-na-t1-timer? uint32
| +--ro ia-na-t2-timer? uint32
| +--ro invalid-address? inet:ipv6-address
| +--ro preferred-lifetime? uint32
| +--ro valid-lifetime? uint32
| +--ro ia-options? binary
| +--ro description? string
+---n transmission-failed
| +--ro failure-type enumeration
| +--ro description? string
+---n unsuccessful-status-code
| +--ro server-duid dhc6:duid
| +--ro status
| +--ro code? uint16
| +--ro message? string
+---n server-duid-changed
{non-temp-addr or prefix-delegation or temp-addr}?
+--ro new-server-duid dhc6:duid
+--ro previous-server-duid dhc6:duid
+--ro lease-ia-na?
| -> /dhcpv6-client/client-if/ia-na/ia-id
| {non-temp-addr}?
+--ro lease-ia-ta?
| -> /dhcpv6-client/client-if/ia-ta/ia-id
| {temp-addr}?
+--ro lease-ia-pd?
-> /dhcpv6-client/client-if/ia-pd/ia-id
{prefix-delegation}?
Figure 3: DHCPv6 Client Data Module Structure
Descriptions of important nodes:
enabled: This globally enables/disables all DHCPv6 client
functions.
dhcpv6-client: This container holds the client's DHCPv6-specific
configuration.
client-if: As a client may have multiple interfaces requesting
configuration over DHCP, they are configured in a list. The
'if-name' leaf is the key and is an interface-ref to the
applicable interface defined by the 'ietf-interfaces' YANG
module.
enabled: This enables/disables all DHCPv6 client function for the
specific interface.
client-duid/interface-duid: The DUID is used to identify the
client to servers and relays. A DUID consists of a 2-octet
type field and an arbitrary length (1-128 octets) content
field. Currently, there are four DUID types defined in
[RFC8415] and [RFC6355]. The DUID may be configured using the
format for one of these types or using the 'unstructured'
format. The DUID type definitions are imported from the 'ietf-
dhcpv6-common.yang' module. [IANA-HARDWARE-TYPES] and
[IANA-PEN] are referenced for the relevant DUID types. A DUID
only needs to be configured if the client is requesting
addresses and/or prefixes from the server. Presence of the
'client-duid' or 'interface-duid' leaves is conditional on at
least one of the 'non-temp-addr', 'temp-addr', or 'prefix-
delegation' features being enabled. Additionally, if the
'anon-profile' [RFC7844] feature is enabled, a unique DUID can
be configured per a DHCP-enabled interface using the
'interface-duid' leaf; otherwise, there is a global 'client-
duid' leaf.
client-configured-options: This holds configuration parameters
for DHCPv6 options that can be sent by the client. The initial
set of applicable option definitions are defined here, and
additional options that are also relevant to the relay and/or
server are imported from the 'ietf-dhcpv6-common' module.
Where needed, other DHCPv6 option modules can be augmented as
they are defined. The complete list of DHCPV6 options is
located at [IANA-DHCPV6-OPTION-CODES].
ia-na, ia-ta, ia-pd: These contain configuration nodes relevant
for requesting one or more of each of the lease types. Read-
only nodes related to the active leases for each type are also
located here, drawing the status codes from
[IANA-DHCPV6-STATUS-CODES]. As these lease types may not be
supported by all DHCPv6 client implementations, they are
enabled via individual feature statements. Stateless DHCP
(Section 6.1 of [RFC8415]) is configured when all address and
prefix features are disabled.
Information about notifications:
invalid-ia-detected: This is raised when the identity association
of the client can be proved to be invalid. Possible conditions
include duplicated address, illegal address, etc.
retransmission-failed: This is raised when the retransmission
mechanism defined in [RFC8415] has failed.
4. DHCPv6 YANG Modules
4.1. DHCPv6 Common YANG Module
<CODE BEGINS> file "ietf-dhcpv6-common@2022-06-20.yang"
module ietf-dhcpv6-common {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv6-common";
prefix dhc6;
organization
"IETF Dynamic Host Configuration (DHC) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/dhc/>
WG List: <mailto:dhcwg@ietf.org>
Author: Yong Cui <yong@csnet1.cs.tsinghua.edu.cn>
Author: Linhui Sun <lh.sunlinh@gmail.com>
Editor: Ian Farrer <ian.farrer@telekom.de>
Author: Sladjana Zeichlin <sladjana.zechlin@telekom.de>
Author: Zihao He <hezihao9512@gmail.com>
Author: Michal Nowikowski <godfryd@isc.org>";
description
"This YANG module defines common components used for the
configuration and management of DHCPv6.
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 9243
(https://www.rfc-editor.org/info/rfc9243); see the RFC itself
for full legal notices.";
revision 2022-06-20 {
description
"Initial revision.";
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
typedef threshold {
type uint8 {
range "1..100";
}
description
"Threshold value in percent.";
}
typedef timer-seconds32 {
type uint32;
units "seconds";
description
"Timer value type in seconds (32-bit range).";
}
typedef duid-base {
type string {
pattern '([0-9a-fA-F]{2}){3,130}';
}
description
"Each DHCP server and client has a DHCP Unique Identifier
(DUID). The DUID consists of a 2-octet type field
and an arbitrary length (1-128 octets) content field.
The duid-base type is used by other duid types with
additional pattern constraints.
Currently, there are four defined types of DUIDs
in RFCs 8415 and 6355 -- DUID-LLT, DUID-EN, DUID-LL, and
DUID-UUID. DUID-unstructured represents DUIDs that do not
follow any of the defined formats.
Type 'string' is used to represent the hexadecimal DUID value
so that pattern constraints can be applied.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11
RFC 6355: Definition of the UUID-Based DHCPv6 Unique
Identifier (DUID-UUID), Section 4";
}
typedef duid-llt {
type duid-base {
pattern '0001'
+ '[0-9a-fA-F]{12,}';
}
description
"DUID type 1, based on Link-Layer Address Plus Time
(DUID-LLT). Constructed with a 2-octet hardware type assigned
by IANA, 4 octets containing the time the DUID is generated
(represented in seconds since midnight (UTC), January 1, 2000,
modulo 2^32), and a link-layer address. The address is encoded
without separator characters. For example:
+------+------+----------+--------------+
| 0001 | 0006 | 28490058 | 00005E005300 |
+------+------+----------+--------------+
This example includes the 2-octet DUID type of 1 (0x01); the
hardware type is 0x06 (IEEE Hardware Types), and the creation
time is 0x28490058 (constructed as described above). Finally,
the link-layer address is 0x5E005300 (EUI-48 address
00-00-5E-00-53-00).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11.2
IANA 'Hardware Types' registry
<https://www.iana.org/assignments/arp-parameters>";
}
typedef duid-en {
type duid-base {
pattern '0002'
+ '[0-9a-fA-F]{8,}';
}
description
"DUID type 2, assigned by vendor based on Enterprise
Number (DUID-EN). This DUID consists of the 4-octet vendor's
registered Private Enterprise Number, as maintained by IANA,
followed by a unique identifier assigned by the vendor. For
example:
+------+----------+------------------+
| 0002 | 00007ED9 | 0CC084D303000912 |
+------+----------+------------------+
This example includes the 2-octet DUID type of 2 (0x02),
4 octets for the Enterprise Number (0x7ED9), followed by
8 octets of identifier data (0x0CC084D303000912).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11.3
IANA 'Private Enterprise Numbers' registry
<https://www.iana.org/assignments/enterprise-numbers>";
}
typedef duid-ll {
type duid-base {
pattern '0003'
+ '([0-9a-fA-F]){4,}';
}
description
"DUID type 3, based on Link-Layer Address (DUID-LL).
Constructed with a 2-octet hardware type assigned
by IANA and a link-layer address. The address is encoded
without separator characters. For example:
+------+------+--------------+
| 0003 | 0006 | 00005E005300 |
+------+------+--------------+
This example includes the 2-octet DUID type of 3 (0x03); the
hardware type is 0x06 (IEEE Hardware Types), and the
link-layer address is 0x5E005300 (EUI-48 address
00-00-5E-00-53-00).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11.4
IANA 'Hardware Types' registry
<https://www.iana.org/assignments/arp-parameters>";
}
typedef duid-uuid {
type duid-base {
pattern '0004'
+ '[0-9a-fA-F]{32}';
}
description
"DUID type 4, based on Universally Unique Identifier
(DUID-UUID). This type of DUID consists of 16 octets
containing a 128-bit UUID. For example:
+------+----------------------------------+
| 0004 | 9f03b182705747e38a1e422910078642 |
+------+----------------------------------+
This example includes the 2-octet DUID type of 4 (0x04) and
the UUID 9f03b182-7057-47e3-8a1e-422910078642.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11.5
RFC 6355: Definition of the UUID-Based DHCPv6 Unique
Identifier (DUID-UUID)";
}
typedef duid-unstructured {
type duid-base {
pattern '(000[1-4].*)' {
modifier "invert-match";
}
}
description
"Used for DUIDs following any formats other than DUID
types 1-4. For example:
+----------------------------------+
| 7b6a164d325946539dc540fb539bc430 |
+----------------------------------+
Here, an arbitrary 16-octet value is used. The only
constraint placed on this is that the first 2 octets
are not 0x01-0x04 to avoid collision with the other
defined DUID types (duid-llt, duid-en, duid-ll,
or duid-uuid).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11";
}
typedef duid {
type union {
type duid-llt;
type duid-en;
type duid-ll;
type duid-uuid;
type duid-unstructured;
}
description
"Represents the DUID and is neutral to the DUID's construction
format.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11";
}
/*
* Groupings
*/
grouping status {
description
"Holds information about the most recent status code that
has been sent by the server or received by the client.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 7.5.";
container status {
description
"Status code information, relating to the success or failure
of operations requested in messages.";
leaf code {
type uint16;
description
"The numeric code for the status encoded in this option.
See the 'Status Codes' registry at
<https://www.iana.org/assignments/dhcpv6-parameters>
for the current list of status codes.";
}
leaf message {
type string;
description
"A UTF-8-encoded text string suitable for display to an
end user. It MUST NOT be null terminated.";
}
}
}
grouping auth-option-group {
description
"OPTION_AUTH (11) Authentication Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 21.11
RFC 3118: Authentication for DHCP Messages
IANA 'Dynamic Host Configuration Protocol (DHCP)
Authentication Option Name Spaces' registry
<https://www.iana.org/assignments/auth-namespaces>";
container auth-option {
description
"OPTION_AUTH (11) Authentication Option.";
leaf algorithm {
type uint8;
description
"The algorithm used in the authentication protocol.";
}
leaf rdm {
type uint8;
description
"The Replay Detection Method (RDM) used in this
Authentication option.";
}
leaf replay-detection {
type uint64;
description
"The replay detection information for the RDM.";
}
choice protocol {
description
"The authentication protocol used in the option. Protocol
Namespace Values 1 (delayed authentication) and 2 (Delayed
Authentication (Obsolete)) are not applicable and so are
not modeled.";
case conf-token {
leaf token-auth-information {
type binary;
description
"Protocol Namespace Value 0. The authentication
information, as specified by the protocol and
algorithm used in this Authentication option.";
}
}
case rkap {
description
"Protocol Namespace Value 3. The Reconfigure Key
Authentication Protocol (RKAP) provides protection
against misconfiguration of a client caused by a
Reconfigure message sent by a malicious DHCP
server.";
leaf datatype {
type uint8 {
range "1 .. 2";
}
description
"Type of data in the Value field carried in this
option.
1 Reconfigure key value (used in the Reply
message).
2 HMAC-MD5 digest of the message (used in
the Reconfigure message).";
}
leaf auth-info-value {
type binary {
length "16";
}
description
"Data, as defined by the Type field. A 16-octet
field.";
}
}
}
}
}
grouping rapid-commit-option-group {
description
"OPTION_RAPID_COMMIT (14) Rapid Commit Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.14";
container rapid-commit-option {
presence "Enable sending of this option";
description
"OPTION_RAPID_COMMIT (14) Rapid Commit Option.";
}
}
grouping vendor-specific-information-option-group {
description
"OPTION_VENDOR_OPTS (17) Vendor-specific Information
Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 21.17";
container vendor-specific-information-options {
description
"OPTION_VENDOR_OPTS (17) Vendor-specific Information
Option.";
list vendor-specific-information-option {
key "enterprise-number";
description
"The Vendor-specific Information option allows for
multiple instances in a single message. Each list entry
defines the contents of an instance of the option.";
leaf enterprise-number {
type uint32;
description
"The vendor's registered Enterprise Number, as
maintained by IANA.";
reference
"IANA 'Private Enterprise Numbers' registry
<https://www.iana.org/assignments/enterprise-numbers>";
}
list vendor-option-data {
key "sub-option-code";
description
"Vendor options, interpreted by vendor-specific
client/server functions.";
leaf sub-option-code {
type uint16;
description
"The code for the sub-option.";
}
leaf sub-option-data {
type binary;
description
"The data area for the sub-option.";
}
}
}
}
}
grouping reconfigure-accept-option-group {
description
"OPTION_RECONF_ACCEPT (20) Reconfigure Accept Option.
A client uses the Reconfigure Accept option to announce to
the server whether or not the client is willing to accept
Reconfigure messages, and a server uses this option to tell
the client whether or not to accept Reconfigure messages. In
the absence of this option, the default behavior is that the
client is unwilling to accept Reconfigure messages. The
presence node is used to enable the option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 21.20";
container reconfigure-accept-option {
presence "Enable sending of this option";
description
"OPTION_RECONF_ACCEPT (20) Reconfigure Accept Option.";
}
}
}
<CODE ENDS>
4.2. DHCPv6 Server YANG Module
This module imports typedefs from [RFC6991] and the module defined in
[RFC8343].
<CODE BEGINS> file "ietf-dhcpv6-server@2022-06-20.yang"
module ietf-dhcpv6-server {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv6-server";
prefix dhc6-srv;
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-dhcpv6-common {
prefix dhc6;
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
import ietf-netconf-acm {
prefix nacm;
reference
"RFC 8341: Network Configuration Access Control Model";
}
organization
"IETF Dynamic Host Configuration (DHC) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/dhc/>
WG List: <mailto:dhcwg@ietf.org>
Author: Yong Cui <yong@csnet1.cs.tsinghua.edu.cn>
Author: Linhui Sun <lh.sunlinh@gmail.com>
Editor: Ian Farrer <ian.farrer@telekom.de>
Author: Sladjana Zeichlin <sladjana.zechlin@telekom.de>
Author: Zihao He <hezihao9512@gmail.com>
Author: Michal Nowikowski <godfryd@isc.org>";
description
"This YANG module defines components for the configuration
and management of DHCPv6 servers.
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 9243
(https://www.rfc-editor.org/info/rfc9243); see the RFC itself
for full legal notices.";
revision 2022-06-20 {
description
"Initial revision.";
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
/*
* Features
*/
feature na-assignment {
description
"Denotes that the server implements DHCPv6 non-temporary
address assignment.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 6.2";
}
feature prefix-delegation {
description
"Denotes that the server implements DHCPv6 prefix
delegation.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 6.3";
}
/*
* Groupings
*/
grouping resource-config {
description
"Nodes that are reused at multiple levels in the DHCPv6
server's addressing hierarchy.";
leaf-list option-set-id {
type leafref {
path "/dhcpv6-server/option-sets/option-set/option-set-id";
}
description
"The ID field of the relevant set of DHCPv6 options
(option-set) to be provisioned to clients using the
allocation-range.";
}
leaf valid-lifetime {
type dhc6:timer-seconds32;
description
"Valid lifetime for the Identity Association (IA).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 12.1";
}
leaf renew-time {
type dhc6:timer-seconds32;
description
"Renew (T1) time.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 4.2";
}
leaf rebind-time {
type dhc6:timer-seconds32;
description
"Rebind (T2) time.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 4.2";
}
leaf preferred-lifetime {
type dhc6:timer-seconds32;
description
"Preferred lifetime for the IA.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 12.1";
}
leaf rapid-commit {
type boolean;
description
"When set to 'true', specifies that client-server exchanges
involving two messages is supported.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 5.1";
}
}
grouping lease-information {
description
"Binding information for each client that has been allocated
an IPv6 address or prefix.";
leaf client-duid {
type dhc6:duid;
description
"Client DUID.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11";
}
leaf ia-id {
type uint32;
mandatory true;
description
"Client's Identity Association IDentifier (IAID).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 12";
}
leaf allocation-time {
type yang:date-and-time;
description
"Time and date that the lease was made.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 18";
}
leaf last-renew-rebind {
type yang:date-and-time;
description
"Time of the last successful renew or rebind.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 18";
}
leaf preferred-lifetime {
type dhc6:timer-seconds32;
description
"The preferred lifetime expressed in seconds.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 6";
}
leaf valid-lifetime {
type dhc6:timer-seconds32;
description
"The valid lifetime for the lease expressed in seconds.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 6";
}
leaf lease-t1 {
type dhc6:timer-seconds32;
description
"The time interval after which the client should contact
the server from which the addresses in the IA_NA were
obtained to extend the lifetimes of the addresses assigned
to the Identity Association for Prefix Delegation (IA_PD).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 4.2";
}
leaf lease-t2 {
type dhc6:timer-seconds32;
description
"The time interval after which the client should contact
any available server to extend the lifetimes of the
addresses assigned to the IA_PD.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 4.2";
}
uses dhc6:status;
}
grouping message-statistics {
description
"Counters for DHCPv6 messages.";
leaf discontinuity-time {
type yang:date-and-time;
description
"The time on the most recent occasion at which any one or
more of DHCPv6 server's counters suffered a discontinuity.
If no such discontinuities have occurred since the last
re-initialization of the local management subsystem, then
this node contains the time the local management subsystem
re-initialized itself.";
}
leaf solicit-count {
type yang:counter32;
config false;
description
"Number of Solicit (1) messages received.";
}
leaf advertise-count {
type yang:counter32;
config false;
description
"Number of Advertise (2) messages sent.";
}
leaf request-count {
type yang:counter32;
config false;
description
"Number of Request (3) messages received.";
}
leaf confirm-count {
type yang:counter32;
config false;
description
"Number of Confirm (4) messages received.";
}
leaf renew-count {
type yang:counter32;
config false;
description
"Number of Renew (5) messages received.";
}
leaf rebind-count {
type yang:counter32;
config false;
description
"Number of Rebind (6) messages received.";
}
leaf reply-count {
type yang:counter32;
config false;
description
"Number of Reply (7) messages sent.";
}
leaf release-count {
type yang:counter32;
config false;
description
"Number of Release (8) messages received.";
}
leaf decline-count {
type yang:counter32;
config false;
description
"Number of Decline (9) messages received.";
}
leaf reconfigure-count {
type yang:counter32;
config false;
description
"Number of Reconfigure (10) messages sent.";
}
leaf information-request-count {
type yang:counter32;
config false;
description
"Number of Information-request (11) messages
received.";
}
leaf discarded-message-count {
type yang:counter32;
config false;
description
"Number of messages that have been discarded for any
reason.";
}
}
grouping preference-option-group {
description
"OPTION_PREFERENCE (7) Preference Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.8";
container preference-option {
description
"OPTION_PREFERENCE (7) Preference Option.";
leaf pref-value {
type uint8;
description
"The preference value for the server in this message. A
1-octet unsigned integer.";
}
}
}
grouping server-unicast-option-group {
description
"OPTION_UNICAST (12) Server Unicast Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.12";
container server-unicast-option {
description
"OPTION_UNICAST (12) Server Unicast Option.";
leaf server-address {
type inet:ipv6-address;
description
"The 128-bit address to which the client should send
messages delivered using unicast.";
}
}
}
grouping reconfigure-message-option-group {
description
"OPTION_RECONF_MSG (19) Reconfigure Message Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.19";
container reconfigure-message-option {
description
"OPTION_RECONF_MSG (19) Reconfigure Message Option.";
leaf msg-type {
type uint8;
description
"5 for Renew message, 6 for Rebind message, and 11 for
Information-request message.";
}
}
}
grouping info-refresh-time-option-group {
description
"OPTION_INFORMATION_REFRESH_TIME (32) Information Refresh
Time Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.23";
container info-refresh-time-option {
description
"OPTION_INFORMATION_REFRESH_TIME (32) Information Refresh
Time Option.";
leaf info-refresh-time {
type dhc6:timer-seconds32;
description
"Time duration specifying an upper bound for how long a
client should wait before refreshing information retrieved
from a DHCP server.";
}
}
}
grouping sol-max-rt-option-group {
description
"OPTION_SOL_MAX_RT (82) SOL_MAX_RT Option (Max Solicit timeout
value).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.24";
container sol-max-rt-option {
description
"OPTION_SOL_MAX_RT (82) SOL_MAX_RT Option.";
leaf sol-max-rt-value {
type dhc6:timer-seconds32;
description
"Maximum Solicit timeout value.";
}
}
}
grouping inf-max-rt-option-group {
description
"OPTION_INF_MAX_RT (83) INF_MAX_RT Option (Max
Information-request timeout value).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.25";
container inf-max-rt-option {
description
"OPTION_INF_MAX_RT (83) INF_MAX_RT Option.";
leaf inf-max-rt-value {
type dhc6:timer-seconds32;
description
"Maximum Information-request timeout value.";
}
}
}
/*
* Data Nodes
*/
container dhcpv6-server {
description
"Configuration nodes for the DHCPv6 server.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 18.3";
leaf enabled {
type boolean;
description
"Enables the DHCP server function.";
}
leaf server-duid {
type dhc6:duid;
description
"DUID of the server.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11";
}
container vendor-config {
description
"This container provides a location for augmenting vendor
or implementation-specific configuration nodes.";
}
container option-sets {
description
"A server may allow different option sets to be configured
for clients matching specific parameters, such as
topological location or client type. The 'option-set' list
is a set of options and their contents that will be
returned to clients.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21";
list option-set {
key "option-set-id";
description
"YANG definitions for DHCPv6 options are contained in
separate YANG modules and augmented to this container as
required.";
leaf option-set-id {
type string;
description
"Option set identifier.";
}
leaf description {
type string;
description
"An optional field for storing additional information
relevant to the option set.";
}
uses preference-option-group;
uses dhc6:auth-option-group;
uses server-unicast-option-group;
uses dhc6:rapid-commit-option-group;
uses dhc6:vendor-specific-information-option-group;
uses reconfigure-message-option-group;
uses dhc6:reconfigure-accept-option-group;
uses info-refresh-time-option-group;
uses sol-max-rt-option-group;
uses inf-max-rt-option-group;
}
}
container class-selector {
description
"DHCPv6 servers use a 'class-selector' function in order
to identify and classify incoming client messages
so that they can be given the correct configuration.
The mechanisms used for implementing this function vary
greatly between different implementations; as such, it is
not possible to include them in this module. This container
provides a location for server implementors to augment their
own class-selector YANG.";
}
container allocation-ranges {
description
"This model is based on an address and parameter
allocation hierarchy. The top level is 'global' -- which
is defined as the container for all allocation-ranges.
Under this are the individual allocation-ranges.";
uses resource-config;
list allocation-range {
key "id";
description
"Network ranges are identified by the 'id' key.";
leaf id {
type string;
mandatory true;
description
"Unique identifier for the allocation range.";
}
leaf description {
type string;
description
"Description for the allocation range.";
}
leaf network-prefix {
type inet:ipv6-prefix;
mandatory true;
description
"Network prefix.";
}
uses resource-config;
container address-pools {
if-feature "na-assignment";
description
"Configuration for the DHCPv6 server's
address pools.";
list address-pool {
key "pool-id";
description
"List of address pools for allocation to clients,
distinguished by 'pool-id'.";
leaf pool-id {
type string;
mandatory true;
description
"Unique identifier for the pool.";
}
leaf pool-prefix {
type inet:ipv6-prefix;
mandatory true;
description
"IPv6 prefix for the pool. Should be contained
within the network-prefix if configured.";
}
leaf start-address {
type inet:ipv6-address-no-zone;
mandatory true;
description
"Starting IPv6 address for the pool.";
}
leaf end-address {
type inet:ipv6-address-no-zone;
mandatory true;
description
"Ending IPv6 address for the pool.";
}
leaf max-address-utilization {
type dhc6:threshold;
description
"Maximum amount of the addresses in the
pool that can be simultaneously allocated,
calculated as a percentage of the available
addresses (end-address minus start-address plus
one), and rounded up. Used to set the value for
the address-pool-utilization-threshold-exceeded
notification.";
}
uses resource-config;
container host-reservations {
description
"Configuration for host reservations from the
address pool.";
list host-reservation {
key "reserved-addr";
description
"List of host reservations.";
leaf client-duid {
type dhc6:duid;
description
"Client DUID for the reservation.";
}
leaf reserved-addr {
type inet:ipv6-address;
description
"Reserved IPv6 address.";
}
uses resource-config;
}
}
container active-leases {
config false;
description
"Holds state related to active client
leases.";
leaf total-count {
type uint64;
mandatory true;
description
"The total number of addresses in the pool.";
}
leaf allocated-count {
type uint64;
mandatory true;
description
"The number of addresses or prefixes in the pool
that are currently allocated.";
}
list active-lease {
key "leased-address";
description
"List of active address leases.";
leaf leased-address {
type inet:ipv6-address;
description
"Active address lease entry.";
}
uses lease-information;
}
}
}
}
container prefix-pools {
if-feature "prefix-delegation";
description
"Configuration for the DHCPv6 server's prefix pools.";
list prefix-pool {
key "pool-id";
description
"List of prefix pools for allocation to clients,
distinguished by 'pool-id'.";
leaf pool-id {
type string;
mandatory true;
description
"Unique identifier for the pool.";
}
leaf pool-prefix {
type inet:ipv6-prefix;
mandatory true;
description
"IPv6 prefix for the pool. Should be contained
within the network-prefix if configured.";
}
leaf client-prefix-length {
type uint8 {
range "1 .. 128";
}
mandatory true;
description
"Length of the prefixes that will be delegated
to clients.";
}
leaf max-pd-space-utilization {
type dhc6:threshold;
description
"Maximum amount of the prefixes in the pool that
can be simultaneously allocated, calculated as a
percentage of the available prefixes, and rounded
up. Used to set the value for the
prefix-pool-utilization-threshold-exceeded
notification.";
}
uses resource-config;
container host-reservations {
description
"Configuration for host reservations from the
prefix pool.";
list prefix-reservation {
key "reserved-prefix";
description
"Reserved prefix reservation.";
leaf client-duid {
type dhc6:duid;
description
"Client DUID for the reservation.";
}
leaf reserved-prefix {
type inet:ipv6-prefix;
description
"Reserved IPv6 prefix.";
}
leaf reserved-prefix-len {
type uint8;
description
"Reserved IPv6 prefix length.";
}
}
uses resource-config;
}
container active-leases {
config false;
description
"Holds state related to active client prefix
leases.";
leaf total-count {
type uint64;
mandatory true;
description
"The total number of prefixes in the pool.";
}
leaf allocated-count {
type uint64;
mandatory true;
description
"The number of prefixes in the pool that are
currently allocated.";
}
list active-lease {
key "leased-prefix";
description
"List of active prefix leases.";
leaf leased-prefix {
type inet:ipv6-prefix;
description
"Active leased prefix entry.";
}
uses lease-information;
}
}
}
}
}
container statistics {
description
"DHCPv6 message counters for the server.";
uses message-statistics;
}
}
}
/*
* RPCs
*/
rpc delete-address-lease {
nacm:default-deny-all;
if-feature "na-assignment";
description
"Deletes a client's active address lease from the server's
lease database. Note that this will not cause the address
to be revoked from the client, and the lease may be refreshed
or renewed by the client.";
input {
leaf lease-address-to-delete {
type leafref {
path "/dhcpv6-server/allocation-ranges/"
+ "allocation-range/address-pools/address-pool"
+ "/active-leases/active-lease/leased-address";
}
mandatory true;
description
"IPv6 address of an active lease that will be
deleted from the server.";
}
}
output {
leaf return-message {
type string;
description
"Response message from the server. If available, a
language identifier should be included in the message.";
reference
"BCP 18 (RFC 2277) IETF Policy on Character Sets
and Languages, Section 4.2";
}
}
}
rpc delete-prefix-lease {
nacm:default-deny-all;
if-feature "prefix-delegation";
description
"Deletes a client's active prefix lease from the server's
lease database. Note that this will not cause the prefix
to be revoked from the client, and the lease may be refreshed
or renewed by the client.";
input {
leaf lease-prefix-to-delete {
type leafref {
path "/dhcpv6-server/allocation-ranges/"
+ "allocation-range/prefix-pools/prefix-pool"
+ "/active-leases/active-lease/leased-prefix";
}
mandatory true;
description
"IPv6 prefix of an active lease that will be deleted
from the server.";
}
}
output {
leaf return-message {
type string;
description
"Response message from the server. If available, a
language identifier should be included in the message.";
reference
"BCP 18 (RFC 2277) IETF Policy on Character Sets
and Languages, Section 4.2";
}
}
}
/*
* Notifications
*/
notification address-pool-utilization-threshold-exceeded {
if-feature "na-assignment";
description
"Notification sent when the address pool
utilization exceeds the threshold configured in
max-address-utilization.";
leaf pool-id {
type leafref {
path "/dhcpv6-server/allocation-ranges/"
+ "allocation-range/address-pools/address-pool"
+ "/pool-id";
}
mandatory true;
description
"Leafref to the address pool that the notification is being
generated for.";
}
leaf total-pool-addresses {
type uint64;
mandatory true;
description
"Total number of addresses in the pool (end-address minus
start-address plus one).";
}
leaf max-allocated-addresses {
type uint64;
mandatory true;
description
"Maximum number of addresses that can be simultaneously
allocated from the pool. This value may be less than the
count of total addresses. Calculated as the
max-address-utilization (percentage) of the
total-pool-addresses and rounded up.";
}
leaf allocated-address-count {
type uint64;
mandatory true;
description
"Number of addresses allocated from the pool.";
}
}
notification prefix-pool-utilization-threshold-exceeded {
if-feature "prefix-delegation";
description
"Notification sent when the prefix pool utilization
exceeds the threshold configured in
max-pd-space-utilization.";
leaf pool-id {
type leafref {
path "/dhcpv6-server/allocation-ranges"
+ "/allocation-range/prefix-pools/prefix-pool/pool-id";
}
mandatory true;
description
"Unique identifier for the pool.";
}
leaf total-pool-prefixes {
type uint64;
mandatory true;
description
"Total number of prefixes in the pool.";
}
leaf max-allocated-prefixes {
type uint64;
mandatory true;
description
"Maximum number of prefixes that can be simultaneously
allocated from the pool. This value may be less than
the count of total prefixes. Calculated as the
max-prefix-utilization (percentage) of the
total-pool-prefixes and rounded up.";
}
leaf allocated-prefixes-count {
type uint64;
mandatory true;
description
"Number of prefixes allocated from the pool.";
}
}
notification invalid-client-detected {
description
"Notification sent when the server detects an invalid
client.";
leaf message-type {
type enumeration {
enum solicit {
description
"Solicit (1) message.";
}
enum request {
description
"Request (3) message.";
}
enum confirm {
description
"Confirm (4) message.";
}
enum renew {
description
"Renew (5) message.";
}
enum rebind {
description
"Rebind (6) message.";
}
enum release {
description
"Release (8) message.";
}
enum decline {
description
"Decline (9) message.";
}
enum info-request {
description
"Information request (11) message.";
}
}
description
"The message type received by the server that has caused
the error.";
}
leaf duid {
type dhc6:duid;
description
"Client DUID.";
}
leaf description {
type string;
description
"Description of the event (e.g., an error code or log
message).";
}
}
notification decline-received {
if-feature "na-assignment";
description
"Notification sent when the server has received a Decline (9)
message from a client.";
leaf duid {
type dhc6:duid;
description
"Client DUID.";
}
list declined-resources {
description
"List of declined addresses and/or prefixes.";
choice resource-type {
description
"Type of resource that has been declined.";
case declined-address {
leaf address {
type inet:ipv6-address;
description
"Address that has been declined.";
}
}
case declined-prefix {
leaf prefix {
type inet:ipv6-prefix;
description
"Prefix that has been declined.";
}
}
}
}
}
notification non-success-code-sent {
description
"Notification sent when the server responded to a client with
a non-success status code.";
leaf duid {
type dhc6:duid;
description
"Client DUID.";
}
uses dhc6:status;
}
}
<CODE ENDS>
4.3. DHCPv6 Relay YANG Module
This module imports typedefs from [RFC6991] and modules defined in
[RFC8341] and [RFC8343].
<CODE BEGINS> file "ietf-dhcpv6-relay@2022-06-20.yang"
module ietf-dhcpv6-relay {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv6-relay";
prefix dhc6-rly;
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-dhcpv6-common {
prefix dhc6;
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
import ietf-interfaces {
prefix if;
reference
"RFC 8343: A YANG Data Model for Interface Management";
}
import ietf-netconf-acm {
prefix nacm;
reference
"RFC 8341: Network Configuration Access Control Model";
}
organization
"IETF Dynamic Host Configuration (DHC) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/dhc/>
WG List: <mailto:dhcwg@ietf.org>
Author: Yong Cui <yong@csnet1.cs.tsinghua.edu.cn>
Author: Linhui Sun <lh.sunlinh@gmail.com>
Editor: Ian Farrer <ian.farrer@telekom.de>
Author: Sladjana Zeichlin <sladjana.zechlin@telekom.de>
Author: Zihao He <hezihao9512@gmail.com>
Author: Michal Nowikowski <godfryd@isc.org>";
description
"This YANG module defines components necessary for the
configuration and management of DHCPv6 relays.
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 9243
(https://www.rfc-editor.org/info/rfc9243); see the RFC itself
for full legal notices.";
revision 2022-06-20 {
description
"Initial revision.";
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
/*
* Features
*/
feature prefix-delegation {
description
"Enable if the relay functions as a delegating router for
DHCPv6 prefix delegation.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 6.3";
}
/*
* Groupings
*/
grouping pd-lease-state {
description
"State data for the relay.";
list pd-leases {
key "ia-pd-prefix";
config false;
description
"Information about an active IA_PD prefix delegation.";
leaf ia-pd-prefix {
type inet:ipv6-prefix;
description
"Prefix that is delegated.";
}
leaf last-renew {
type yang:date-and-time;
description
"Time of the last successful refresh or renew of the
delegated prefix.";
}
leaf client-peer-address {
type inet:ipv6-address;
description
"Peer-address of the leasing client.";
}
leaf client-duid {
type dhc6:duid;
description
"DUID of the leasing client.";
}
leaf server-duid {
type dhc6:duid;
description
"DUID of the delegating server.";
}
}
}
grouping message-statistics {
description
"Contains counters for the different DHCPv6 message types.";
leaf discontinuity-time {
type yang:date-and-time;
description
"The time on the most recent occasion at which any one or
more of DHCPv6 relay's counters suffered a discontinuity.
If no such discontinuities have occurred since the last
re-initialization of the local management subsystem, then
this node contains the time the local management subsystem
re-initialized itself.";
}
leaf solicit-received-count {
type yang:counter32;
config false;
description
"Number of Solicit (1) messages received.";
}
leaf advertise-sent-count {
type yang:counter32;
config false;
description
"Number of Advertise (2) messages sent.";
}
leaf request-received-count {
type yang:counter32;
config false;
description
"Number of Request (3) messages received.";
}
leaf confirm-received-count {
type yang:counter32;
config false;
description
"Number of Confirm (4) messages received.";
}
leaf renew-received-count {
type yang:counter32;
config false;
description
"Number of Renew (5) messages received.";
}
leaf rebind-received-count {
type yang:counter32;
config false;
description
"Number of Rebind (6) messages received.";
}
leaf reply-sent-count {
type yang:counter32;
config false;
description
"Number of Reply (7) messages sent.";
}
leaf release-received-count {
type yang:counter32;
config false;
description
"Number of Release (8) messages received.";
}
leaf decline-received-count {
type yang:counter32;
config false;
description
"Number of Decline (9) messages received.";
}
leaf reconfigure-sent-count {
type yang:counter32;
config false;
description
"Number of Reconfigure (10) messages sent.";
}
leaf information-request-received-count {
type yang:counter32;
config false;
description
"Number of Information-request (11) messages
received.";
}
leaf unknown-message-received-count {
type yang:counter32;
config false;
description
"Number of messages of unknown type that have
been received.";
}
leaf unknown-message-sent-count {
type yang:counter32;
config false;
description
"Number of messages of unknown type that have
been sent.";
}
leaf discarded-message-count {
type yang:counter32;
config false;
description
"Number of messages that have been discarded
for any reason.";
}
}
grouping global-statistics {
description
"Global statistics for the device.";
leaf relay-forward-sent-count {
type yang:counter32;
config false;
description
"Number of Relay-forward (12) messages sent.";
}
leaf relay-forward-received-count {
type yang:counter32;
config false;
description
"Number of Relay-forward (12) messages received.";
}
leaf relay-reply-received-count {
type yang:counter32;
config false;
description
"Number of Relay-reply (13) messages received.";
}
leaf relay-forward-unknown-sent-count {
type yang:counter32;
config false;
description
"Number of Relay-forward (12) messages containing
a message of unknown type sent.";
}
leaf relay-forward-unknown-received-count {
type yang:counter32;
config false;
description
"Number of Relay-forward (12) messages containing
a message of unknown type received.";
}
leaf discarded-message-count {
type yang:counter32;
config false;
description
"Number of messages that have been discarded
for any reason.";
}
}
grouping interface-id-option-group {
description
"OPTION_INTERFACE_ID (18) Interface-Id Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.18";
container interface-id-option {
description
"OPTION_INTERFACE_ID (18) Interface-Id Option.";
leaf interface-id {
type binary;
description
"An opaque value of arbitrary length generated by the
relay agent to identify one of the relay agent's
interfaces.";
}
}
}
/*
* Data Nodes
*/
container dhcpv6-relay {
description
"This container contains the configuration data nodes
for the relay.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 19";
leaf enabled {
type boolean;
description
"Globally enables the DHCP relay function.";
}
list relay-if {
key "if-name";
description
"List of interfaces configured for DHCPv6 relaying.";
leaf if-name {
type if:interface-ref;
description
"interface-ref to the relay interface.";
}
leaf enabled {
type boolean;
description
"Enables the DHCP relay function for this interface.";
}
leaf-list destination-address {
type inet:ipv6-address;
description
"Each DHCPv6 relay agent may be configured with a list
of destination addresses for relayed messages.
The list may include unicast addresses, multicast
addresses, or other valid addresses.";
}
leaf link-address {
type inet:ipv6-address;
description
"An address that may be used by the server to identify
the link on which the client is located.";
}
container relay-options {
description
"Definitions for DHCPv6 options that can be sent
by the relay are augmented to this location from other
YANG modules as required.";
uses dhc6:auth-option-group;
uses interface-id-option-group;
}
container statistics {
description
"DHCPv6 message counters for the relay's interface.";
uses message-statistics;
}
container prefix-delegation {
if-feature "prefix-delegation";
presence "Enables prefix delegation for this interface.";
description
"Controls and holds state information for prefix
delegation.";
uses pd-lease-state;
}
}
container statistics {
description
"Global DHCPv6 message counters for the relay.";
uses global-statistics;
}
}
/*
* RPCs
*/
rpc clear-prefix-entry {
nacm:default-deny-all;
if-feature "prefix-delegation";
description
"Clears an entry for an active delegated prefix
from the relay.";
reference
"RFC 8987: DHCPv6 Prefix Delegating Relay Requirements,
Section 4.4";
input {
leaf lease-prefix {
type leafref {
path "/dhcpv6-relay/relay-if/prefix-delegation"
+ "/pd-leases/ia-pd-prefix";
}
mandatory true;
description
"IPv6 prefix of an active lease entry that will
be deleted from the relay.";
}
}
output {
leaf return-message {
type string;
description
"Response message from the server. If available, a
language identifier should be included in the message.";
reference
"BCP 18 (RFC 2277) IETF Policy on Character Sets
and Languages, Section 4.2";
}
}
}
rpc clear-client-prefixes {
nacm:default-deny-all;
if-feature "prefix-delegation";
description
"Clears all active prefix entries for a single client.";
reference
"RFC 8987: DHCPv6 Prefix Delegating Relay Requirements,
Section 4.4";
input {
leaf client-duid {
type dhc6:duid;
mandatory true;
description
"DUID of the client.";
}
}
output {
leaf return-message {
type string;
description
"Response message from the server. If available, a
language identifier should be included in the message.";
reference
"BCP 18 (RFC 2277) IETF Policy on Character Sets
and Languages, Section 4.2";
}
}
}
rpc clear-interface-prefixes {
nacm:default-deny-all;
if-feature "prefix-delegation";
description
"Clears all delegated prefix bindings from an
interface on the relay.";
reference
"RFC 8987: DHCPv6 Prefix Delegating Relay Requirements,
Section 4.4";
input {
leaf interface {
type leafref {
path "/dhcpv6-relay/relay-if/if-name";
}
mandatory true;
description
"Reference to the relay interface that will have all
active prefix delegation bindings deleted.";
}
}
output {
leaf return-message {
type string;
description
"Response message from the server. If available, a
language identifier should be included in the message.";
reference
"BCP 18 (RFC 2277) IETF Policy on Character Sets
and Languages, Section 4.2";
}
}
}
/*
* Notifications
*/
notification relay-event {
description
"DHCPv6 relay event notifications.";
container topology-change {
description
"Raised if the entry for an interface with DHCPv6-related
configuration or state is removed from if:interface-refs.";
leaf relay-if-name {
type leafref {
path "/dhcpv6-relay/relay-if/if-name";
}
description
"Name of the interface that has been removed.";
}
leaf last-ipv6-addr {
type inet:ipv6-address;
description
"Last IPv6 address configured on the interface.";
}
}
}
}
<CODE ENDS>
4.4. DHCPv6 Client YANG Module
This module imports typedefs from [RFC6991] and the module defined in
[RFC8343].
<CODE BEGINS> file "ietf-dhcpv6-client@2022-06-20.yang"
module ietf-dhcpv6-client {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-dhcpv6-client";
prefix dhc6-clnt;
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-dhcpv6-common {
prefix dhc6;
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
import ietf-interfaces {
prefix if;
reference
"RFC 8343: A YANG Data Model for Interface Management";
}
organization
"IETF Dynamic Host Configuration (DHC) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/dhc/>
WG List: <mailto:dhcwg@ietf.org>
Author: Yong Cui <yong@csnet1.cs.tsinghua.edu.cn>
Author: Linhui Sun <lh.sunlinh@gmail.com>
Editor: Ian Farrer <ian.farrer@telekom.de>
Author: Sladjana Zeichlin <sladjana.zechlin@telekom.de>
Author: Zihao He <hezihao9512@gmail.com>
Author: Michal Nowikowski <godfryd@isc.org>";
description
"This YANG module defines components necessary for the
configuration and management of DHCPv6 clients.
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 9243
(https://www.rfc-editor.org/info/rfc9243); see the RFC itself
for full legal notices.";
revision 2022-06-20 {
description
"Initial revision.";
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
/*
* Features
*/
feature non-temp-addr {
description
"Denotes that the client supports DHCPv6 non-temporary address
allocations.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 6.2";
}
feature temp-addr {
description
"Denotes that the client supports DHCPv6 temporary address
allocations.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 6.5";
}
feature prefix-delegation {
description
"Denotes that the client implements DHCPv6 prefix
delegation.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 6.3";
}
feature anon-profile {
description
"Denotes that the client supports DHCP anonymity profiles.";
reference
"RFC 7844: Anonymity Profiles for DHCP Clients";
}
/*
* Groupings
*/
grouping message-statistics {
description
"Counters for DHCPv6 messages.";
leaf discontinuity-time {
type yang:date-and-time;
description
"The time on the most recent occasion at which any one or
more of DHCPv6 client's counters suffered a discontinuity.
If no such discontinuities have occurred since the last
re-initialization of the local management subsystem, then
this node contains the time the local management subsystem
re-initialized itself.";
}
leaf solicit-count {
type yang:counter32;
config false;
description
"Number of Solicit (1) messages sent.";
}
leaf advertise-count {
type yang:counter32;
config false;
description
"Number of Advertise (2) messages received.";
}
leaf request-count {
type yang:counter32;
config false;
description
"Number of Request (3) messages sent.";
}
leaf confirm-count {
type yang:counter32;
config false;
description
"Number of Confirm (4) messages sent.";
}
leaf renew-count {
type yang:counter32;
config false;
description
"Number of Renew (5) messages sent.";
}
leaf rebind-count {
type yang:counter32;
config false;
description
"Number of Rebind (6) messages sent.";
}
leaf reply-count {
type yang:counter32;
config false;
description
"Number of Reply (7) messages received.";
}
leaf release-count {
type yang:counter32;
config false;
description
"Number of Release (8) messages sent.";
}
leaf decline-count {
type yang:counter32;
config false;
description
"Number of Decline (9) messages sent.";
}
leaf reconfigure-count {
type yang:counter32;
config false;
description
"Number of Reconfigure (10) messages received.";
}
leaf information-request-count {
type yang:counter32;
config false;
description
"Number of Information-request (11) messages sent.";
}
leaf discarded-message-count {
type yang:counter32;
config false;
description
"Number of messages that have been discarded for any
reason.";
}
}
grouping lease-state {
description
"Information about the active IA_NA lease.";
leaf preferred-lifetime {
type dhc6:timer-seconds32;
description
"The preferred lifetime for the leased address
expressed in seconds.";
}
leaf valid-lifetime {
type dhc6:timer-seconds32;
description
"The valid lifetime for the leased address expressed
in seconds.";
}
leaf allocation-time {
type yang:date-and-time;
description
"Time and date that the address was first leased.";
}
leaf last-renew-rebind {
type yang:date-and-time;
description
"Time of the last successful renew or rebind of the
leased address.";
}
leaf server-duid {
type dhc6:duid;
description
"DUID of the leasing server.";
}
uses dhc6:status;
}
grouping option-request-option-group {
description
"OPTION_ORO (6) Option Request Option. A client MUST include
an Option Request option in a Solicit, Request, Renew,
Rebind, or Information-request message to inform the server
about options the client wants the server to send to the
client.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Sections 21.23, 21.24, 21.25, & 21.7";
container option-request-option {
description
"OPTION_ORO (6) Option Request Option.";
leaf-list oro-option {
type uint16;
description
"List of options that the client is requesting,
identified by option code. This list MUST include the
code for option SOL_MAX_RT (82) when included in a
Solicit message. If this option is being sent in an
Information-request message, then the code for option
OPTION_INFORMATION_REFRESH_TIME (32) and INF_MAX_RT (83)
MUST be included.";
}
}
}
grouping user-class-option-group {
description
"OPTION_USER_CLASS (15) User Class Option";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.15";
container user-class-option {
presence "Configures the option";
description
"OPTION_USER_CLASS (15) User Class Option.";
list user-class-data-instance {
key "user-class-data-id";
min-elements 1;
description
"The user classes of which the client is a member.";
leaf user-class-data-id {
type uint8;
description
"User class data ID.";
}
leaf user-class-data {
type binary;
description
"Opaque field representing a User Class of which the
client is a member.";
}
}
}
}
grouping vendor-class-option-group {
description
"OPTION_VENDOR_CLASS (16) Vendor Class Option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 21.16";
container vendor-class-option {
description
"OPTION_VENDOR_CLASS (16) Vendor Class Option.";
list vendor-class-option-instances {
key "enterprise-number";
description
"The vendor class option allows for multiple instances
in a single message. Each list entry defines the contents
of an instance of the option.";
leaf enterprise-number {
type uint32;
description
"The vendor's registered Enterprise Number, as
maintained by IANA.";
}
list vendor-class-data-element {
key "vendor-class-data-id";
description
"The vendor classes of which the client is a member.";
leaf vendor-class-data-id {
type uint8;
description
"Vendor class data ID.";
}
leaf vendor-class-data {
type binary;
description
"Opaque field representing a vendor class of which
the client is a member.";
}
}
}
}
}
/*
* Data Nodes
*/
container dhcpv6-client {
description
"DHCPv6 client configuration and state.";
leaf enabled {
type boolean;
default "true";
description
"Globally enables the DHCP client function.";
}
leaf client-duid {
if-feature "(non-temp-addr or prefix-delegation "
+ "or temp-addr) and not anon-profile";
type dhc6:duid;
description
"A single client DUID that will be used by all of the
client's DHCPv6-enabled interfaces.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 11";
}
list client-if {
key "if-name";
description
"The list of interfaces for which the client will
be requesting DHCPv6 configuration.";
leaf if-name {
type if:interface-ref;
mandatory true;
description
"Reference to the interface entry that the requested
configuration is relevant to.";
}
leaf enabled {
type boolean;
default "true";
description
"Enables the DHCP client function for this interface.";
}
leaf interface-duid {
if-feature "(non-temp-addr or prefix-delegation "
+ "or temp-addr) and anon-profile";
type dhc6:duid;
description
"Per-interface client DUIDs for use with DHCP anonymity
profiles.";
reference
"RFC 7844: Anonymity Profiles for DHCP Clients,
Section 3";
}
container client-configured-options {
description
"Definitions for DHCPv6 options that can be sent by
the client. Additional option definitions can be
augmented to this location from other YANG modules as
required.";
uses option-request-option-group;
uses dhc6:rapid-commit-option-group;
uses user-class-option-group;
uses vendor-class-option-group;
uses dhc6:vendor-specific-information-option-group;
uses dhc6:reconfigure-accept-option-group;
}
list ia-na {
if-feature "non-temp-addr";
key "ia-id";
description
"Configuration relevant for an Identity Association
for Non-temporary Addresses (IA_NA).";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 13.1";
leaf ia-id {
type uint32;
description
"A unique identifier for this IA_NA.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 12";
}
container ia-na-options {
description
"An augmentation point for additional options
that the client may send in the IA_NA-options field
of OPTION_IA_NA.";
}
container lease-state {
config false;
description
"Information about the active IA_NA lease.";
leaf ia-na-address {
type inet:ipv6-address;
description
"Address that is currently leased.";
}
leaf lease-t1 {
type dhc6:timer-seconds32;
description
"The time interval after which the client should
contact the server from which the addresses in the
IA_NA were obtained to extend the lifetimes of the
addresses assigned to the IA_NA.";
}
leaf lease-t2 {
type dhc6:timer-seconds32;
description
"The time interval after which the client should
contact any available server to extend the lifetimes
of the addresses assigned to the IA_NA.";
}
uses lease-state;
}
}
list ia-ta {
if-feature "temp-addr";
key "ia-id";
description
"Configuration relevant for an Identity Association
for Temporary Addresses (IA_TA).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 13.2";
leaf ia-id {
type uint32;
description
"The unique identifier for this IA_TA.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 12";
}
container ia-ta-options {
description
"An augmentation point for additional options
that the client may send in the IA_TA-options field
of OPTION_IA_TA.";
}
container lease-state {
config false;
description
"Information about an active IA_TA lease.";
leaf ia-ta-address {
type inet:ipv6-address;
description
"Address that is currently leased.";
}
uses lease-state;
}
}
list ia-pd {
if-feature "prefix-delegation";
key "ia-id";
description
"Configuration relevant for an Identity Association
for Prefix Delegation (IA_PD).";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 13.3";
leaf ia-id {
type uint32;
description
"The unique identifier for this IA_PD.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 12";
}
leaf prefix-length-hint {
type uint8 {
range "1..128";
}
description
"Prefix-length hint value included in the messages sent
to the server to indicate a preference for the size of
the prefix to be delegated.";
reference
"RFC 8415: Dynamic Host Configuration Protocol
for IPv6 (DHCPv6), Section 18.2.1";
}
container ia-pd-options {
description
"An augmentation point for additional options that the
client will send in the IA_PD-options field of
OPTION_IA_TA.";
}
container lease-state {
config false;
description
"Information about an active IA_PD-delegated prefix.";
leaf ia-pd-prefix {
type inet:ipv6-prefix;
description
"Delegated prefix that is currently leased.";
}
leaf lease-t1 {
type dhc6:timer-seconds32;
description
"The time interval after which the client should
contact the server from which the addresses in the
IA_NA were obtained to extend the lifetimes of the
addresses assigned to the IA_PD.";
}
leaf lease-t2 {
type dhc6:timer-seconds32;
description
"The time interval after which the client should
contact any available server to extend the lifetimes
of the addresses assigned to the IA_PD.";
}
uses lease-state;
}
}
container statistics {
description
"DHCPv6 message counters for the client.";
uses message-statistics;
}
}
}
/*
* Notifications
*/
notification invalid-ia-address-detected {
if-feature "non-temp-addr or temp-addr";
description
"Notification sent when an address received in an identity
association option is determined invalid. Possible conditions
include a duplicate or otherwise illegal address.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 18.2.10.1";
leaf ia-id {
type uint32;
mandatory true;
description
"IAID.";
}
leaf ia-na-t1-timer {
type uint32;
description
"The value of the T1 time field for non-temporary address
allocations (OPTION_IA_NA).";
}
leaf ia-na-t2-timer {
type uint32;
description
"The value of the preferred-lifetime field for non-temporary
address allocations (OPTION_IA_NA).";
}
leaf invalid-address {
type inet:ipv6-address;
description
"The IP address that has been detected to be invalid.";
}
leaf preferred-lifetime {
type uint32;
description
"The value of the preferred-lifetime field in
OPTION_IAADDR.";
}
leaf valid-lifetime {
type uint32;
description
"The value of the valid-lifetime field in OPTION_IAADDR.";
}
leaf ia-options {
type binary;
description
"A copy of the contents of the IAaddr-options field.";
}
leaf description {
type string;
description
"Description of the invalid Identity Association (IA)
detection error.";
}
}
notification transmission-failed {
description
"Notification sent when the transmission or retransmission
of a message fails.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 7.6";
leaf failure-type {
type enumeration {
enum solicit-timeout {
description
"Max Solicit timeout value (SOL_MAX_RT) exceeded.";
}
enum request-timeout {
description
"Max Request timeout value (REQ_MAX_RT) exceeded.";
}
enum request-retries-exceeded {
description
"Max Request retry attempts (REC_MAX_RC) exceeded.";
}
enum confirm-duration-exceeded {
description
"Max Confirm duration (CNF_MAX_RD) exceeded.";
}
enum renew-timeout {
description
"Max Renew timeout value (REN_MAX_RT) exceeded.";
}
enum rebind-timeout {
description
"Max Rebind timeout value (REB_MAX_RT)
exceeded.";
}
enum info-request-timeout {
description
"Max Information-request timeout value (INF_MAX_RT)
exceeded.";
}
enum release-retries-exceeded {
description
"Max Release retry attempts (REL_MAX_RC) exceeded.";
}
enum decline-retries-exceeded {
description
"Max Decline retry attempts (DEC_MAX_RT) exceeded.";
}
}
mandatory true;
description
"Description of the failure.";
}
leaf description {
type string;
description
"Information related to the failure, such as number of
retries and timer values.";
}
}
notification unsuccessful-status-code {
description
"Notification sent when the client receives a message that
includes an unsuccessful Status Code option.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 21.13";
leaf server-duid {
type dhc6:duid;
mandatory true;
description
"DUID of the server sending the unsuccessful error code.";
}
uses dhc6:status;
}
notification server-duid-changed {
if-feature "non-temp-addr or prefix-delegation or "
+ "temp-addr";
description
"Notification sent when the client receives a lease from a
server with different DUID to the one currently stored by the
client, e.g., in response to a Rebind message.";
reference
"RFC 8415: Dynamic Host Configuration Protocol for
IPv6 (DHCPv6), Section 18.2.5";
leaf new-server-duid {
type dhc6:duid;
mandatory true;
description
"DUID of the new server.";
}
leaf previous-server-duid {
type dhc6:duid;
mandatory true;
description
"DUID of the previous server.";
}
leaf lease-ia-na {
if-feature "non-temp-addr";
type leafref {
path "/dhcpv6-client/client-if/ia-na/ia-id";
}
description
"Reference to the IA_NA lease.";
}
leaf lease-ia-ta {
if-feature "temp-addr";
type leafref {
path "/dhcpv6-client/client-if/ia-ta/ia-id";
}
description
"Reference to the IA_TA lease.";
}
leaf lease-ia-pd {
if-feature "prefix-delegation";
type leafref {
path "/dhcpv6-client/client-if/ia-pd/ia-id";
}
description
"Reference to the IA_PD lease.";
}
}
}
<CODE ENDS>
5. Security Considerations
The YANG modules specified in this document define schemas 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 these YANG modules 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
in the 'ieft-dhcpv6-server.yang' module and their sensitivity/
vulnerability:
* Denial-of-Service (DoS) attacks, such as disabling the DHCP server
service or removing address/prefix pool configuration:
(dhc6-srv/vendor-config)
(dhc6-srv/allocation-ranges)
* Various attacks based on reconfiguring the contents of DHCPv6
options, leading to several types of security or privacy threats.
These options could redirect clients to services under an
attacker's control, for example, by changing the address of a DNS
server supplied in a DHCP option to point to a rogue server.
(dhc6-srv/option-sets)
These are the subtrees and data nodes in the 'ieft-dhcpv6-relay.yang'
module and their sensitivity/vulnerability:
* DoS attacks, based on disabling the DHCP relay function or
modifying the relay's "destination-address" to a non-existent
address.
(dhc6-rly/relay-if)
* Modifying the relay's "destination-address" to send messages to a
rogue DHCPv6 server.
(dhc6-rly/relay-if)
Some of the RPC operations in these YANG modules may be considered
sensitive or vulnerable in some network environments. It is thus
important to control access to these operations. These RPCs use
'nacm:default-deny-all'.
These are the operations in the 'ieft-dhcpv6-relay.yang' module and
their sensitivity/vulnerability:
* Deleting/clearing active address and prefix leases causing a DoS
attack, as traffic will no longer be routed to the client.
(dhc6-rly/clear-prefix-entry)
(dhc6-rly/clear-client-prefixes)
(dhc6-rly/clear-interface-prefixes)
An attacker sending DHCPv6 messages that cause the server to generate
'invalid-client-detected' and 'decline-received' notifications could
result in a DoS attack. Such an attack could be mitigated by the
NETCONF client unsubscribing from the affected notifications.
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:
The following subtrees and data nodes can be misused to track the
activity or fingerprint the device type of the host:
* Information the server holds about clients with active leases:
(dhc6-srv/allocation-ranges/allocation-range/address-pools/
address-pool/active-leases)
* Information the relay holds about clients with active leases:
(dhc6-rly/relay-if/prefix-delegation/)
Information about a server's configured address and prefix pools may
be used by an attacker for network reconnaissance [RFC7707]. The
following subtrees and data nodes could be used for this purpose:
* Information about client address allocation ranges:
(dhc6-srv/allocation-ranges/allocation-range/address-pools/
address-pool/pool-prefix)
* Information about client prefix allocation ranges:
(dhc6-srv/allocation-ranges/allocation-range/prefix-pools/
prefix-pool/pool-prefix)
[RFC7844] describes anonymity profiles for DHCP clients. These can
be used to prevent client tracking on a visited network. Support for
this can be enabled by implementing the 'anon-profile' feature in the
client module.
[RFC7824] covers privacy considerations for DHCPv6 and is applicable
here.
Security considerations related to DHCPv6 are discussed in [RFC8415].
Security considerations given in [RFC7950] are also applicable here.
6. IANA Considerations
This document registers four URIs and four YANG modules.
6.1. URI Registration
Per this document, IANA has registered the following four URIs in the
"ns" subregistry within the "IETF XML Registry" [RFC3688]:
URI: urn:ietf:params:xml:ns:yang:ietf-dhcpv6-server
Registrant Contact: The IESG.
XML: N/A; the requested URI is an XML namespace.
URI: urn:ietf:params:xml:ns:yang:ietf-dhcpv6-relay
Registrant Contact: The IESG.
XML: N/A; the requested URI is an XML namespace.
URI: urn:ietf:params:xml:ns:yang:ietf-dhcpv6-client
Registrant Contact: The IESG.
XML: N/A; the requested URI is an XML namespace.
URI: urn:ietf:params:xml:ns:yang:ietf-dhcpv6-common
Registrant Contact: The IESG.
XML: N/A; the requested URI is an XML namespace.
6.2. YANG Module Name Registration
Per this document, IANA has registered the following four YANG
modules in the "YANG Module Names" subregistry [RFC6020] within the
"YANG Parameters" registry.
name: ietf-dhcpv6-server
namespace: urn:ietf:params:xml:ns:yang:ietf-dhcpv6-server
maintained by IANA: N
prefix: dhc6-srv
reference: RFC 9243
name: ietf-dhcpv6-relay
namespace: urn:ietf:params:xml:ns:yang:ietf-dhcpv6-relay
maintained by IANA: N
prefix: dhc6-rly
reference: RFC 9243
name: ietf-dhcpv6-client
namespace: urn:ietf:params:xml:ns:yang:ietf-dhcpv6-client
maintained by IANA: N
prefix: dhc6-clnt
reference: RFC 9243
name: ietf-dhcpv6-common
namespace: urn:ietf:params:xml:ns:yang:ietf-dhcpv6-common
maintained by IANA: N
prefix: dhc6
reference: RFC 9243
7. References
7.1. Normative References
[BCP18] Alvestrand, H., "IETF Policy on Character Sets and
Languages", BCP 18, RFC 2277, January 1998.
<https://www.rfc-editor.org/info/bcp18>
[IANA-DHCPV6-AUTH-NAMESPACES]
IANA, "Dynamic Host Configuration Protocol (DHCP)
Authentication Option Name Spaces",
<https://www.iana.org/assignments/auth-namespaces>.
[IANA-DHCPV6-OPTION-CODES]
IANA, "Option Codes",
<https://www.iana.org/assignments/dhcpv6-parameters>.
[IANA-DHCPV6-STATUS-CODES]
IANA, "DHCPv6 Status Codes",
<https://www.iana.org/assignments/dhcpv6-parameters>.
[IANA-HARDWARE-TYPES]
IANA, "Hardware Types",
<https://www.iana.org/assignments/arp-parameters>.
[IANA-PEN] IANA, "Private Enterprise Numbers",
<https://www.iana.org/assignments/enterprise-numbers>.
[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>.
[RFC3118] Droms, R., Ed. and W. Arbaugh, Ed., "Authentication for
DHCP Messages", RFC 3118, DOI 10.17487/RFC3118, June 2001,
<https://www.rfc-editor.org/info/rfc3118>.
[RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688,
DOI 10.17487/RFC3688, January 2004,
<https://www.rfc-editor.org/info/rfc3688>.
[RFC6020] Bjorklund, M., Ed., "YANG - A Data Modeling Language for
the Network Configuration Protocol (NETCONF)", RFC 6020,
DOI 10.17487/RFC6020, October 2010,
<https://www.rfc-editor.org/info/rfc6020>.
[RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed.,
and A. Bierman, Ed., "Network Configuration Protocol
(NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011,
<https://www.rfc-editor.org/info/rfc6241>.
[RFC6242] Wasserman, M., "Using the NETCONF Protocol over Secure
Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011,
<https://www.rfc-editor.org/info/rfc6242>.
[RFC6355] Narten, T. and J. Johnson, "Definition of the UUID-Based
DHCPv6 Unique Identifier (DUID-UUID)", RFC 6355,
DOI 10.17487/RFC6355, August 2011,
<https://www.rfc-editor.org/info/rfc6355>.
[RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types",
RFC 6991, DOI 10.17487/RFC6991, July 2013,
<https://www.rfc-editor.org/info/rfc6991>.
[RFC7844] Huitema, C., Mrugalski, T., and S. Krishnan, "Anonymity
Profiles for DHCP Clients", RFC 7844,
DOI 10.17487/RFC7844, May 2016,
<https://www.rfc-editor.org/info/rfc7844>.
[RFC7950] Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language",
RFC 7950, DOI 10.17487/RFC7950, August 2016,
<https://www.rfc-editor.org/info/rfc7950>.
[RFC8040] Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF
Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017,
<https://www.rfc-editor.org/info/rfc8040>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/info/rfc8174>.
[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>.
[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>.
[RFC8415] Mrugalski, T., Siodelski, M., Volz, B., Yourtchenko, A.,
Richardson, M., Jiang, S., Lemon, T., and T. Winters,
"Dynamic Host Configuration Protocol for IPv6 (DHCPv6)",
RFC 8415, DOI 10.17487/RFC8415, November 2018,
<https://www.rfc-editor.org/info/rfc8415>.
[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>.
[RFC8987] Farrer, I., Kottapalli, N., Hunek, M., and R. Patterson,
"DHCPv6 Prefix Delegating Relay Requirements", RFC 8987,
DOI 10.17487/RFC8987, February 2021,
<https://www.rfc-editor.org/info/rfc8987>.
7.2. Informative References
[GROUPINGS-TLS]
Watsen, K., "YANG Groupings for TLS Clients and TLS
Servers", Work in Progress, Internet-Draft, draft-ietf-
netconf-tls-client-server-28, 24 May 2022,
<https://datatracker.ietf.org/doc/html/draft-ietf-netconf-
tls-client-server-28>.
[RFC3319] Schulzrinne, H. and B. Volz, "Dynamic Host Configuration
Protocol (DHCPv6) Options for Session Initiation Protocol
(SIP) Servers", RFC 3319, DOI 10.17487/RFC3319, July 2003,
<https://www.rfc-editor.org/info/rfc3319>.
[RFC7707] Gont, F. and T. Chown, "Network Reconnaissance in IPv6
Networks", RFC 7707, DOI 10.17487/RFC7707, March 2016,
<https://www.rfc-editor.org/info/rfc7707>.
[RFC7824] Krishnan, S., Mrugalski, T., and S. Jiang, "Privacy
Considerations for DHCPv6", RFC 7824,
DOI 10.17487/RFC7824, May 2016,
<https://www.rfc-editor.org/info/rfc7824>.
Appendix A. Data Tree Examples
This section contains XML examples of data trees for the different
DHCPv6 elements.
A.1. DHCPv6 Server Configuration Examples
The following example shows a basic configuration for a server. The
configuration defines:
* enabling the DHCP server function,
* the server's DUID,
* an option set (id=1) with configuration for the Solicit Max Retry
Timeout (SOL_MAX_RT (82)) option,
* a single network range (2001:db8::/32), and
* a single address pool, with start and end addresses, relevant
lease timers, and an 'option-set-id' of "1" referencing the option
set configured above.
<dhcpv6-server
xmlns="urn:ietf:params:xml:ns:yang:ietf-dhcpv6-server">
<enabled>true</enabled>
<server-duid>000200090CC084D303000912</server-duid>
<vendor-config/>
<option-sets>
<option-set>
<option-set-id>1</option-set-id>
<description>Example DHCP option set</description>
<sol-max-rt-option>
<sol-max-rt-value>3600</sol-max-rt-value>
</sol-max-rt-option>
</option-set>
</option-sets>
<class-selector/>
<allocation-ranges>
<valid-lifetime>54000</valid-lifetime>
<renew-time>7200</renew-time>
<rebind-time>32400</rebind-time>
<preferred-lifetime>43200</preferred-lifetime>
<allocation-range>
<id>1</id>
<description>example-allocation-range</description>
<network-prefix>2001:db8::/32</network-prefix>
<option-set-id>1</option-set-id>
<address-pools>
<address-pool>
<pool-id>1</pool-id>
<pool-prefix>2001:db8:1:1::/64</pool-prefix>
<start-address>2001:db8:1:1::1000</start-address>
<end-address>2001:db8:1:1::2000</end-address>
<max-address-utilization>50</max-address-utilization>
<option-set-id>1</option-set-id>
</address-pool>
</address-pools>
</allocation-range>
</allocation-ranges>
</dhcpv6-server>
Figure 4: Basic Server Configuration Example XML
The following example configuration snippet shows a static host
reservation within an address pool. The host's lease timers are
configured to be longer than hosts from the pool with dynamically
assigned addresses.
<address-pools>
<address-pool>
<pool-id>1</pool-id>
<pool-prefix>2001:db8:1:1::/64</pool-prefix>
<start-address>2001:db8:1:1::1000</start-address>
<end-address>2001:db8:1:1::2000</end-address>
<max-address-utilization>50</max-address-utilization>
<option-set-id>1</option-set-id>
<host-reservations>
<host-reservation>
<reserved-addr>2001:db8:1:1::1001</reserved-addr>
<client-duid>00052001db81</client-duid>
<option-set-id>1</option-set-id>
<valid-lifetime>604800</valid-lifetime>
<renew-time>86400</renew-time>
<rebind-time>172800</rebind-time>
<preferred-lifetime>345600</preferred-lifetime>
</host-reservation>
</host-reservations>
</address-pool>
</address-pools>
Figure 5: Server Host Reservation Configuration Example XML Snippet
The following example configuration snippet shows a network range and
pool to be used for delegating prefixes to clients. In this example,
each client will receive a /56 prefix.
The 'max-pd-space-utilization' is set to 80 percent so that a
'prefix-pool-utilization-threshold-exceeded' notification will be
raised if the number of prefix allocations exceeds this.
<allocation-ranges>
<allocation-range>
<id>1</id>
<description>prefix-pool-example</description>
<network-prefix>2001:db8::/32</network-prefix>
<prefix-pools>
<valid-lifetime>54000</valid-lifetime>
<renew-time>7200</renew-time>
<rebind-time>32400</rebind-time>
<preferred-lifetime>43200</preferred-lifetime>
<prefix-pool>
<pool-id>0</pool-id>
<option-set-id>1</option-set-id>
<pool-prefix>2001:db8:1::/48</pool-prefix>
<client-prefix-length>56</client-prefix-length>
<max-pd-space-utilization>80</max-pd-space-utilization>
</prefix-pool>
</prefix-pools>
</allocation-range>
</allocation-ranges>
Figure 6: Server Prefix Delegation Configuration Example XML Snippet
The next example configuration snippet shows a set of options that
may be returned to clients, depending on the contents of a received
DHCP request message. The option set ID is '1', which will be
referenced by other places in the configuration (e.g., address pool
configuration) as the available options for clients that request
them.
The example shows how the option definitions can be extended via
augmentation. In this case, "OPTION_SIP_SERVER_D (21) SIP Servers
Domain-Name List" from the example module in Appendix B has been
augmented to the server's option set.
<option-sets>
<option-set>
<option-set-id>1</option-set-id>
<description>Example DHCP option set</description>
<vendor-specific-information-options>
<vendor-specific-information-option>
<enterprise-number>32473</enterprise-number>
<vendor-option-data>
<sub-option-code>01</sub-option-code>
<sub-option-data>1234abcd</sub-option-data>
</vendor-option-data>
<vendor-option-data>
<sub-option-code>02</sub-option-code>
<sub-option-data>abcd1234</sub-option-data>
</vendor-option-data>
</vendor-specific-information-option>
</vendor-specific-information-options>
<sol-max-rt-option>
<sol-max-rt-value>3600</sol-max-rt-value>
</sol-max-rt-option>
<sip-server-domain-name-list-option
xmlns="https://example.com/ns/example-dhcpv6-opt-sip-serv">
<sip-server>
<sip-serv-id>0</sip-serv-id>
<sip-serv-domain-name>sip1.example.org</sip-serv-domain-name>
</sip-server>
<sip-server>
<sip-serv-id>1</sip-serv-id>
<sip-serv-domain-name>sip2.example.org</sip-serv-domain-name>
</sip-server>
</sip-server-domain-name-list-option>
</option-set>
</option-sets>
Figure 7: Server Option Set Configuration Example XML Snippet
A.2. DHCPv6 Relay Configuration Example
The following example shows a basic configuration for a single DHCP
relay interface and its interaction with the ietf-interfaces module.
The configuration shows two XML documents, one for ietf-interfaces
and a second for ietf-dhcpv6-relay, defining:
* configuring an interface using the ietf-interfaces module that the
relay configuration will be applied to,
* enabling the DHCP relay function globally and for the relevant
interface,
* referencing the interface that the relay configuration is relevant
for via an interface-ref to the ietf-interfaces module,
* defining two destination addresses that incoming DHCP messages
will be relayed to,
* configuring the link-address value that will be sent in the relay-
forward message, and
* configuring a value for the Interface ID Option
(OPTION_INTERFACE_ID (18)), which will be included in the relay
forward message.
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
<interface>
<name>eth0</name>
<type>ianaift:ethernetCsmacd</type>
<description>DHCPv6 Relay Interface</description>
<enabled>true</enabled>
</interface>
</interfaces>
<dhcpv6-relay xmlns="urn:ietf:params:xml:ns:yang:ietf-dhcpv6-relay">
<enabled>true</enabled>
<relay-if>
<if-name>eth0</if-name>
<enabled>true</enabled>
<destination-address>2001:db8:2::1</destination-address>
<destination-address>2001:db8:2::2</destination-address>
<link-address>2001:db8:3::1</link-address>
<relay-options>
<interface-id-option>
<interface-id>EXAMPLEINTERFACEID01</interface-id>
</interface-id-option>
</relay-options>
</relay-if>
</dhcpv6-relay>
Figure 8: Basic Relay Configuration Example XML
A.3. DHCPv6 Client Configuration Example
The following example shows a basic configuration for a DHCP client
and its interaction with the ietf-interfaces module. The
configuration shows two XML documents, one for ietf-interfaces and a
second for ietf-dhcpv6-client, defining:
* configuring an interface using the ietf-interfaces module that the
client configuration will be applied to,
* enabling the DHCP client function globally and for the relevant
interface,
* referencing the interface that the client configuration is
relevant for via an interface-ref to the ietf-interfaces module,
* setting the DUID for the DHCPv6-enabled interface,
* configuring a list of option codes that will be requested by the
client in its Option Request Option (OPTION_ORO (6)),
* configuring a single instance of the Vendor-specific Information
Option (OPTION_VENDOR_OPTS (17)) with a single sub-option data
item,
* requesting a non-temporary IPv6 address (IA_NA) with an identity
association interface identifier of 1, and
* requesting an IPv6 delegated prefix address (IA_PD) with an
identity association interface identifier of 2.
<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"
xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">
<interface>
<name>eth0</name>
<type>ianaift:ethernetCsmacd</type>
<description>DHCPv6 Relay Interface</description>
<enabled>true</enabled>
</interface>
</interfaces>
<dhcpv6-client
xmlns="urn:ietf:params:xml:ns:yang:ietf-dhcpv6-client">
<enabled>true</enabled>
<client-if>
<if-name>eth0</if-name>
<enabled>true</enabled>
<interface-duid>000200090CC084D303000913</interface-duid>
<client-configured-options>
<option-request-option>
<oro-option>17</oro-option>
<oro-option>23</oro-option>
<oro-option>24</oro-option>
<oro-option>82</oro-option>
</option-request-option>
<vendor-specific-information-options>
<vendor-specific-information-option>
<enterprise-number>32473</enterprise-number>
<vendor-option-data>
<sub-option-code>1</sub-option-code>
<sub-option-data>abcd1234</sub-option-data>
</vendor-option-data>
</vendor-specific-information-option>
</vendor-specific-information-options>
</client-configured-options>
<ia-na>
<ia-id>1</ia-id>
</ia-na>
<ia-pd>
<ia-id>2</ia-id>
</ia-pd>
</client-if>
</dhcpv6-client>
Figure 9: Basic Client Configuration Example XML
Appendix B. Example of Augmenting Additional DHCPv6 Option Definitions
The following section provides an example of how the DHCPv6 option
definitions can be extended to include additional options. It is
expected that additional specification documents will be published
for this in the future.
The example defines YANG modules for OPTION_SIP_SERVER_D (21) and
OPTION_SIP_SERVER_D (22) as specified in [RFC3319]. An example XML
configuration, showing the interworking with other modules, is
provided in Figure 7.
The module is constructed as follows:
* The module is named using a meaningful, shortened version of the
document name in which the DHCP option format is specified.
* A separate grouping is used to define each option.
* The name of the option is taken from the registered IANA name for
the option, with an '-option' suffix added.
* The description field is taken from the relevant option code name
and number.
* The reference section is the number and name of the RFC in which
the DHCPv6 option is defined.
* The remaining fields match the fields in the DHCP option. They
are in the same order as defined in the DHCP option. Wherever
possible, the format that is defined for the DHCP field should be
matched by the relevant YANG type.
* Fields that can have multiple entries or instances are defined
using list or leaf-list nodes.
Below the groupings for option definitions, augment statements are
used to add the option definitions for use in the relevant DHCP
element's module (server, relay, and/or client).
<CODE BEGINS>
module example-dhcpv6-opt-sip-serv {
yang-version 1.1;
namespace "https://example.com/ns/"
+ "example-dhcpv6-opt-sip-serv";
prefix sip-srv;
import ietf-inet-types {
prefix inet;
}
import ietf-dhcpv6-server {
prefix dhc6-srv;
}
organization
"IETF Dynamic Host Configuration (DHC) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/dhc/>
WG List: <mailto:dhcwg@ietf.org>
Author: Yong Cui <yong@csnet1.cs.tsinghua.edu.cn>
Author: Linhui Sun <lh.sunlinh@gmail.com>
Editor: Ian Farrer <ian.farrer@telekom.de>
Author: Sladjana Zeichlin <sladjana.zechlin@telekom.de>
Author: Zihao He <hezihao9512@gmail.com>
Author: Michal Nowikowski <godfryd@isc.org>";
description
"This YANG module contains DHCPv6 options defined in RFC 8415
that can be used by DHCPv6 servers.
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 9243
(https://www.rfc-editor.org/info/rfc9243); see the RFC itself
for full legal notices.";
revision 2022-06-20 {
description
"Initial revision.";
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
/*
* Groupings
*/
grouping sip-server-domain-name-list-option-group {
description
"OPTION_SIP_SERVER_D (21) SIP Servers Domain-Name List.";
reference
"RFC 3319: Dynamic Host Configuration Protocol
(DHCPv6) Options for Session Initiation Protocol (SIP)
Servers";
container sip-server-domain-name-list-option {
description
"OPTION_SIP_SERVER_D (21) SIP Servers Domain Name List
Option.";
list sip-server {
key "sip-serv-id";
description
"SIP server information.";
leaf sip-serv-id {
type uint8;
description
"SIP server list identifier.";
}
leaf sip-serv-domain-name {
type inet:domain-name;
description
"SIP server domain name.";
}
}
}
}
grouping sip-server-address-list-option-group {
description
"OPTION_SIP_SERVER_A (22) SIP Servers IPv6 Address List.";
reference
"RFC 3319: Dynamic Host Configuration Protocol
(DHCPv6) Options for Session Initiation Protocol (SIP)
Servers";
container sip-server-address-list-option {
description
"OPTION_SIP_SERVER_A (22) SIP Servers IPv6 Address List
Option.";
list sip-server {
key "sip-serv-id";
description
"SIP server information.";
leaf sip-serv-id {
type uint8;
description
"SIP server list entry identifier.";
}
leaf sip-serv-addr {
type inet:ipv6-address;
description
"SIP server IPv6 address.";
}
}
}
}
/*
* Augmentations
*/
augment "/dhc6-srv:dhcpv6-server/dhc6-srv:option-sets/"
+ "dhc6-srv:option-set" {
description
"Augment the option definition groupings to the server
module.";
uses sip-server-domain-name-list-option-group;
uses sip-server-address-list-option-group;
}
}
<CODE ENDS>
The correct location to augment the new option definition(s) will
vary according to the specific rules defined for the use of that
specific option. For example, for options that will be augmented
into the ietf-dhcpv6-server module, in many cases, these will be
augmented to:
'/dhc6-srv:dhc6-srv/dhc6-srv:option-sets/dhc6-srv:option-set'
so that they can be defined within option sets. However, there are
some options that are only applicable for specific deployment
scenarios, and in these cases, it may be more logical to augment the
option group to a location relevant for the option.
One example for this could be OPTION_PD_EXCLUDE (67). This option is
only relevant in combination with a delegated prefix that contains a
specific prefix. In this case, the following location for the
augmentation may be more suitable:
'/dhc6-srv:dhc6-srv/dhc6-srv:allocation-ranges/dhc6-srv:allocation-
range/dhc6-srv:prefix-pools/dhc6-srv:prefix-pool'
Appendix C. Example Vendor-Specific Server Configuration Module
This section shows how to extend the server YANG module defined in
this document with vendor-specific configuration nodes, e.g.,
configuring access to a lease storage database.
The example module defines additional server attributes, such as name
and description. Storage for leases is configured using a lease-
storage container. It allows storing leases in one of three options:
memory (memfile), MySQL, and PostgreSQL. For each case, the
necessary configuration parameters are provided.
For simplicity, this example module assumes that the DHCPv6 server is
colocated with the MySQL or PostgreSQL database server and can serve
traffic securely on the localhost without additional cryptographic
protection. In a production deployment, these functions would likely
not be colocated and thus use TLS to secure the database connection
between the DHCPv6 server and database server. A YANG module for
configuring TLS is defined in [GROUPINGS-TLS].
At the end, there is an augment statement that adds the vendor-
specific configuration defined in "dhcpv6-server-config:config" under
the "/dhcpv6-server:config/dhcpv6-server:vendor-config" mount point.
<CODE BEGINS>
module example-dhcpv6-server-conf {
yang-version 1.1;
namespace "https://example.com/ns/"
+ "example-dhcpv6-server-conf";
prefix dhc6-srv-conf;
import ietf-inet-types {
prefix inet;
}
import ietf-interfaces {
prefix if;
}
import ietf-dhcpv6-server {
prefix dhc6-srv;
}
organization
"IETF Dynamic Host Configuration (DHC) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/dhc/>
WG List: <mailto:dhcwg@ietf.org>
Author: Yong Cui <yong@csnet1.cs.tsinghua.edu.cn>
Author: Linhui Sun <lh.sunlinh@gmail.com>
Editor: Ian Farrer <ian.farrer@telekom.de>
Author: Sladjana Zeichlin <sladjana.zechlin@telekom.de>
Author: Zihao He <hezihao9512@gmail.com>
Author: Michal Nowikowski <godfryd@isc.org>";
description
"This YANG module defines components for the configuration and
management of vendor-/implementation-specific DHCPv6 server
functionality. As this functionality varies greatly between
different implementations, the module is provided as an example
only.
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 9243
(https://www.rfc-editor.org/info/rfc9243); see the RFC itself
for full legal notices.";
revision 2022-06-20 {
description
"Initial revision.";
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
/*
* Groupings
*/
grouping config {
description
"Parameters necessary for the configuration of a DHCPv6
server.";
container serv-attributes {
description
"Contains basic attributes necessary for running a DHCPv6
server.";
leaf name {
type string;
description
"Name of the DHCPv6 server.";
}
leaf description {
type string;
description
"Description of the DHCPv6 server.";
}
leaf ipv6-listen-port {
type uint16;
default "547";
description
"UDP port that the server will listen on.";
}
choice listening-interfaces {
default "all-interfaces";
description
"Configures which interface or addresses the server will
listen for incoming messages on.";
case all-interfaces {
container all-interfaces {
presence "true";
description
"Configures the server to listen for incoming messages
on all IPv6 addresses (unicast and multicast) on all
of its network interfaces.";
}
}
case interface-list {
leaf-list interfaces {
type if:interface-ref;
description
"List of interfaces on which the server will listen
for incoming messages. Messages addressed to any
valid IPv6 address (unicast and multicast) will be
received.";
}
}
case address-list {
leaf-list address-list {
type inet:ipv6-address;
description
"List of IPv6 address(es) on which the server will
listen for incoming DHCPv6 messages.";
}
}
}
leaf-list interfaces-config {
type if:interface-ref;
default "if:interfaces/if:interface/if:name";
description
"A leaf list of interfaces on which the server should
listen.";
}
container lease-storage {
description
"Configures how the server will store leases.";
choice storage-type {
description
"The type of storage that will be used for lease
information.";
case memfile {
description
"Configuration for storing leases information in a
Comma-Separated Value (CSV) file.";
leaf memfile-name {
type string;
description
"Specifies the absolute location of the lease file.
The format of the string follows the semantics of
the relevant operating system.";
}
leaf memfile-lfc-interval {
type uint64;
description
"Specifies the interval in seconds, at which the
server will perform a lease file cleanup (LFC).";
}
}
case mysql {
leaf mysql-name {
type string;
description
"Name of the MySQL database, running on the
localhost.";
}
leaf mysql-username {
type string;
description
"User name of the account under which the server
will access the database.";
}
leaf mysql-password {
type string;
description
"Password of the account under which the server
will access the database.";
}
leaf mysql-port {
type inet:port-number;
default "3306";
description
"If the database is located on a different system,
the port number may be specified.";
}
leaf mysql-lfc-interval {
type uint64;
description
"Specifies the interval in seconds, at which the
server will perform a lease file cleanup (LFC).";
}
leaf mysql-connect-timeout {
type uint64;
description
"Defines the timeout interval for connecting to the
database. A longer interval can be specified if the
database is remote.";
}
}
case postgresql {
leaf postgresql-name {
type string;
description
"Name of the PostgreSQL database, running on the
localhost.";
}
leaf postgresql-username {
type string;
description
"User name of the account under which the server
will access the database.";
}
leaf postgresql-password {
type string;
description
"Password of the account under which the server
will access the database.";
}
leaf postgresql-port {
type inet:port-number;
default "5432";
description
"If the database is located on a different system,
the port number may be specified.";
}
leaf postgresql-lfc-interval {
type uint64;
description
"Specifies the interval in seconds, at which the
server will perform a lease file cleanup (LFC).";
}
leaf postgresql-connect-timeout {
type uint64;
description
"Defines the timeout interval for connecting to the
database. A longer interval can be specified if the
database is remote.";
}
}
}
}
}
}
/*
* Augmentations
*/
augment "/dhc6-srv:dhcpv6-server/dhc6-srv:vendor-config" {
description
"Augment the server-specific YANG module to the
ietf-dhcpv6-server module.";
uses config;
}
}
<CODE ENDS>
Appendix D. Example Definition of Class-Selector Configuration
The module "ietf-example-dhcpv6-class-selector" provides an example
of how vendor-specific class selection configuration can be modeled
and integrated with the "ietf-dhcpv6-server" module defined in this
document.
The example module defines "client-class-names" with associated
matching rules. A client can be classified based on the "client-id",
"interface-id" (ingress interface of the client's messages), packet's
source or destination address, relay link address, relay link
interface-id, and more. Actually, there are endless methods for
classifying clients. So this standard does not try to provide full
specification for class selection; it only shows an example of how it
could be defined.
At the end of the example, augment statements are used to add the
defined class selector rules into the overall DHCPv6 addressing
hierarchy. This is done in two main parts:
* the augmented class-selector configuration in the main DHCPv6
Server configuration
* client-class leafrefs augmented to "allocation-range", "address-
pool", and "pd-pool", pointing to the "client-class-name" that is
required
The mechanism is as follows: class is associated to a client based on
rules, and then a client is allowed to get an address(es) or a
prefix(es) from a given allocation-range/pool if the class name
matches.
<CODE BEGINS>
module example-dhcpv6-class-select {
yang-version 1.1;
namespace "https://example.com/ns/"
+ "example-dhcpv6-class-select";
prefix dhc6-class-sel;
import ietf-inet-types {
prefix inet;
}
import ietf-interfaces {
prefix if;
}
import ietf-dhcpv6-common {
prefix dhc6;
}
import ietf-dhcpv6-server {
prefix dhc6-srv;
}
organization
"IETF Dynamic Host Configuration (DHC) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/dhc/>
WG List: <mailto:dhcwg@ietf.org>
Author: Yong Cui <yong@csnet1.cs.tsinghua.edu.cn>
Author: Linhui Sun <lh.sunlinh@gmail.com>
Editor: Ian Farrer <ian.farrer@telekom.de>
Author: Sladjana Zeichlin <sladjana.zechlin@telekom.de>
Author: Zihao He <hezihao9512@gmail.com>
Author: Michal Nowikowski <godfryd@isc.org>";
description
"This YANG module defines components for the definition and
configuration of the client class selector function for a
DHCPv6 server. As this functionality varies greatly between
different implementations, the module provided as an example
only.
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 9243
(https://www.rfc-editor.org/info/rfc9243); see the RFC itself
for full legal notices.";
revision 2022-06-20 {
description
"Initial revision.";
reference
"RFC 9243: A YANG Data Model for DHCPv6 Configuration";
}
/*
* Groupings
*/
grouping client-class-id {
description
"Definitions of client message classification for
authorization and assignment purposes.";
leaf client-class-name {
type string;
mandatory true;
description
"Unique identifier for client class identification list
entries.";
}
choice id-type {
mandatory true;
description
"Definitions for different client identifier types.";
case client-id-id {
leaf client-id {
type string;
mandatory true;
description
"String literal client identifier.";
}
description
"Client class selection based on a string literal client
identifier.";
}
case received-interface-id {
description
"Client class selection based on the incoming interface
of the DHCPv6 message.";
leaf received-interface {
type if:interface-ref;
description
"Reference to the interface entry for the incoming
DHCPv6 message.";
}
}
case packet-source-address-id {
description
"Client class selection based on the source address of
the DHCPv6 message.";
leaf packet-source-address {
type inet:ipv6-address;
mandatory true;
description
"Source address of the DHCPv6 message.";
}
}
case packet-destination-address-id {
description
"Client class selection based on the destination address
of the DHCPv6 message.";
leaf packet-destination-address {
type inet:ipv6-address;
mandatory true;
description
"Destination address of the DHCPv6 message.";
}
}
case relay-link-address-id {
description
"Client class selection based on the prefix of the
link-address field in the relay agent message header.";
leaf relay-link-address {
type inet:ipv6-prefix;
mandatory true;
description
"Prefix of the link-address field in the relay agent
message header.";
}
}
case relay-peer-address-id {
description
"Client class selection based on the value of the
peer-address field in the relay agent message header.";
leaf relay-peer-address {
type inet:ipv6-prefix;
mandatory true;
description
"Prefix of the peer-address field in the relay agent
message header.";
}
}
case relay-interface-id {
description
"Client class selection based on a received instance of
OPTION_INTERFACE_ID (18).";
leaf relay-interface {
type string;
description
"An opaque value of arbitrary length generated by the
relay agent to identify one of the relay agent's
interfaces.";
}
}
case user-class-option-id {
description
"Client class selection based on the value of the
OPTION_USER_CLASS (15) and its user-class-data field.";
leaf user-class-data {
type string;
mandatory true;
description
"User Class value to match.";
}
}
case vendor-class-present-id {
description
"Client class selection based on the presence of
OPTION_VENDOR_CLASS (16) in the received message.";
leaf vendor-class-present {
type boolean;
mandatory true;
description
"Presence of OPTION_VENDOR_CLASS (16) in the received
message.";
}
}
case vendor-class-option-enterprise-number-id {
description
"Client class selection based on the value of the
enterprise-number field in OPTION_VENDOR_CLASS (16).";
leaf vendor-class-option-enterprise-number {
type uint32;
mandatory true;
description
"Value of the enterprise-number field.";
}
}
case vendor-class-option-data {
description
"Client class selection based on the value of a data
field within a vendor-class-data entry for a matching
enterprise-number field in OPTION_VENDOR_CLASS (16).";
container vendor-class-option-data {
description
"Vendor class option data container.";
leaf enterprise-number {
type uint32;
description
"The vendor's registered Enterprise Number, as
maintained by IANA.";
}
leaf vendor-class-data-id {
type uint8;
description
"Vendor class data ID.";
}
leaf vendor-class-data {
type string;
description
"Opaque field for matching the client's vendor class
data.";
}
}
}
case client-duid-id {
description
"Client class selection based on the value of the
received client DUID.";
leaf duid {
type dhc6:duid;
description
"Client DUID.";
}
}
}
}
/*
* Augmentations
*/
augment "/dhc6-srv:dhcpv6-server/dhc6-srv:class-selector" {
description
"Augment class selector functions to the DHCPv6 server
module.";
container client-classes {
description
"Client classes to augment.";
list class {
key "client-class-name";
description
"List of the client class identifiers applicable to
clients served by this address pool.";
uses client-class-id;
}
}
}
augment "/dhc6-srv:dhcpv6-server/"
+ "dhc6-srv:allocation-ranges/dhc6-srv:allocation-range" {
description
"Augment class selector functions to the DHCPv6 server
allocation-ranges.";
leaf-list client-class {
type leafref {
path "/dhc6-srv:dhcpv6-server/dhc6-srv:"
+ "class-selector/client-classes/class/client-class-name";
}
description
"Leafrefs to client classes.";
}
}
augment "/dhc6-srv:dhcpv6-server/dhc6-srv:"
+ "allocation-ranges/dhc6-srv:allocation-range/dhc6-srv:"
+ "address-pools/dhc6-srv:address-pool" {
description
"Augment class selector functions to the DHCPv6 server
address-pools.";
leaf-list client-class {
type leafref {
path "/dhc6-srv:dhcpv6-server/dhc6-srv:"
+ "class-selector/client-classes/class/client-class-name";
}
description
"Leafrefs to client classes.";
}
}
augment "/dhc6-srv:dhcpv6-server/dhc6-srv:"
+ "allocation-ranges/dhc6-srv:allocation-range/dhc6-srv:"
+ "prefix-pools/dhc6-srv:prefix-pool" {
description
"Augment class selector functions to the DHCPv6
server prefix-pools.";
leaf-list client-class {
type leafref {
path "/dhc6-srv:dhcpv6-server/dhc6-srv:"
+ "class-selector/client-classes/class/client-class-name";
}
description
"Leafrefs to client classes.";
}
}
}
<CODE ENDS>
Acknowledgments
The authors would like to thank Qi Sun, Lishan Li, Hao Wang, Tomek
Mrugalski, Marcin Siodelski, Bernie Volz, Ted Lemon, Bing Liu, Tom
Petch, Acee Lindem, Benjamin Kaduk, Kris Lambrechts, and Paul Dumitru
for their valuable comments and contributions to this work.
Contributors
The following individuals are coauthors of this document:
Yong Cui
Tsinghua University
Beijing,
100084
China
Email: cuiyong@tsinghua.edu.cn
Linhui Sun
Tsinghua University
Beijing,
100084
China
Email: lh.sunlinh@gmail.com
Sladjana Zechlin
Deutsche Telekom AG
CTO-IPT, Landgrabenweg 151
53227, Bonn
Germany
Email: sladjana.zechlin@telekom.de
Zihao He
Tsinghua University
Beijing,
100084
China
Email: hezihao9512@gmail.com
Michal Nowikowski
Internet Systems Consortium
Gdansk
Poland
Email: godfryd@isc.org
Author's Address
Ian Farrer (editor)
Deutsche Telekom AG
S&TI, Landgrabenweg 151
53227 Bonn
Germany
Email: ian.farrer@telekom.de
|