/src/frr/yang/frr-bgp-neighbor.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-neighbor {\n" |
9 | | " yang-version 1.1;\n" |
10 | | "\n" |
11 | | " belongs-to frr-bgp {\n" |
12 | | " prefix \"bgp\";\n" |
13 | | " }\n" |
14 | | "\n" |
15 | | " include \"frr-bgp-common-multiprotocol\";\n" |
16 | | "\n" |
17 | | " include \"frr-bgp-common-structure\";\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 submodule contains general data definitions for use in BGP neighbor.\n" |
26 | | "\n" |
27 | | " Copyright 2020 FRRouting\n" |
28 | | "\n" |
29 | | " Redistribution and use in source and binary forms, with or without\n" |
30 | | " modification, are permitted provided that the following conditions\n" |
31 | | " are met:\n" |
32 | | "\n" |
33 | | " 1. Redistributions of source code must retain the above copyright notice,\n" |
34 | | " this list of conditions and the following disclaimer.\n" |
35 | | "\n" |
36 | | " 2. Redistributions in binary form must reproduce the above copyright\n" |
37 | | " notice, this list of conditions and the following disclaimer in the\n" |
38 | | " documentation and/or other materials provided with the distribution.\n" |
39 | | "\n" |
40 | | " THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n" |
41 | | " \\\"AS IS\\\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n" |
42 | | " LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n" |
43 | | " A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n" |
44 | | " HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n" |
45 | | " SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n" |
46 | | " LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n" |
47 | | " DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n" |
48 | | " THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n" |
49 | | " (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n" |
50 | | " OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\";\n" |
51 | | "\n" |
52 | | " revision 2019-12-03 {\n" |
53 | | " description\n" |
54 | | " \"Initial revision.\";\n" |
55 | | " }\n" |
56 | | "\n" |
57 | | " grouping neighbor-parameters {\n" |
58 | | " leaf password {\n" |
59 | | " type string {\n" |
60 | | " length \"1..254\";\n" |
61 | | " }\n" |
62 | | " description\n" |
63 | | " \"Actual password.\";\n" |
64 | | " }\n" |
65 | | "\n" |
66 | | " leaf ttl-security {\n" |
67 | | " type uint8;\n" |
68 | | " description\n" |
69 | | " \"BGP Time To Live (TTL) security check.\";\n" |
70 | | " reference\n" |
71 | | " \"RFC 5082: The Generalized TTL Security Mechanism\n" |
72 | | " (GTSM),\n" |
73 | | " RFC 7454: BGP Operations and Security.\";\n" |
74 | | " }\n" |
75 | | "\n" |
76 | | " leaf solo {\n" |
77 | | " type boolean;\n" |
78 | | " default \"false\";\n" |
79 | | " description\n" |
80 | | " \"Solo peer - part of its own update group.\";\n" |
81 | | " }\n" |
82 | | "\n" |
83 | | " leaf enforce-first-as {\n" |
84 | | " type boolean;\n" |
85 | | " default \"false\";\n" |
86 | | " description\n" |
87 | | " \"When set to \'true\' it will enforce the first AS for EBGP routes.\";\n" |
88 | | " }\n" |
89 | | "\n" |
90 | | " leaf description {\n" |
91 | | " type string;\n" |
92 | | " description\n" |
93 | | " \"An optional textual description (intended primarily for use\n" |
94 | | " with a peer or group.\";\n" |
95 | | " }\n" |
96 | | "\n" |
97 | | " leaf passive-mode {\n" |
98 | | " type boolean;\n" |
99 | | " default \"false\";\n" |
100 | | " description\n" |
101 | | " \"Don\'t send open messages to this neighbor.\";\n" |
102 | | " }\n" |
103 | | "\n" |
104 | | " uses neighbor-update-source;\n" |
105 | | "\n" |
106 | | " uses structure-neighbor-group-ebgp-multihop;\n" |
107 | | "\n" |
108 | | " uses neighbor-local-as-options;\n" |
109 | | "\n" |
110 | | " uses neighbor-bfd-options;\n" |
111 | | "\n" |
112 | | " uses structure-neighbor-group-admin-shutdown;\n" |
113 | | "\n" |
114 | | " uses structure-neighbor-group-graceful-restart;\n" |
115 | | "\n" |
116 | | " uses structure-neighbor-config-timers;\n" |
117 | | "\n" |
118 | | " container afi-safis {\n" |
119 | | " description\n" |
120 | | " \"List of address-families associated with the BGP\n" |
121 | | " instance.\";\n" |
122 | | " list afi-safi {\n" |
123 | | " key \"afi-safi-name\";\n" |
124 | | " description\n" |
125 | | " \"AFI, SAFI configuration available for the\n" |
126 | | " neighbour or group.\";\n" |
127 | | " uses mp-afi-safi-config;\n" |
128 | | "\n" |
129 | | " leaf enabled {\n" |
130 | | " type boolean;\n" |
131 | | " description\n" |
132 | | " \"This leaf indicates whether the IPv4 Unicast AFI, SAFI is\n" |
133 | | " enabled for the neighbour or group.\";\n" |
134 | | " }\n" |
135 | | "\n" |
136 | | " uses mp-all-afi-safi-list-contents;\n" |
137 | | " }\n" |
138 | | " }\n" |
139 | | " }\n" |
140 | | "}\n" |
141 | | ""; |
142 | | |
143 | | static struct yang_module_embed embed = { |
144 | | .mod_name = "frr-bgp", |
145 | | .mod_rev = "", |
146 | | .sub_mod_name = "frr-bgp-neighbor", |
147 | | .sub_mod_rev = "2019-12-03", |
148 | | .data = model, |
149 | | .format = LYS_IN_YANG, |
150 | | }; |
151 | | |
152 | | static void embed_register(void) __attribute__((_CONSTRUCTOR(2000))); |
153 | | static void embed_register(void) |
154 | 1 | { |
155 | 1 | yang_module_embed(&embed); |
156 | 1 | } |