]>
Commit | Line | Data |
---|---|---|
2228b116 | 1 | submodule frr-bgp-common-multiprotocol { |
2 | yang-version 1.1; | |
3 | ||
4 | belongs-to frr-bgp { | |
5 | prefix "bgp"; | |
6 | } | |
7 | ||
8 | import frr-routing { | |
9 | prefix frr-rt; | |
10 | } | |
11 | ||
2228b116 | 12 | organization |
13 | "FRRouting"; | |
14 | contact | |
15 | "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development | |
16 | List: <mailto:dev@lists.frrouting.org>"; | |
17 | description | |
18 | "This module contains general data definitions for use in BGP | |
19 | Multiprotocol. | |
20 | ||
21 | Copyright 2020 FRRouting | |
22 | ||
23 | Redistribution and use in source and binary forms, with or without | |
24 | modification, are permitted provided that the following conditions | |
25 | are met: | |
26 | ||
27 | 1. Redistributions of source code must retain the above copyright notice, | |
28 | this list of conditions and the following disclaimer. | |
29 | ||
30 | 2. Redistributions in binary form must reproduce the above copyright | |
31 | notice, this list of conditions and the following disclaimer in the | |
32 | documentation and/or other materials provided with the distribution. | |
33 | ||
34 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
35 | \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
36 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
37 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
38 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
39 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
40 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
41 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
42 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
43 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
44 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."; | |
45 | ||
46 | revision 2019-12-03 { | |
47 | description | |
48 | "Initial revision."; | |
49 | } | |
50 | ||
51 | grouping mp-afi-safi-config { | |
52 | description | |
53 | "Configuration parameters used for all BGP AFI-SAFIs."; | |
54 | leaf afi-safi-name { | |
55 | type identityref { | |
56 | base frr-rt:afi-safi-type; | |
57 | } | |
58 | description | |
59 | "AFI, SAFI."; | |
60 | } | |
61 | } | |
62 | ||
63 | grouping mp-all-afi-safi-list-contents { | |
64 | description | |
65 | "A common grouping used for contents of the list that is used | |
66 | for AFI-SAFI entries."; | |
67 | container ipv4-unicast { | |
3bb513c3 | 68 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:ipv4-unicast')" { |
2228b116 | 69 | description |
70 | "Include this container for IPv4 Unicast specific | |
71 | configuration."; | |
72 | } | |
73 | description | |
74 | "IPv4 unicast configuration options."; | |
75 | } | |
76 | ||
77 | container ipv6-unicast { | |
3bb513c3 | 78 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:ipv6-unicast')" { |
2228b116 | 79 | description |
80 | "Include this container for IPv6 Unicast specific | |
81 | configuration."; | |
82 | } | |
83 | description | |
84 | "IPv6 unicast configuration options."; | |
85 | } | |
86 | ||
87 | container ipv4-labeled-unicast { | |
3bb513c3 | 88 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:ipv4-labeled-unicast')" { |
2228b116 | 89 | description |
90 | "Include this container for IPv4 Labeled Unicast specific | |
91 | configuration."; | |
92 | } | |
93 | description | |
94 | "IPv4 Labeled Unicast configuration options."; | |
95 | } | |
96 | ||
97 | container ipv6-labeled-unicast { | |
3bb513c3 | 98 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:ipv6-labeled-unicast')" { |
2228b116 | 99 | description |
100 | "Include this container for IPv6 Labeled Unicast specific | |
101 | configuration."; | |
102 | } | |
103 | description | |
104 | "IPv6 Labeled Unicast configuration options."; | |
105 | } | |
106 | ||
107 | container l3vpn-ipv4-unicast { | |
3bb513c3 | 108 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:l3vpn-ipv4-unicast')" { |
2228b116 | 109 | description |
110 | "Include this container for IPv4 Unicast L3VPN specific | |
111 | configuration."; | |
112 | } | |
113 | description | |
114 | "Unicast IPv4 L3VPN configuration options."; | |
115 | } | |
116 | ||
117 | container l3vpn-ipv6-unicast { | |
3bb513c3 | 118 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:l3vpn-ipv6-unicast')" { |
2228b116 | 119 | description |
120 | "Include this container for unicast IPv6 L3VPN specific | |
121 | configuration."; | |
122 | } | |
123 | description | |
124 | "Unicast IPv6 L3VPN configuration options."; | |
125 | } | |
126 | ||
127 | container l3vpn-ipv4-multicast { | |
3bb513c3 | 128 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:l3vpn-ipv4-multicast')" { |
2228b116 | 129 | description |
130 | "Include this container for multicast IPv4 L3VPN specific | |
131 | configuration."; | |
132 | } | |
133 | description | |
134 | "Multicast IPv4 L3VPN configuration options."; | |
135 | } | |
136 | ||
137 | container l3vpn-ipv6-multicast { | |
3bb513c3 | 138 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:l3vpn-ipv6-multicast')" { |
2228b116 | 139 | description |
140 | "Include this container for multicast IPv6 L3VPN specific | |
141 | configuration."; | |
142 | } | |
143 | description | |
144 | "Multicast IPv6 L3VPN configuration options."; | |
145 | } | |
146 | ||
147 | container l2vpn-vpls { | |
3bb513c3 | 148 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:l2vpn-vpls')" { |
2228b116 | 149 | description |
150 | "Include this container for BGP-signalled VPLS specific | |
151 | configuration."; | |
152 | } | |
153 | description | |
154 | "BGP-signalled VPLS configuration options."; | |
155 | } | |
156 | ||
157 | container l2vpn-evpn { | |
3bb513c3 | 158 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:l2vpn-evpn')" { |
2228b116 | 159 | description |
160 | "Include this container for BGP EVPN specific | |
161 | configuration."; | |
162 | } | |
163 | description | |
164 | "BGP EVPN configuration options."; | |
165 | } | |
166 | ||
167 | container ipv4-multicast { | |
3bb513c3 | 168 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:ipv4-multicast')" { |
2228b116 | 169 | description |
170 | "Include this container for IPv4 multicast specific | |
171 | configuration."; | |
172 | } | |
173 | description | |
174 | "IPv4 multicast configuration options."; | |
175 | } | |
176 | ||
177 | container ipv6-multicast { | |
3bb513c3 | 178 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:ipv6-multicast')" { |
2228b116 | 179 | description |
180 | "Include this container for IPv6 multicast specific | |
181 | configuration."; | |
182 | } | |
183 | description | |
184 | "IPv6 multicast configuration options."; | |
185 | } | |
186 | ||
187 | container ipv4-flowspec { | |
3bb513c3 | 188 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:ipv4-flowspec')" { |
2228b116 | 189 | description |
190 | "Include this container for IPv4 flowspec specific | |
191 | configuration."; | |
192 | } | |
193 | description | |
194 | "IPv4 flowspec configuration options."; | |
195 | } | |
196 | ||
197 | container ipv6-flowspec { | |
3bb513c3 | 198 | when "derived-from-or-self(../afi-safi-name, 'frr-rt:ipv6-flowspec')" { |
2228b116 | 199 | description |
200 | "Include this container for IPv6 flowspec specific | |
201 | configuration."; | |
202 | } | |
203 | description | |
204 | "IPv6 flowspec configuration options."; | |
205 | } | |
206 | } | |
207 | } |