3 namespace "http://frrouting.org/yang/routing";
6 import ietf-yang-types {
18 "FRR Users List: <mailto:frog@lists.frrouting.org>
19 FRR Development List: <mailto:dev@lists.frrouting.org>";
22 "This YANG module defines essential components for the management
23 of a routing subsystem.
25 Copyright 2020 FRRouting
27 Redistribution and use in source and binary forms, with or without
28 modification, are permitted provided that the following conditions
31 1. Redistributions of source code must retain the above copyright notice,
32 this list of conditions and the following disclaimer.
34 2. Redistributions in binary form must reproduce the above copyright
35 notice, this list of conditions and the following disclaimer in the
36 documentation and/or other materials provided with the distribution.
38 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
39 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
40 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
41 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
42 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
45 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
46 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
47 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
48 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
57 identity address-family {
59 "Base identity from which identities describing address
60 families are derived.";
66 "This identity represents an IPv4 address family.";
72 "This identity represents an IPv6 address family.";
75 identity afi-safi-type {
77 "Base identity type (AFI,SAFI) tuples for RIB";
80 identity ipv4-unicast {
83 "This identity represents the IPv4 unicast address family.";
86 identity ipv6-unicast {
89 "This identity represents the IPv6 unicast address family.";
92 identity ipv4-multicast {
95 "This identity represents the IPv4 multicast address family.";
98 identity ipv6-multicast {
101 "This identity represents the IPv6 multicast address family.";
104 identity ipv4-labeled-unicast {
107 "This identity represents the IPv4 labeled unicast address family.";
111 identity ipv6-labeled-unicast {
114 "This identity represents the IPv6 labeled unicast address family.";
118 identity l3vpn-ipv4-unicast {
121 "This identity represents the L3vpn IPv4 unicast address family.";
125 identity l3vpn-ipv6-unicast {
128 "This identity represents the L3vpn IPv6 unicast address family.";
132 identity l3vpn-ipv4-multicast {
135 "This identity represents the L3vpn IPv4 multicast address family.";
139 identity l3vpn-ipv6-multicast {
142 "This identity represents the L3vpn IPv6 multicast address family.";
146 identity l2vpn-vpls {
149 "This identity represents the L2vpn VPLS address family.";
153 identity l2vpn-evpn {
156 "This identity represents the L2vpn EVPN address family.";
160 identity ipv4-flowspec {
163 "This identity represents the IPv4 flowspec address family.";
167 identity ipv6-flowspec {
170 "This identity represents the IPv6 flowspec address family.";
174 identity control-plane-protocol {
176 "Base identity from which control-plane protocol identities are
180 identity routing-protocol {
181 base control-plane-protocol;
183 "Identity from which Layer 3 routing protocol identities are
187 /* Type Definitions */
189 typedef administrative-distance {
194 "Admin distance associated with the route.";
199 grouping address-family {
201 "This grouping provides a leaf identifying an address
203 leaf address-family {
215 "This grouping provides a router ID.";
217 type yang:dotted-quad;
219 "A 32-bit number in the form of a dotted quad that is used by
220 some routing protocols identifying a router.";
222 "RFC 2328: OSPF Version 2";
230 "Configuration parameters for the routing subsystem.";
231 container control-plane-protocols {
233 "Support for control-plane protocol instances.";
234 list control-plane-protocol {
237 "Each entry contains a control-plane protocol instance.";
240 base control-plane-protocol;
243 "Type of the control-plane protocol";
248 "An arbitrary name of the control-plane protocol
252 type frr-vrf:vrf-ref;
254 "vrf for control-plane protocol";