summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc9647.txt
blob: 0bf45c3f1e1e2d8da3c5133f6ba86a66990a222b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
Internet Engineering Task Force (IETF)                   M. Jethanandani
Request for Comments: 9647                                Kloud Services
Category: Standards Track                                       B. Stark
ISSN: 2070-1721                                                     AT&T
                                                            October 2024


                      A YANG Data Model for Babel

Abstract

   This document defines a data model for the Babel routing protocol.
   The data model is defined using the YANG data modeling language.

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

Copyright Notice

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

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

Table of Contents

   1.  Introduction
     1.1.  Requirements Language
     1.2.  Tree Diagram Annotations
   2.  Babel Module
     2.1.  Information Model
     2.2.  Tree Diagram
     2.3.  YANG Module
   3.  IANA Considerations
     3.1.  URI Registration
     3.2.  YANG Module Name Registration
   4.  Security Considerations
   5.  References
     5.1.  Normative References
     5.2.  Informative References
   Appendix A.  Tree Diagram and Example Configurations
     A.1.  Complete Tree Diagram
     A.2.  Statistics Gathering Enabled
     A.3.  Automatic Detection of Properties
     A.4.  Override Default Properties
     A.5.  Configuring Other Properties
   Acknowledgements
   Authors' Addresses

1.  Introduction

   This document defines a data model for the Babel routing protocol
   [RFC8966].  The data model is defined using YANG 1.1 [RFC7950] and is
   compatible with Network Management Datastore Architecture (NMDA)
   [RFC8342].  It is based on the Babel information model [RFC9046].
   The data model only includes data nodes that are useful for managing
   Babel over IPv6.

1.1.  Requirements Language

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

1.2.  Tree Diagram Annotations

   For a reference to the annotations used in tree diagrams included in
   this document, please see "YANG Tree Diagrams" [RFC8340].

2.  Babel Module

   This document defines a YANG 1.1 [RFC7950] data model for the
   configuration and management of Babel.  The YANG module is based on
   the Babel information model [RFC9046].

2.1.  Information Model

   It's worth noting a few differences between the Babel information
   model and this data module.  The information model mandates the
   definition of some of the attributes, e.g., "babel-implementation-
   version" or the "babel-self-router-id".  These attributes are marked
   as read-only objects in the information module as well as in this
   data module.  However, there is no way in the data module to mandate
   that a read-only attribute be present.  It is up to the
   implementation of this data module to make sure that the attributes
   that are marked "read only" and are mandatory are indeed present.

2.2.  Tree Diagram

   The following diagram illustrates a top-level hierarchy of the model.
   In addition to the version implemented by this device, the model
   contains subtrees on "constants", "interfaces", "mac-key-set",
   "dtls", and "routes".

   module: ietf-babel

     augment /rt:routing/rt:control-plane-protocols
               /rt:control-plane-protocol:
       +--rw babel!
          +--ro version?              string
          +--rw enable                boolean
          +--ro router-id?            binary
          +--ro seqno?                uint16
          +--rw statistics-enabled?   boolean
          +--rw constants
          |     ...
          +--rw interfaces* [reference]
          |     ...
          +--rw mac-key-set* [name]
          |     ...
          +--rw dtls* [name]
          |     ...
          +--ro routes* [prefix]
                ...

   The "interfaces" subtree describes attributes such as the "interface"
   object that is being referenced; the type of link, e.g., wired,
   wireless, or tunnel, as enumerated by "metric-algorithm" and "split-
   horizon"; and whether the interface is enabled or not.

   The "constants" subtree describes the UDP port used for sending and
   receiving Babel messages and the multicast group used to send and
   receive announcements on IPv6.

   The "routes" subtree describes objects such as the prefix for which
   the route is advertised, a reference to the neighboring route, and
   the "next-hop" address.

   Finally, for security, two subtrees are defined to contain Message
   Authentication Code (MAC) keys and DTLS certificates.  The "mac-key-
   set" subtree contains keys used with the MAC security mechanism.  The
   boolean flag "default-apply" indicates whether the set of MAC keys is
   automatically applied to new interfaces.  The "dtls" subtree contains
   certificates used with the DTLS security mechanism.  Similar to the
   MAC mechanism, the boolean flag "default-apply" indicates whether the
   set of DTLS certificates is automatically applied to new interfaces.

