Coverage Report

Created: 2026-04-27 06:43

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/frr/yang/frr-vrf.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-vrf {\n"
9
  "  yang-version 1.1;\n"
10
  "  namespace \"http://frrouting.org/yang/vrf\";\n"
11
  "  prefix frr-vrf;\n"
12
  "\n"
13
  "  organization\n"
14
  "    \"Free Range Routing\";\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
  "    \"This module defines a model for managing FRR VRF.\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 2019-12-06 {\n"
47
  "    description\n"
48
  "      \"Initial revision.\";\n"
49
  "  }\n"
50
  "\n"
51
  "  typedef vrf-ref {\n"
52
  "    type leafref {\n"
53
  "      path \"/frr-vrf:lib/frr-vrf:vrf/frr-vrf:name\";\n"
54
  "      require-instance false;\n"
55
  "    }\n"
56
  "    description\n"
57
  "      \"Reference to a VRF\";\n"
58
  "  }\n"
59
  "\n"
60
  "  container lib {\n"
61
  "    list vrf {\n"
62
  "      key \"name\";\n"
63
  "      description\n"
64
  "        \"VRF.\";\n"
65
  "      leaf name {\n"
66
  "        type string {\n"
67
  "          length \"1..36\";\n"
68
  "        }\n"
69
  "        description\n"
70
  "          \"VRF name.\";\n"
71
  "      }\n"
72
  "\n"
73
  "      container state {\n"
74
  "        config false;\n"
75
  "        leaf id {\n"
76
  "          type uint32 {\n"
77
  "            range \"0..4294967295\";\n"
78
  "          }\n"
79
  "          description\n"
80
  "            \"VRF Id.\";\n"
81
  "        }\n"
82
  "\n"
83
  "        leaf active {\n"
84
  "          type boolean;\n"
85
  "          default \"false\";\n"
86
  "          description\n"
87
  "            \"VRF active in kernel.\";\n"
88
  "        }\n"
89
  "      }\n"
90
  "    }\n"
91
  "  }\n"
92
  "}\n"
93
  "";
94
95
static struct yang_module_embed embed = {
96
  .mod_name = "frr-vrf",
97
  .mod_rev = "2019-12-06",
98
  .sub_mod_name = "",
99
  .sub_mod_rev = "",
100
  .data = model,
101
  .format = LYS_IN_YANG,
102
};
103
104
static void embed_register(void) __attribute__((_CONSTRUCTOR(2000)));
105
static void embed_register(void)
106
8
{
107
8
  yang_module_embed(&embed);
108
8
}