Coverage Report

Created: 2026-04-27 06:43

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/frr/yang/frr-if-rmap.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-if-rmap {\n"
9
  "  yang-version 1.1;\n"
10
  "  namespace \"http://frrouting.org/yang/frr-if-rmap\";\n"
11
  "  prefix frr-if-map;\n"
12
  "\n"
13
  "  import frr-interface {\n"
14
  "    prefix frr-interface;\n"
15
  "  }\n"
16
  "\n"
17
  "  import frr-route-map {\n"
18
  "    prefix frr-route-map;\n"
19
  "  }\n"
20
  "\n"
21
  "  organization\n"
22
  "    \"FRRouting\";\n"
23
  "  contact\n"
24
  "    \"FRR Users List:       <mailto:frog@lists.frrouting.org>\n"
25
  "     FRR Development List: <mailto:dev@lists.frrouting.org>\";\n"
26
  "  description\n"
27
  "    \"This module defines route map settings\n"
28
  "\n"
29
  "     Copyright 2023 LabN Consulting L.L.C\n"
30
  "\n"
31
  "     Redistribution and use in source and binary forms, with or without\n"
32
  "     modification, are permitted provided that the following conditions\n"
33
  "     are met:\n"
34
  "\n"
35
  "     1. Redistributions of source code must retain the above copyright notice,\n"
36
  "     this list of conditions and the following disclaimer.\n"
37
  "\n"
38
  "     2. Redistributions in binary form must reproduce the above copyright\n"
39
  "     notice, this list of conditions and the following disclaimer in the\n"
40
  "     documentation and/or other materials provided with the distribution.\n"
41
  "\n"
42
  "     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"
43
  "     \\\"AS IS\\\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n"
44
  "     LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n"
45
  "     A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n"
46
  "     HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n"
47
  "     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n"
48
  "     LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n"
49
  "     DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n"
50
  "     THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n"
51
  "     (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n"
52
  "     OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\";\n"
53
  "\n"
54
  "  revision 2023-04-09 {\n"
55
  "    description\n"
56
  "      \"Initial revision\";\n"
57
  "    reference \"FRRouting\";\n"
58
  "  }\n"
59
  "\n"
60
  "  grouping if-route-maps-group {\n"
61
  "    description \"Grouping for interface route maps\";\n"
62
  "\n"
63
  "    container if-route-maps {\n"
64
  "      description \"Collection of interface route-maps\";\n"
65
  "\n"
66
  "      list if-route-map {\n"
67
  "        must \"in-route-map or out-route-map\";\n"
68
  "        key \"interface\";\n"
69
  "        description \"Collection of route-maps for an interface\";\n"
70
  "\n"
71
  "        leaf \"interface\" {\n"
72
  "          type frr-interface:interface-ref;\n"
73
  "          description \"The interface the route maps are associated with\";\n"
74
  "        }\n"
75
  "        leaf \"in-route-map\" {\n"
76
  "          type frr-route-map:route-map-name;\n"
77
  "          description \"Name of the ingress route map\";\n"
78
  "        }\n"
79
  "        leaf \"out-route-map\" {\n"
80
  "          type frr-route-map:route-map-name;\n"
81
  "          description \"Name of the egress route map\";\n"
82
  "        }\n"
83
  "      }\n"
84
  "    }\n"
85
  "  }\n"
86
  "}\n"
87
  "";
88
89
static struct yang_module_embed embed = {
90
  .mod_name = "frr-if-rmap",
91
  .mod_rev = "2023-04-09",
92
  .sub_mod_name = "",
93
  .sub_mod_rev = "",
94
  .data = model,
95
  .format = LYS_IN_YANG,
96
};
97
98
static void embed_register(void) __attribute__((_CONSTRUCTOR(2000)));
99
static void embed_register(void)
100
8
{
101
8
  yang_module_embed(&embed);
102
8
}