Coverage Report

Created: 2025-08-26 06:20

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