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