2.3.  YANG Module

   This YANG module augments the YANG routing management module
   [RFC8349] to provide a common framework for all routing subsystems.
   By augmenting the module, it provides a common building block for
   routes and Routing Information Bases (RIBs).  It also has a reference
   to an interface defined by "A YANG Data Model for Interface
   Management" [RFC8343].

   A router running the Babel routing protocol can sometimes determine
   the parameters it needs to use for an interface based on the
   interface name.  For example, it can detect that eth0 is a wired
   interface and that wlan0 is a wireless interface.  This is not true
   for a tunnel interface, where the link parameters need to be
   configured explicitly.

   For a wired interface, it will assume "two-out-of-three" is set for
   "metric-algorithm" and "split-horizon" is set to true.  On the other
   hand, for a wireless interface, it will assume "etx" is set for
   "metric-algorithm" and "split-horizon" is set to false.  However, if
   the wired link is connected to a wireless radio, the values can be
   overridden by setting "metric-algorithm" to "etx" and "split-horizon"
   to false.  Similarly, an interface that is a metered 3G link and is
   used for fallback connectivity needs much higher default time
   constants, e.g., "mcast-hello-interval" and "update-interval", in
   order to avoid carrying control traffic as much as possible.

   In addition to the modules used above, this module imports
   definitions from "Common YANG Data Types" [RFC6991] and references
   "HMAC: Keyed-Hashing for Message Authentication" [RFC2104], "Using
   HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512 with IPsec" [RFC4868],
   "Textual Encodings of PKIX, PKCS, and CMS Structures" [RFC7468], "The
   BLAKE2 Cryptographic Hash and Message Authentication Code (MAC)"
   [RFC7693], "Network Configuration Access Control Model" [RFC8341],
   "The Babel Routing Protocol" [RFC8966], "MAC Authentication for the
   Babel Routing Protocol" [RFC8967], "Babel Information Model"
   [RFC9046], "The Datagram Transport Layer Security (DTLS) Protocol
   Version 1.3" [RFC9147], and "YANG Data Types and Groupings for
   Cryptography" [RFC9640].

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

     import ietf-yang-types {
       prefix yang;
       reference
         "RFC 6991: Common YANG Data Types";
     }
     import ietf-inet-types {
       prefix inet;
       reference
         "RFC 6991: Common YANG Data Types";
     }
     import ietf-interfaces {
       prefix if;
       reference
         "RFC 8343: A YANG Data Model for Interface Management";
     }
     import ietf-routing {
       prefix rt;
       reference
         "RFC 8349: A YANG Data Model for Routing Management (NMDA
          Version)";
     }
     import ietf-crypto-types {
       prefix ct;
       reference
         "RFC 9640: YANG Data Types and Groupings
          for Cryptography";
     }
     import ietf-netconf-acm {
       prefix nacm;
       reference
         "RFC 8341: Network Configuration Access Control Model";
     }

     organization
       "IETF Babel routing protocol Working Group";

     contact
       "WG Web:  https://datatracker.ietf.org/wg/babel/
        WG List: babel@ietf.org

        Editor: Mahesh Jethanandani
                mjethanandani@gmail.com
        Editor: Barbara Stark
                bs7652@att.com";

     description
       "This YANG module defines a model for the Babel routing
        protocol.

        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) 2024 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 9647
        (https://www.rfc-editor.org/info/rfc9647); see the RFC itself
        for full legal notices.";

     revision 2024-10-10 {
       description
         "Initial version.";
       reference
         "RFC 9647: A YANG Data Model for Babel";
     }

     /*
      * Features
      */

     feature two-out-of-three-supported {
       description
         "This implementation supports the '2-out-of-3'
          computation algorithm.";
     }

     feature etx-supported {
       description
         "This implementation supports the Expected Transmission Count
          (ETX) metric computation algorithm.";
     }

     feature mac-supported {
       description
         "This implementation supports MAC-based security.";
       reference
         "RFC 8967: MAC Authentication for the Babel Routing
          Protocol";
     }

     feature dtls-supported {
       description
         "This implementation supports DTLS-based security.";
       reference
         "RFC 8968: Babel Routing Protocol over Datagram
          Transport Layer Security";
     }

     feature hmac-sha256-supported {
       description
         "This implementation supports the HMAC-SHA256 MAC algorithm.";
       reference
         "RFC 8967: MAC Authentication for the Babel Routing
          Protocol";
     }

     feature blake2s-supported {
       description
         "This implementation supports BLAKE2s MAC algorithms.";
       reference
         "RFC 8967: MAC Authentication for the Babel Routing
          Protocol";
     }

     feature x-509-supported {
       description
         "This implementation supports the X.509 certificate type.";
       reference
         "RFC 8968: Babel Routing Protocol over Datagram
          Transport Layer Security";
     }

     feature raw-public-key-supported {
       description
         "This implementation supports the raw public key certificate
          type.";
       reference
         "RFC 8968: Babel Routing Protocol over Datagram
          Transport Layer Security";
     }

     /*
      * Identities
      */

     identity metric-comp-algorithms {
       description
         "Base identity from which all Babel metric computation
          algorithms MUST be derived.";
     }

     identity two-out-of-three {
       if-feature "two-out-of-three-supported";
       base metric-comp-algorithms;
       description
         "2-out-of-3 algorithm.";
       reference
         "RFC 8966: The Babel Routing Protocol, Section A.2.1";
     }

     identity etx {
       if-feature "etx-supported";
       base metric-comp-algorithms;
       description
         "Expected Transmission Count (ETX) metric computation
          algorithm.";
       reference
         "RFC 8966: The Babel Routing Protocol, Section A.2.2";
     }

     /*
      * Babel MAC algorithms identities.
      */

     identity mac-algorithms {
       description
         "Base identity for all Babel MAC algorithms.";
     }

     identity hmac-sha256 {
       if-feature "mac-supported";
       if-feature "hmac-sha256-supported";
       base mac-algorithms;
       description
         "HMAC-SHA256 algorithm supported.";
       reference
         "RFC 4868: Using HMAC-SHA-256, HMAC-SHA-384, and HMAC-SHA-512
          with IPsec";
     }

     identity blake2s {
       if-feature "mac-supported";
       if-feature "blake2s-supported";
       base mac-algorithms;
       description
         "BLAKE2s algorithms supported. Specifically, BLAKE2-128 is
          supported.";
       reference
         "RFC 7693: The BLAKE2 Cryptographic Hash and Message
          Authentication Code (MAC)";
     }

     /*
      * Babel Cert Types
      */

     identity dtls-cert-types {
       description
         "Base identity for Babel DTLS certificate types.";
     }

     identity x-509 {
       if-feature "dtls-supported";
       if-feature "x-509-supported";
       base dtls-cert-types;
       description
         "X.509 certificate type.";
     }

     identity raw-public-key {
       if-feature "dtls-supported";
       if-feature "raw-public-key-supported";
       base dtls-cert-types;
       description
         "Raw public key certificate type.";
     }

     /*
      * Babel routing protocol identity.
      */

     identity babel {
       base rt:routing-protocol;
       description
         "Babel routing protocol";
     }

     /*
      * Groupings
      */

     grouping routes {
       list routes {
         key "prefix";
         config false;

         leaf prefix {
           type inet:ip-prefix;
           description
             "Prefix (expressed in ip-address/prefix-length format) for
              which this route is advertised.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6";
         }

         leaf router-id {
           type binary {
             length "8";
           }
           description
             "router-id of the source router for which this route is
              advertised.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6";
         }

         leaf neighbor {
           type leafref {
             path "/rt:routing/rt:control-plane-protocols/"
                + "rt:control-plane-protocol/babel/interfaces/"
                + "neighbor-objects/neighbor-address";
           }
           description
             "Reference to the neighbor-objects entry for the neighbor
              that advertised this route.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6";
         }

         leaf received-metric {
           type union {
             type enumeration {
               enum null {
                 description
                   "Route was not received from a neighbor.";
               }
             }
             type uint16;
           }
           description
             "The metric with which this route was advertised by the
              neighbor, or maximum value (infinity) to indicate the
              route was recently retracted and is temporarily
              unreachable. This metric will be NULL if the
              route was not received from a neighbor but instead was
              injected through means external to the Babel routing
              protocol. At least one of calculated-metric or
              received-metric MUST be non-NULL.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6
              RFC 8966: The Babel Routing Protocol, Section 2.1";
         }

         leaf calculated-metric {
           type union {
             type enumeration {
               enum null {
                 description
                   "Route has not been calculated.";
               }
             }
             type uint16;
           }
           description
             "A calculated metric for this route. How the metric is
              calculated is implementation specific. Maximum value
              (infinity) indicates the route was recently retracted
              and is temporarily unreachable. At least one of
              calculated-metric or received-metric MUST be non-NULL.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6
              RFC 8966: The Babel Routing Protocol, Section 2.1";
         }

         leaf seqno {
           type uint16;
           description
             "The sequence number with which this route was
              advertised.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6";
         }

         leaf next-hop {
           type union {
             type enumeration {
               enum null {
                 description
                   "Route has no next-hop address.";
               }
             }
             type inet:ip-address;
           }
           description
             "The next-hop address of this route. This will be NULL
              if this route has no next-hop address.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6";
         }

         leaf feasible {
           type boolean;
           description
             "A boolean flag indicating whether this route is
              feasible.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6
              RFC 8966, The Babel Routing Protocol, Section 3.5.1";
         }

         leaf selected {
           type boolean;
           description
             "A boolean flag indicating whether this route is selected,
              i.e., whether it is currently being used for forwarding
              and is being advertised.";
           reference
             "RFC 9046: Babel Information Model, Section 3.6";
         }
         description
           "A set of babel-route-obj objects. Contains routes known to
            this node.";
         reference
           "RFC 9046: Babel Information Model, Section 3.6";
       }
       description
         "Common grouping for routing used in RIB.";
     }

     /*
      * Data model
      */

     augment "/rt:routing/rt:control-plane-protocols/"
           + "rt:control-plane-protocol" {
       when "derived-from-or-self(rt:type, 'babel')" {
         description
           "Augmentation is valid only when the instance of the routing
            type is of type 'babel'.";
       }
       description
         "Augments the routing module to support a common structure
          between routing protocols.";
       reference
         "RFC 8349: A YANG Data Model for Routing Management (NMDA
          Version)";

       container babel {
         presence "A Babel container.";
         description
           "Babel information objects.";
         reference
           "RFC 9046: Babel Information Model, Section 3";

         leaf version {
           type string;
           config false;
           description
             "The name and version of this implementation of the Babel
              protocol.";
           reference
             "RFC 9046: Babel Information Model, Section 3.1";
         }

         leaf enable {
           type boolean;
           mandatory true;
           description
             "When written, it configures whether the protocol should be
              enabled. A read from the <running> or <intended> datastore
              therefore indicates the configured administrative value of
              whether the protocol is enabled or not.

              A read from the <operational> datastore indicates whether
              the protocol is actually running or not, i.e., it
              indicates the operational state of the protocol.";
           reference
             "RFC 9046: Babel Information Model, Section 3.1";
         }

         leaf router-id {
           type binary;
           must '../enable = "true"';
           config false;
           description
             "Every Babel speaker is assigned a router-id, which is an
              arbitrary string of 8 octets that is assumed to be unique
              across the routing domain.

              The router-id is valid only if the protocol is enabled,
              at which time a non-zero value is assigned.";
           reference
             "RFC 9046: Babel Information Model, Section 3.1
              RFC 8966: The Babel Routing Protocol, Section 3";
         }

         leaf seqno {
           type uint16;
           config false;
           description
             "Sequence number included in route updates for routes
              originated by this node.";
           reference
             "RFC 9046: Babel Information Model, Section 3.1";
         }

         leaf statistics-enabled {
           type boolean;
           description
             "Indicates whether statistics collection is enabled
              ('true') or disabled ('false') on all interfaces.
              On transition to enabled, existing statistics
              values are not cleared and will be incremented as
              new packets are counted.";
         }

         container constants {
           description
             "Babel constants object.";
           reference
             "RFC 9046: Babel Information Model, Section 3.1";

           leaf udp-port {
             type inet:port-number;
             default "6696";
             description
               "UDP port for sending and receiving Babel messages. The
                default port is 6696.";
             reference
               "RFC 9046: Babel Information Model, Section 3.2";
           }

           leaf mcast-group {
             type inet:ip-address;
             default "ff02::1:6";
             description
               "Multicast group for sending and receiving multicast
                announcements on IPv6.";
             reference
               "RFC 9046: Babel Information Model, Section 3.2";
           }
         }

         list interfaces {
           key "reference";

           description
             "A set of Babel interface objects.";
           reference
             "RFC 9046: Babel Information Model, Section 3.3";

           leaf reference {
             type if:interface-ref;
             description
               "References the name of the interface over which Babel
                packets are sent and received.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf enable {
             type boolean;
             default "true";
             description
               "If 'true', Babel sends and receives messages on this
                interface. If 'false', Babel messages received on
                this interface are ignored and none are sent.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf metric-algorithm {
             type identityref {
               base metric-comp-algorithms;
             }
             mandatory true;
             description
               "Indicates the metric computation algorithm used on this
                interface. The value MUST be one of those identities
                based on 'metric-comp-algorithms'.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf split-horizon {
             type boolean;
             description
               "Indicates whether or not the split-horizon optimization
                is used when calculating metrics on this interface.
                A value of 'true' indicates the split-horizon
                optimization is used.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf mcast-hello-seqno {
             type uint16;
             config false;
             description
               "The current sequence number in use for multicast Hellos
                sent on this interface.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf mcast-hello-interval {
             type uint16;
             units "centiseconds";
             description
               "The current multicast Hello interval in use for Hellos
                sent on this interface.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf update-interval {
             type uint16;
             units "centiseconds";
             description
               "The current update interval in use for this interface.
                Units are centiseconds.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf mac-enable {
             type boolean;
             description
               "Indicates whether the MAC security mechanism is enabled
                ('true') or disabled ('false').";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf-list mac-key-sets {
             type leafref {
               path "../../mac-key-set/name";
             }
             description
               "List of references to the MAC entries that apply
                to this interface. When an interface instance is
                created, all MAC instances with default-apply 'true'
                will be included in this list.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf mac-verify {
             type boolean;
             description
               "A boolean flag indicating whether MACs in
                incoming Babel packets are required to be present and
                are verified.  If this parameter is 'true', incoming
                packets are required to have a valid MAC.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf dtls-enable {
             type boolean;
             description
               "Indicates whether the DTLS security mechanism is enabled
                ('true') or disabled ('false').";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf-list dtls-certs {
             type leafref {
               path "../../dtls/name";
             }
             description
               "List of references to the dtls entries that apply to
                this interface.  When an interface instance
                is created, all dtls instances with default-apply
                'true' will be included in this list.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf dtls-cached-info {
             type boolean;
             description
               "Indicates whether the cached_info extension is enabled.
                The extension is enabled for inclusion in ClientHello
                and ServerHello messages if the value is 'true'.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3
                RFC 8968: Babel Routing Protocol over
                Datagram Transport Layer Security, Appendix A";
           }

           leaf-list dtls-cert-prefer {
             type leafref {
               path "../../dtls/certs/type";
             }
             ordered-by user;
             description
               "List of supported certificate types, in order of
                preference. The values MUST be the 'type' attribute
                in the list 'certs' of the list 'dtls'
                (../../dtls/certs/type). This list is used to populate
                the server_certificate_type extension in a ClientHello.
                Values that are present in at least one instance in the
                certs object under dtls of a referenced dtls instance
                and that have a non-empty private key will be used to
                populate the client_certificate_type extension in a
                ClientHello.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3
                RFC 8968: Babel Routing Protocol over
                Datagram Transport Layer Security, Appendix A";
           }

           leaf packet-log-enable {
             type boolean;
             description
               "If 'true', logging of babel packets received on this
                interface is enabled; if 'false', babel packets are
                not logged.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3";
           }

           leaf packet-log {
             type inet:uri;
             config false;
             description
               "A reference or url link to a file that contains a
                timestamped log of packets received and sent on
                udp-port on this interface. The [libpcap] file
                format with .pcap file extension SHOULD be supported for
                packet log files. Logging is enabled / disabled by
                packet-log-enable.";
             reference
               "RFC 9046: Babel Information Model, Section 3.3
                libpcap: Libpcap File Format, Wireshark Foundation";
           }

           container statistics {
             config false;
             description
               "Statistics collection object for this interface.";
             reference
               "RFC 9046: Babel Information Model, Section 3.4";

             leaf discontinuity-time {
               type yang:date-and-time;
               mandatory true;
               description
                 "The time on the most recent occasion at which any one
                  or more of 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 sent-mcast-hello {
               type yang:counter32;
               description
                 "A count of the number of multicast Hello packets sent
                  on this interface.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.4";
             }

             leaf sent-mcast-update {
               type yang:counter32;
               description
                 "A count of the number of multicast update packets sent
                  on this interface.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.4";
             }

             leaf sent-ucast-hello {
               type yang:counter32;
               description
                 "A count of the number of unicast Hello packets sent
                  on this interface.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.4";
             }

             leaf sent-ucast-update {
               type yang:counter32;
               description
                 "A count of the number of unicast update packets sent
                  on this interface.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.4";
             }

             leaf sent-ihu {
               type yang:counter32;
               description
                 "A count of the number of 'I Heard You' (IHU) packets
                  sent on this interface.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.4";
             }

             leaf received-packets {
               type yang:counter32;
               description
                 "A count of the number of Babel packets received on
                  this interface.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.4";
             }

             action reset {
               description
                 "The information model (RFC 9046) defines reset
                  action as a system-wide reset of Babel statistics.
                  In YANG, the reset action is associated with the
                  container where the action is defined. In this case,
                  the action is associated with the statistics container
                  inside an interface. The action will therefore
                  reset statistics at an interface level.

                  Implementations that want to support a system-wide
                  reset of Babel statistics need to call this action
                  for every instance of the interface.";
               reference
                 "RFC 9046: Babel Information Model";

               input {
                 leaf reset-at {
                   type yang:date-and-time;
                   description
                     "The time when the reset was issued.";
                 }
               }

               output {
                 leaf reset-finished-at {
                   type yang:date-and-time;
                   description
                     "The time when the reset finished.";
                 }
               }
             }
           }

           list neighbor-objects {
             key "neighbor-address";
             config false;
             description
               "A set of babel neighbor objects.";
             reference
               "RFC 9046: Babel Information Model, Section 3.5";

             leaf neighbor-address {
               type inet:ip-address;
               description
                 "The IPv4 or IPv6 address from which the neighbor sends
                  packets.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf hello-mcast-history {
               type string;
               description
                 "The multicast Hello history of whether or not the
                  multicast Hello packets prior to exp-mcast-
                  hello-seqno were received, with a '1' for the most
                  recent Hello placed in the most significant bit and
                  prior Hellos shifted right (with '0' bits placed
                  between prior Hellos and the most recent Hello for any
                  Hellos not received); represented as a string of
                  hex digits encoded in utf-8. A bit that is set
                  indicates that the corresponding Hello was received,
                  and a bit that is cleared indicates that the
                  corresponding Hello was not received.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf hello-ucast-history {
               type string;
               description
                 "The unicast Hello history of whether or not the
                  unicast Hello packets prior to exp-ucast-hello-seqno
                  were received, with a '1' for the most
                  recent Hello placed in the most significant bit and
                  prior Hellos shifted right (with '0' bits placed
                  between prior Hellos and the most recent Hello for any
                  Hellos not received); represented as a string using
                  hex digits encoded in utf-8 where a '1' bit = Hello
                  received and a '0' bit = Hello not received.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf txcost {
               type int32;
               default "0";
               description
                 "Transmission cost value from the last IHU packet
                  received from this neighbor, or maximum value
                  (infinity) to indicate the IHU hold timer for this
                  neighbor has an expired description.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf exp-mcast-hello-seqno {
               type union {
                 type enumeration {
                   enum null {
                     description
                       "Multicast Hello packets are not expected, or
                        processing of multicast packets is not
                        enabled.";
                   }
                 }
                 type uint16;
               }
               description
                 "Expected multicast Hello sequence number of next Hello
                  to be received from this neighbor; if multicast Hello
                  packets are not expected, or processing of multicast
                  packets is not enabled, this MUST be NULL.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf exp-ucast-hello-seqno {
               type union {
                 type enumeration {
                   enum null {
                     description
                       "Unicast Hello packets are not expected, or
                        processing of unicast packets is not enabled.";
                   }
                 }
                 type uint16;
               }
               default "null";
               description
                 "Expected unicast Hello sequence number of next Hello
                  to be received from this neighbor; if unicast Hello
                  packets are not expected, or processing of unicast
                  packets is not enabled, this MUST be NULL.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf ucast-hello-seqno {
               type union {
                 type enumeration {
                   enum null {
                     description
                       "Unicast Hello packets are not being sent.";
                   }
                 }
                 type uint16;
               }
               default "null";
               description
                 "The current sequence number in use for unicast Hellos
                  sent to this neighbor. If unicast Hellos are not being
                  sent, this MUST be NULL.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf ucast-hello-interval {
               type uint16;
               units "centiseconds";
               description
                 "The current interval in use for unicast Hellos sent to
                  this neighbor. Units are centiseconds.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf rxcost {
               type uint16;
               description
                 "Reception cost calculated for this neighbor. This
                  value is usually derived from the Hello history, which
                  may be combined with other data, such as statistics
                  maintained by the link layer. The rxcost is sent to a
                  neighbor in each IHU.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }

             leaf cost {
               type int32;
               description
                 "Link cost is computed from the values maintained in
                  the neighbor table. The statistics are kept in the
                  neighbor table about the reception of Hellos, and the
                  txcost is computed from received IHU packets.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.5";
             }
           }
         }

         list mac-key-set {
           key "name";

           description
             "A MAC key set object. If this object is implemented, it
              provides access to parameters related to the MAC security
              mechanism.";
           reference
             "RFC 9046: Babel Information Model, Section 3.7";

           leaf name {
             type string;
             description
               "A string that uniquely identifies the MAC object.";
           }

           leaf default-apply {
             type boolean;
             description
               "A boolean flag indicating whether this object
                instance is applied to all new interfaces, by default.
                If 'true', this instance is applied to new babel-
                interfaces instances at the time they are created
                by including it in the mac-key-sets list under
                the interface. If 'false', this instance is not applied
                to new interface instances when they are created.";
             reference
               "RFC 9046: Babel Information Model, Section 3.7";
           }

           list keys {
             key "name";
             min-elements 1;
             description
               "A set of keys objects.";
             reference
               "RFC 9046: Babel Information Model, Section 3.8";

             leaf name {
               type string;
               description
                 "A unique name for this MAC key that can be used to
                  identify the key in this object instance since the
                  key value is not allowed to be read. This value can
                  only be provided when this instance is created and is
                  not subsequently writable.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.8";
             }

             leaf use-send {
               type boolean;
               mandatory true;
               description
                 "Indicates whether this key value is used to compute a
                  MAC and include that MAC in the sent Babel packet. A
                  MAC for sent packets is computed using this key if the
                  value is 'true'. If the value is 'false', this key is
                  not used to compute a MAC to include in sent Babel
                  packets.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.8";
             }

             leaf use-verify {
               type boolean;
               mandatory true;
               description
                 "Indicates whether this key value is used to verify
                  incoming Babel packets. This key is used to verify
                  incoming packets if the value is 'true'. If the value
                  is 'false', no MAC is computed from this key for
                  comparing an incoming packet.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.8";
             }

             leaf value {
               nacm:default-deny-all;
               type binary;
               mandatory true;
               description
                 "The value of the MAC key.

                  This value is of a length suitable for the associated
                  babel-mac-key-algorithm.  If the algorithm is based on
                  the Hashed Message Authentication Code (HMAC)
                  construction (RFC 2104), the length MUST be between 0
                  and an upper limit that is at least the size of the
                  output length (where the 'HMAC-SHA256' output length
                  is 32 octets as described in RFC 4868). Longer lengths
                  MAY be supported but are not necessary if the
                  management system has the ability to generate a
                  suitably random value (e.g., by randomly generating a
                  value or by using a key derivation technique as
                  recommended in the security considerations of RFC
                  8967. If the algorithm is 'BLAKE2s-128', the length
                  MUST be between 0 and 32 bytes inclusive as specified
                  by RFC 7693.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.8
                  RFC 2104: HMAC: Keyed-Hashing for Message
                            Authentication
                  RFC 4868: Using HMAC-SHA-256, HMAC-SHA-384, and
                            HMAC-SHA-512 with IPsec
                  RFC 7693: The BLAKE2 Cryptographic Hash and Message
                            Authentication Code (MAC)
                  RFC 8967:  MAC Authentication for Babel";
             }

             leaf algorithm {
               type identityref {
                 base mac-algorithms;
               }
               mandatory true;
               description
                 "The MAC algorithm used with this key. The
                  value MUST be one of the identities
                  listed with the base of 'mac-algorithms'.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.8";
             }

             action test {
               description
                 "An operation that allows the MAC key and MAC
                  algorithm to be tested to see if they produce an
                  expected outcome. Input to this operation is a
                  binary string and a calculated MAC (also in the
                  format of a binary string) for the binary string.
                  The implementation is expected to create a MAC over
                  the binary string using the value and algorithm.
                  The output of this operation is a binary indication
                  that the calculated MAC matched the input MAC
                  ('true') or the MACs did not match ('false').";
               reference
                 "RFC 9046: Babel Information Model, Section 3.8";

               input {
                 leaf test-string {
                   type binary;
                   mandatory true;
                   description
                     "Input to this operation is a binary string.
                      The implementation is expected to create
                      a MAC over this string using the value and
                      the algorithm defined as part of the
                      mac-key-set.";
                   reference
                     "RFC 9046: Babel Information Model, Section 3.8";
                 }

                 leaf mac {
                   type binary;
                   mandatory true;
                   description
                     "Input to this operation includes a MAC.
                      The implementation is expected to calculate a MAC
                      over the string using the value and algorithm of
                      this key object and compare its calculated MAC to
                      this input MAC.";
                   reference
                     "RFC 9046: Babel Information Model, Section 3.8";
                 }
               }

               output {
                 leaf indication {
                   type boolean;
                   mandatory true;
                   description
                     "The output of this operation is a binary
                      indication that the calculated MAC matched the
                      input MAC ('true') or the MACs did not match
                      ('false').";
                   reference
                     "RFC 9046: Babel Information Model, Section 3.8";
                 }
               }
             }
           }
         }

         list dtls {
           key "name";

           description
             "A dtls object. If this object is implemented,
              it provides access to parameters related to the DTLS
              security mechanism.";
           reference
             "RFC 9046: Babel Information Model, Section 3.9";

           leaf name {
             type string;
             description
               "A string that uniquely identifies a dtls object.";
           }

           leaf default-apply {
             type boolean;
             mandatory true;
             description
               "A boolean flag indicating whether this object
                instance is applied to all new interfaces, by default.
                If 'true', this instance is applied to new interface
                instances at the time they are created by including it
                in the dtls-certs list under the interface. If 'false',
                this instance is not applied to new interface
                instances when they are created.";
             reference
               "RFC 9046: Babel Information Model, Section 3.9";
           }

           list certs {
             key "name";

             min-elements 1;
             description
               "A set of cert objects. This contains
                both certificates for this implementation to present
                for authentication and to accept from others.
                Certificates with a non-empty private key
                can be presented by this implementation for
                authentication.";
             reference
               "RFC 9046: Babel Information Model, Section 3.10";

             leaf name {
               type string;
               description
                 "A unique name for this certificate that can be
                  used to identify the certificate in this object
                  instance, since the value is too long to be useful
                  for identification. This value MUST NOT be empty
                  and can only be provided when this instance is created
                  (i.e., it is not subsequently writable).";
               reference
                 "RFC 9046: Babel Information Model, Section 3.10";
             }

             leaf value {
               nacm:default-deny-write;
               type string;
               mandatory true;
               description
                 "The certificate in Privacy-Enhanced Mail (PEM) format
                  (RFC 7468). This value can only be provided when this
                  instance is created and is not subsequently
                  writable.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.10
                  RFC 7468: Textual Encodings of PKIX, PKCS, and CMS
                            Structures";
             }

             leaf type {
               nacm:default-deny-write;
               type identityref {
                 base dtls-cert-types;
               }
               mandatory true;
               description
                 "The certificate type of this object instance.
                  The value MUST be the same as one of the
                  identities listed with the base 'dtls-cert-types'.
                  This value can only be provided when this
                  instance is created and is not subsequently
                  writable.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.10";
             }

             leaf private-key {
               nacm:default-deny-all;
               type binary;
               mandatory true;
               description
                 "The value of the private key. If this is non-empty,
                  this certificate can be used by this implementation to
                  provide a certificate during DTLS handshaking.";
               reference
                 "RFC 9046: Babel Information Model, Section 3.10";
             }

             leaf algorithm {
               nacm:default-deny-write;
               type identityref {
                 base ct:private-key-format;
               }
               mandatory true;
               description
                 "Identifies the algorithm identity with which the
                  private key has been encoded. This value can only be
                  provided when this instance is created and is not
                  subsequently writable.";
             }
           }
         }
         uses routes;
       }
     }
   }
   <CODE ENDS>

3.  IANA Considerations

3.1.  URI Registration

   IANA has registered the following URI in the "ns" registry of the
   "IETF XML Registry" [RFC3688].

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

3.2.  YANG Module Name Registration

   IANA has registered the following in the "YANG Module Names" registry
   [RFC6020].

   Name:  ietf-babel
   Namespace:  urn:ietf:params:xml:ns:yang:ietf-babel
   Prefix:  babel
   Reference:  RFC 9647

4.  Security Considerations

   This section is modeled after the template defined in Section 3.7.1
   of [RFC8407].

   The "ietf-babel" YANG module defines a data model that is designed to
   be accessed via YANG-based management protocols, such as NETCONF
   [RFC6241] and RESTCONF [RFC8040].  These protocols have mandatory-to-
   implement secure transport layers (e.g., Secure Shell (SSH)
   [RFC4252], TLS [RFC8446], and QUIC [RFC9000]) and mandatory-to-
   implement mutual authentication.

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

   The security considerations outlined here are specific to the YANG
   data model and do not cover security considerations of the Babel
   protocol or its security mechanisms in "The Babel Routing Protocol"
   [RFC8966], "MAC Authentication for the Babel Routing Protocol"
   [RFC8967], and "Babel Routing Protocol over Datagram Transport Layer
   Security" [RFC8968].  Each of these has its own Security
   Considerations section for considerations that are specific to it.

   There are a number of data nodes defined in the YANG module that are
   writable/created/deleted (i.e., config true, which is the default).
   These data nodes may be considered sensitive or vulnerable in some
   network environments.  Write operations (e.g., <edit-config>) to
   these data nodes without proper protection can have a negative effect
   on network operations.  These are the subtrees and data nodes and
   their sensitivity/vulnerability from a config true perspective:

   'babel':  This container includes an 'enable' parameter that can be
      used to enable or disable use of Babel on a router.

   'babel/constants':  This container includes configuration parameters
      that can prevent reachability if misconfigured.

   'babel/interfaces':  This leaf-list has configuration parameters that
      can enable/disable security mechanisms and change performance
      characteristics of the Babel protocol.  For example, enabling
      logging of packets and giving unintended access to the log files
      gives an attacker detailed knowledge of the network and allows it
      to launch an attack on the traffic traversing the network device.

   'babel/hmac' and 'babel/dtls':  These contain security credentials
      that influence whether incoming packets are trusted and whether
      outgoing packets are produced in such a way that the receiver will
      treat them as trusted.

   Some of the readable data or config false 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 from a
   config false perspective:

   'babel':  Access to the information in the various nodes can disclose
      the network topology.  Additionally, the routes used by a network
      device may be used to mount a subsequent attack on traffic
      traversing the network device.

   'babel/hmac' and 'babel/dtls':  These contain security credentials,
      including private credentials of the router; however, it is
      required that these values not be readable.

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

   This model defines two actions.  Resetting the statistics within an
   interface container would be visible to any monitoring processes,
   which should be designed to account for the possibility of such a
   reset.  The "test" action allows for validation that a MAC key and
   MAC algorithm have been properly configured.  The MAC key is a
   sensitive piece of information, and it is important to prevent an
   attacker that does not know the MAC key from being able to determine
   the MAC value by trying different input parameters.  The "test"
   action has been designed to not reveal such information directly.
   Such information might also be revealed indirectly due to side
   channels such as the time it takes to produce a response to the
   action.  Implementations SHOULD use a constant-time comparison
   between the input MAC and the locally generated MAC value for
   comparison in order to avoid such side channel leakage.

5.  References

5.1.  Normative References

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

   [RFC4252]  Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH)
              Authentication Protocol", RFC 4252, DOI 10.17487/RFC4252,
              January 2006, <https://www.rfc-editor.org/info/rfc4252>.

   [RFC4868]  Kelly, S. and S. Frankel, "Using HMAC-SHA-256, HMAC-SHA-
              384, and HMAC-SHA-512 with IPsec", RFC 4868,
              DOI 10.17487/RFC4868, May 2007,
              <https://www.rfc-editor.org/info/rfc4868>.

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

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

   [RFC7693]  Saarinen, M., Ed. and J. Aumasson, "The BLAKE2
              Cryptographic Hash and Message Authentication Code (MAC)",
              RFC 7693, DOI 10.17487/RFC7693, November 2015,
              <https://www.rfc-editor.org/info/rfc7693>.

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

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

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

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

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

   [RFC8966]  Chroboczek, J. and D. Schinazi, "The Babel Routing
              Protocol", RFC 8966, DOI 10.17487/RFC8966, January 2021,
              <https://www.rfc-editor.org/info/rfc8966>.

   [RFC8967]  Dô, C., Kolodziejak, W., and J. Chroboczek, "MAC
              Authentication for the Babel Routing Protocol", RFC 8967,
              DOI 10.17487/RFC8967, January 2021,
              <https://www.rfc-editor.org/info/rfc8967>.

   [RFC8968]  Décimo, A., Schinazi, D., and J. Chroboczek, "Babel
              Routing Protocol over Datagram Transport Layer Security",
              RFC 8968, DOI 10.17487/RFC8968, January 2021,
              <https://www.rfc-editor.org/info/rfc8968>.

   [RFC9000]  Iyengar, J., Ed. and M. Thomson, Ed., "QUIC: A UDP-Based
              Multiplexed and Secure Transport", RFC 9000,
              DOI 10.17487/RFC9000, May 2021,
              <https://www.rfc-editor.org/info/rfc9000>.

   [RFC9046]  Stark, B. and M. Jethanandani, "Babel Information Model",
              RFC 9046, DOI 10.17487/RFC9046, June 2021,
              <https://www.rfc-editor.org/info/rfc9046>.

   [RFC9147]  Rescorla, E., Tschofenig, H., and N. Modadugu, "The
              Datagram Transport Layer Security (DTLS) Protocol Version
              1.3", RFC 9147, DOI 10.17487/RFC9147, April 2022,
              <https://www.rfc-editor.org/info/rfc9147>.

   [RFC9640]  Watsen, K., "YANG Data Types and Groupings for
              Cryptography", RFC 9640, DOI 10.17487/RFC9640, October
              2024, <https://www.rfc-editor.org/info/rfc9640>.

5.2.  Informative References

   [RFC2104]  Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed-
              Hashing for Message Authentication", RFC 2104,
              DOI 10.17487/RFC2104, February 1997,
              <https://www.rfc-editor.org/info/rfc2104>.

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

   [RFC7468]  Josefsson, S. and S. Leonard, "Textual Encodings of PKIX,
              PKCS, and CMS Structures", RFC 7468, DOI 10.17487/RFC7468,
              April 2015, <https://www.rfc-editor.org/info/rfc7468>.

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

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

   [RFC8407]  Bierman, A., "Guidelines for Authors and Reviewers of
              Documents Containing YANG Data Models", BCP 216, RFC 8407,
              DOI 10.17487/RFC8407, October 2018,
              <https://www.rfc-editor.org/info/rfc8407>.

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

Appendix A.  Tree Diagram and Example Configurations

   This section is devoted to including a complete tree diagram and
   examples that demonstrate how Babel can be configured.

   Note that various examples are encoded using Extensible Markup
   Language (XML) [W3C.REC-xml-20081126].

A.1.  Complete Tree Diagram

   This section includes the complete tree diagram for the Babel YANG
   module.

   module: ietf-babel

     augment /rt:routing/rt:control-plane-protocols
               /rt:control-plane-protocol:
       +--rw babel!
          +--ro version?              string
          +--rw enable                boolean
          +--ro router-id?            binary
          +--ro seqno?                uint16
          +--rw statistics-enabled?   boolean
          +--rw constants
          |  +--rw udp-port?      inet:port-number
          |  +--rw mcast-group?   inet:ip-address
          +--rw interfaces* [reference]
          |  +--rw reference               if:interface-ref
          |  +--rw enable?                 boolean
          |  +--rw metric-algorithm        identityref
          |  +--rw split-horizon?          boolean
          |  +--ro mcast-hello-seqno?      uint16
          |  +--rw mcast-hello-interval?   uint16
          |  +--rw update-interval?        uint16
          |  +--rw mac-enable?             boolean
          |  +--rw mac-key-sets*           -> ../../mac-key-set/name
          |  +--rw mac-verify?             boolean
          |  +--rw dtls-enable?            boolean
          |  +--rw dtls-certs*             -> ../../dtls/name
          |  +--rw dtls-cached-info?       boolean
          |  +--rw dtls-cert-prefer*       -> ../../dtls/certs/type
          |  +--rw packet-log-enable?      boolean
          |  +--ro packet-log?             inet:uri
          |  +--ro statistics
          |  |  +--ro discontinuity-time    yang:date-and-time
          |  |  +--ro sent-mcast-hello?     yang:counter32
          |  |  +--ro sent-mcast-update?    yang:counter32
          |  |  +--ro sent-ucast-hello?     yang:counter32
          |  |  +--ro sent-ucast-update?    yang:counter32
          |  |  +--ro sent-ihu?             yang:counter32
          |  |  +--ro received-packets?     yang:counter32
          |  |  +---x reset
          |  |     +---w input
          |  |     |  +---w reset-at?   yang:date-and-time
          |  |     +--ro output
          |  |        +--ro reset-finished-at?   yang:date-and-time
          |  +--ro neighbor-objects* [neighbor-address]
          |     +--ro neighbor-address         inet:ip-address
          |     +--ro hello-mcast-history?     string
          |     +--ro hello-ucast-history?     string
          |     +--ro txcost?                  int32
          |     +--ro exp-mcast-hello-seqno?   union
          |     +--ro exp-ucast-hello-seqno?   union
          |     +--ro ucast-hello-seqno?       union
          |     +--ro ucast-hello-interval?    uint16
          |     +--ro rxcost?                  uint16
          |     +--ro cost?                    int32
          +--rw mac-key-set* [name]
          |  +--rw name             string
          |  +--rw default-apply?   boolean
          |  +--rw keys* [name]
          |     +--rw name          string
          |     +--rw use-send      boolean
          |     +--rw use-verify    boolean
          |     +--rw value         binary
          |     +--rw algorithm     identityref
          |     +---x test
          |        +---w input
          |        |  +---w test-string    binary
          |        |  +---w mac            binary
          |        +--ro output
          |           +--ro indication    boolean
          +--rw dtls* [name]
          |  +--rw name             string
          |  +--rw default-apply    boolean
          |  +--rw certs* [name]
          |     +--rw name           string
          |     +--rw value          string
          |     +--rw type           identityref
          |     +--rw private-key    binary
          |     +--rw algorithm      identityref
          +--ro routes* [prefix]
             +--ro prefix               inet:ip-prefix
             +--ro router-id?           binary
             +--ro neighbor?            leafref
             +--ro received-metric?     union
             +--ro calculated-metric?   union
             +--ro seqno?               uint16
             +--ro next-hop?            union
             +--ro feasible?            boolean
             +--ro selected?            boolean

A.2.  Statistics Gathering Enabled

   In this example, interface eth0 is being configured for routing
   protocol Babel, and statistics gathering is enabled.  For security,
   HMAC-SHA256 is supported.  Every sent Babel packet is signed with the
   key value provided, and every received Babel packet is verified with
   the same key value.

   <?xml version="1.0" encoding="UTF-8"?>
   <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>
       <enabled>true</enabled>
     </interface>
   </interfaces>
   <routing
       xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
     <control-plane-protocols>
       <control-plane-protocol>
         <type
             xmlns:babel=
             "urn:ietf:params:xml:ns:yang:ietf-babel">babel:babel</type>
         <name>name:babel</name>
         <babel
             xmlns="urn:ietf:params:xml:ns:yang:ietf-babel">
           <enable>true</enable>
           <statistics-enabled>true</statistics-enabled>
           <interfaces>
             <reference>eth0</reference>
             <metric-algorithm>two-out-of-three</metric-algorithm>
             <split-horizon>true</split-horizon>
           </interfaces>
           <mac-key-set>
             <name>hmac-sha256</name>
             <keys>
               <name>hmac-sha256-keys</name>
               <use-send>true</use-send>
               <use-verify>true</use-verify>
               <value>base64encodedvalue==</value>
               <algorithm>hmac-sha256</algorithm>
             </keys>
           </mac-key-set>
         </babel>
       </control-plane-protocol>
     </control-plane-protocols>
   </routing>

A.3.  Automatic Detection of Properties

   In this example, babeld is configured on two interfaces:

      interface eth0
      interface wlan0

   This says to run Babel on interfaces eth0 and wlan0.  Babeld will
   automatically detect that eth0 is wired and wlan0 is wireless and
   will configure the right parameters automatically.

   <?xml version="1.0" encoding="UTF-8"?>
   <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>
       <enabled>true</enabled>
     </interface>
     <interface>
       <name>wlan0</name>
       <type>ianaift:ieee80211</type>
       <enabled>true</enabled>
     </interface>
   </interfaces>
   <routing
       xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
     <control-plane-protocols>
       <control-plane-protocol>
         <type
             xmlns:babel=
             "urn:ietf:params:xml:ns:yang:ietf-babel">babel:babel</type>
         <name>name:babel</name>
         <babel
             xmlns="urn:ietf:params:xml:ns:yang:ietf-babel">
           <enable>true</enable>
           <interfaces>
             <reference>eth0</reference>
             <enable>true</enable>
             <metric-algorithm>two-out-of-three</metric-algorithm>
             <split-horizon>true</split-horizon>
           </interfaces>
           <interfaces>
             <reference>wlan0</reference>
             <enable>true</enable>
             <metric-algorithm>etx</metric-algorithm>
             <split-horizon>false</split-horizon>
           </interfaces>
         </babel>
       </control-plane-protocol>
     </control-plane-protocols>
   </routing>

A.4.  Override Default Properties

   In this example, babeld is configured on three interfaces:

      interface eth0
      interface eth1 type wireless
      interface tun0 type tunnel

   Here, interface eth1 is an Ethernet bridged to a wireless radio, so
   babeld's autodetection fails, and the interface type needs to be
   configured manually.  Tunnels are not detected automatically, so this
   needs to be specified.

   This is equivalent to the following:

      interface eth0 metric-algorithm 2-out-of-3 split-horizon true
      interface eth1 metric-algorithm etx split-horizon false
      interface tun0 metric-algorithm 2-out-of-3 split-horizon true

   <?xml version="1.0" encoding="UTF-8"?>
   <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>
       <enabled>true</enabled>
     </interface>
     <interface>
       <name>eth1</name>
       <type>ianaift:ethernetCsmacd</type>
       <enabled>true</enabled>
     </interface>
     <interface>
       <name>tun0</name>
       <type>ianaift:tunnel</type>
       <enabled>true</enabled>
     </interface>
   </interfaces>
   <routing
       xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
     <control-plane-protocols>
       <control-plane-protocol>
         <type
             xmlns:babel=
             "urn:ietf:params:xml:ns:yang:ietf-babel">babel:babel</type>
         <name>name:babel</name>
         <babel
             xmlns="urn:ietf:params:xml:ns:yang:ietf-babel">
           <enable>true</enable>
           <interfaces>
             <reference>eth0</reference>
             <enable>true</enable>
             <metric-algorithm>two-out-of-three</metric-algorithm>
             <split-horizon>true</split-horizon>
           </interfaces>
           <interfaces>
             <reference>eth1</reference>
             <enable>true</enable>
             <metric-algorithm>etx</metric-algorithm>
             <split-horizon>false</split-horizon>
           </interfaces>
           <interfaces>
             <reference>tun0</reference>
             <enable>true</enable>
             <metric-algorithm>two-out-of-three</metric-algorithm>
             <split-horizon>true</split-horizon>
           </interfaces>
         </babel>
       </control-plane-protocol>
     </control-plane-protocols>
   </routing>

A.5.  Configuring Other Properties

   In this example, two interfaces are configured for babeld:

      interface eth0
      interface ppp0 hello-interval 30 update-interval 120

   Here, ppp0 is a metered 3G link used for fallback connectivity.  It
   runs with much higher than default time constants in order to avoid
   control traffic as much as possible.

   <?xml version="1.0" encoding="UTF-8"?>
   <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>
       <enabled>true</enabled>
     </interface>
     <interface>
       <name>ppp0</name>
       <type>ianaift:ppp</type>
       <enabled>true</enabled>
     </interface>
   </interfaces>
   <routing
       xmlns="urn:ietf:params:xml:ns:yang:ietf-routing">
     <control-plane-protocols>
       <control-plane-protocol>
         <type
             xmlns:babel=
             "urn:ietf:params:xml:ns:yang:ietf-babel">babel:babel</type>
         <name>name:babel</name>
         <babel
             xmlns="urn:ietf:params:xml:ns:yang:ietf-babel">
           <enable>true</enable>
           <interfaces>
             <reference>eth0</reference>
             <enable>true</enable>
             <metric-algorithm>two-out-of-three</metric-algorithm>
             <split-horizon>true</split-horizon>
           </interfaces>
           <interfaces>
             <reference>ppp0</reference>
             <enable>true</enable>
             <mcast-hello-interval>30</mcast-hello-interval>
             <update-interval>120</update-interval>
             <metric-algorithm>two-out-of-three</metric-algorithm>
           </interfaces>
         </babel>
       </control-plane-protocol>
     </control-plane-protocols>
   </routing>

Acknowledgements

   Juliusz Chroboczek provided most of the example configurations for
   babel that are shown in Appendix A.

Authors' Addresses

   Mahesh Jethanandani
   Kloud Services
   California
   United States of America
   Email: mjethanandani@gmail.com


   Barbara Stark
   AT&T
   Atlanta, GA
   United States of America
   Email: barbara.stark@att.com