]>
Commit | Line | Data |
---|---|---|
078110ca SP |
1 | /* |
2 | * Copyright (C) 2020 Vmware | |
3 | * Sarita Patra | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify it | |
6 | * under the terms of the GNU General Public License as published by the Free | |
7 | * Software Foundation; either version 2 of the License, or (at your option) | |
8 | * any later version. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
13 | * more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License along | |
16 | * with this program; see the file COPYING; if not, write to the Free Software | |
17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
18 | */ | |
19 | ||
1f8031f7 DL |
20 | #include <zebra.h> |
21 | ||
078110ca SP |
22 | #include "lib/northbound.h" |
23 | #include "lib/routemap.h" | |
24 | #include "ospf6_routemap_nb.h" | |
25 | ||
26 | /* clang-format off */ | |
27 | const struct frr_yang_module_info frr_ospf_route_map_info = { | |
28 | .name = "frr-ospf-route-map", | |
29 | .nodes = { | |
30 | { | |
31 | .xpath = "/frr-route-map:lib/route-map/entry/set-action/rmap-set-action/frr-ospf-route-map:metric-type", | |
32 | .cbs = { | |
33 | .modify = lib_route_map_entry_set_action_rmap_set_action_metric_type_modify, | |
34 | .destroy = lib_route_map_entry_set_action_rmap_set_action_metric_type_destroy, | |
35 | } | |
36 | }, | |
37 | { | |
38 | .xpath = NULL, | |
39 | }, | |
40 | } | |
41 | }; | |
42 | ||
43 | const struct frr_yang_module_info frr_ospf6_route_map_info = { | |
44 | .name = "frr-ospf6-route-map", | |
45 | .nodes = { | |
46 | { | |
47 | .xpath = "/frr-route-map:lib/route-map/entry/set-action/rmap-set-action/frr-ospf6-route-map:ipv6-address", | |
48 | .cbs = { | |
49 | .modify = lib_route_map_entry_set_action_rmap_set_action_ipv6_address_modify, | |
50 | .destroy = lib_route_map_entry_set_action_rmap_set_action_ipv6_address_destroy, | |
51 | } | |
52 | }, | |
53 | { | |
54 | .xpath = NULL, | |
55 | }, | |
56 | } | |
57 | }; |