/src/frr/yang/frr-module-translator.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 | | "module frr-module-translator {\n" |
9 | | " yang-version 1.1;\n" |
10 | | " namespace \"http://frrouting.org/yang/frr-module-translator\";\n" |
11 | | " prefix frr-module-translator;\n" |
12 | | "\n" |
13 | | " organization\n" |
14 | | " \"FRRouting\";\n" |
15 | | " contact\n" |
16 | | " \"FRR Users List: <mailto:frog@lists.frrouting.org>\n" |
17 | | " FRR Development List: <mailto:dev@lists.frrouting.org>\";\n" |
18 | | " description\n" |
19 | | " \"A model for FRR YANG module translators.\n" |
20 | | "\n" |
21 | | " Copyright 2020 FRRouting\n" |
22 | | "\n" |
23 | | " Redistribution and use in source and binary forms, with or without\n" |
24 | | " modification, are permitted provided that the following conditions\n" |
25 | | " are met:\n" |
26 | | "\n" |
27 | | " 1. Redistributions of source code must retain the above copyright notice,\n" |
28 | | " this list of conditions and the following disclaimer.\n" |
29 | | "\n" |
30 | | " 2. Redistributions in binary form must reproduce the above copyright\n" |
31 | | " notice, this list of conditions and the following disclaimer in the\n" |
32 | | " documentation and/or other materials provided with the distribution.\n" |
33 | | "\n" |
34 | | " THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n" |
35 | | " \\\"AS IS\\\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n" |
36 | | " LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n" |
37 | | " A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n" |
38 | | " HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n" |
39 | | " SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n" |
40 | | " LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n" |
41 | | " DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n" |
42 | | " THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n" |
43 | | " (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n" |
44 | | " OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\";\n" |
45 | | "\n" |
46 | | " revision 2018-07-31 {\n" |
47 | | " description\n" |
48 | | " \"Initial revision.\";\n" |
49 | | " }\n" |
50 | | "\n" |
51 | | " container frr-module-translator {\n" |
52 | | " leaf family {\n" |
53 | | " type string {\n" |
54 | | " length \"0 .. 32\";\n" |
55 | | " }\n" |
56 | | " mandatory true;\n" |
57 | | " description\n" |
58 | | " \"Family of YANG models.\";\n" |
59 | | " }\n" |
60 | | " list module {\n" |
61 | | " key \"name\";\n" |
62 | | " ordered-by user;\n" |
63 | | " description\n" |
64 | | " \"YANG module.\";\n" |
65 | | "\n" |
66 | | " leaf name {\n" |
67 | | " type string;\n" |
68 | | " description\n" |
69 | | " \"Module name.\";\n" |
70 | | " }\n" |
71 | | " leaf deviations {\n" |
72 | | " type string;\n" |
73 | | " mandatory true;\n" |
74 | | " description\n" |
75 | | " \"Module containing the YANG deviations.\";\n" |
76 | | " }\n" |
77 | | " list mappings {\n" |
78 | | " key \"custom\";\n" |
79 | | " description\n" |
80 | | " \"YANG mappings between the custom module and FRR native modules.\";\n" |
81 | | "\n" |
82 | | " leaf custom {\n" |
83 | | " type string {\n" |
84 | | " length \"0 .. 256\";\n" |
85 | | " }\n" |
86 | | " description\n" |
87 | | " \"YANG path of the custom module.\";\n" |
88 | | " }\n" |
89 | | " leaf native {\n" |
90 | | " type string {\n" |
91 | | " length \"0 .. 256\";\n" |
92 | | " }\n" |
93 | | " mandatory true;\n" |
94 | | " description\n" |
95 | | " \"Corresponding path of the native YANG modules\";\n" |
96 | | " }\n" |
97 | | " }\n" |
98 | | " }\n" |
99 | | " }\n" |
100 | | "}\n" |
101 | | ""; |
102 | | |
103 | | static struct yang_module_embed embed = { |
104 | | .mod_name = "frr-module-translator", |
105 | | .mod_rev = "2018-07-31", |
106 | | .sub_mod_name = "", |
107 | | .sub_mod_rev = "", |
108 | | .data = model, |
109 | | .format = LYS_IN_YANG, |
110 | | }; |
111 | | |
112 | | static void embed_register(void) __attribute__((_CONSTRUCTOR(2000))); |
113 | | static void embed_register(void) |
114 | 8 | { |
115 | 8 | yang_module_embed(&embed); |
116 | 8 | } |