/src/frr/yang/frr-ospf-route-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-ospf-route-map {\n" |
8 | | " yang-version 1.1;\n" |
9 | | " namespace \"http://frrouting.org/yang/ospf-route-map\";\n" |
10 | | " prefix frr-ospf-route-map;\n" |
11 | | "\n" |
12 | | " import ietf-inet-types {\n" |
13 | | " prefix inet;\n" |
14 | | " }\n" |
15 | | "\n" |
16 | | " import frr-route-map {\n" |
17 | | " prefix frr-route-map;\n" |
18 | | " }\n" |
19 | | "\n" |
20 | | " organization\n" |
21 | | " \"Free Range Routing\";\n" |
22 | | " contact\n" |
23 | | " \"FRR Users List: <mailto:frog@lists.frrouting.org>\n" |
24 | | " FRR Development List: <mailto:dev@lists.frrouting.org>\";\n" |
25 | | " description\n" |
26 | | " \"This module defines ospf route map settings\";\n" |
27 | | "\n" |
28 | | " revision 2020-01-02 {\n" |
29 | | " description\n" |
30 | | " \"Initial revision\";\n" |
31 | | " }\n" |
32 | | "\n" |
33 | | " identity metric-type {\n" |
34 | | " base frr-route-map:rmap-set-type;\n" |
35 | | " description\n" |
36 | | " \"Set the type of metric\";\n" |
37 | | " }\n" |
38 | | "\n" |
39 | | " augment \"/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:rmap-set-action/frr-route-map:set-action\" {\n" |
40 | | " case metric-type {\n" |
41 | | " when \"derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, \'metric-type\')\";\n" |
42 | | " leaf metric-type {\n" |
43 | | " type enumeration {\n" |
44 | | " enum \"type-1\" {\n" |
45 | | " value 0;\n" |
46 | | " description\n" |
47 | | " \"OSPF6 external type 1 metric\";\n" |
48 | | " }\n" |
49 | | " enum \"type-2\" {\n" |
50 | | " value 1;\n" |
51 | | " description\n" |
52 | | " \"OSPF6 external type 2 metric\";\n" |
53 | | " }\n" |
54 | | " }\n" |
55 | | " }\n" |
56 | | " }\n" |
57 | | " }\n" |
58 | | "}\n" |
59 | | ""; |
60 | | |
61 | | static struct yang_module_embed embed = { |
62 | | .mod_name = "frr-ospf-route-map", |
63 | | .mod_rev = "2020-01-02", |
64 | | .sub_mod_name = "", |
65 | | .sub_mod_rev = "", |
66 | | .data = model, |
67 | | .format = LYS_IN_YANG, |
68 | | }; |
69 | | |
70 | | static void embed_register(void) __attribute__((_CONSTRUCTOR(2000))); |
71 | | static void embed_register(void) |
72 | 2 | { |
73 | 2 | yang_module_embed(&embed); |
74 | 2 | } |