Coverage Report

Created: 2025-08-28 06:29

/src/frr/yang/frr-bgp-peer-group.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-peer-group {\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 ietf-inet-types {\n"
16
  "    prefix inet;\n"
17
  "  }\n"
18
  "\n"
19
  "  import frr-bgp-types {\n"
20
  "    prefix frr-bt;\n"
21
  "  }\n"
22
  "\n"
23
  "  include \"frr-bgp-common-structure\";\n"
24
  "\n"
25
  "  include \"frr-bgp-neighbor\";\n"
26
  "\n"
27
  "  organization\n"
28
  "    \"FRRouting\";\n"
29
  "  contact\n"
30
  "    \"FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development\n"
31
  "     List: <mailto:dev@lists.frrouting.org>\";\n"
32
  "  description\n"
33
  "    \"This submodule contains general data definitions for use in BGP\n"
34
  "     peer group.\n"
35
  "\n"
36
  "     Copyright 2020 FRRouting\n"
37
  "\n"
38
  "     Redistribution and use in source and binary forms, with or without\n"
39
  "     modification, are permitted provided that the following conditions\n"
40
  "     are met:\n"
41
  "\n"
42
  "     1. Redistributions of source code must retain the above copyright notice,\n"
43
  "     this list of conditions and the following disclaimer.\n"
44
  "\n"
45
  "     2. Redistributions in binary form must reproduce the above copyright\n"
46
  "     notice, this list of conditions and the following disclaimer in the\n"
47
  "     documentation and/or other materials provided with the distribution.\n"
48
  "\n"
49
  "     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"
50
  "     \\\"AS IS\\\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n"
51
  "     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n"
52
  "     A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n"
53
  "     HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n"
54
  "     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n"
55
  "     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n"
56
  "     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n"
57
  "     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n"
58
  "     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n"
59
  "     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\";\n"
60
  "\n"
61
  "  revision 2019-12-03 {\n"
62
  "    description\n"
63
  "      \"Initial revision.\";\n"
64
  "  }\n"
65
  "\n"
66
  "  grouping bgp-peer-group-base {\n"
67
  "    description\n"
68
  "      \"Parameters related to a BGP group.\";\n"
69
  "    leaf peer-group-name {\n"
70
  "      type string;\n"
71
  "      description\n"
72
  "        \"Name of the BGP peer-group.\";\n"
73
  "    }\n"
74
  "\n"
75
  "    leaf-list ipv4-listen-range {\n"
76
  "      type inet:ipv4-address;\n"
77
  "      description\n"
78
  "        \"Configure BGP dynamic neighbors listen range.\";\n"
79
  "    }\n"
80
  "\n"
81
  "    leaf-list ipv6-listen-range {\n"
82
  "      type inet:ipv6-address;\n"
83
  "      description\n"
84
  "        \"Configure BGP dynamic neighbors listen range.\";\n"
85
  "    }\n"
86
  "\n"
87
  "    uses neighbor-remote-as;\n"
88
  "\n"
89
  "    uses neighbor-parameters;\n"
90
  "\n"
91
  "    uses structure-neighbor-group-capability-options;\n"
92
  "  }\n"
93
  "\n"
94
  "  grouping bgp-peer-group-list {\n"
95
  "    description\n"
96
  "      \"The list of BGP peer groups.\";\n"
97
  "    list peer-group {\n"
98
  "      key \"peer-group-name\";\n"
99
  "      description\n"
100
  "        \"List of BGP peer-groups configured on the local system -\n"
101
  "         uniquely identified by peer-group name.\";\n"
102
  "      uses bgp-peer-group-base;\n"
103
  "    }\n"
104
  "  }\n"
105
  "}\n"
106
  "";
107
108
static struct yang_module_embed embed = {
109
  .mod_name = "frr-bgp",
110
  .mod_rev = "",
111
  .sub_mod_name = "frr-bgp-peer-group",
112
  .sub_mod_rev = "2019-12-03",
113
  .data = model,
114
  .format = LYS_IN_YANG,
115
};
116
117
static void embed_register(void) __attribute__((_CONSTRUCTOR(2000)));
118
static void embed_register(void)
119
1
{
120
1
  yang_module_embed(&embed);
121
1
}