]> git.proxmox.com Git - mirror_frr.git/blame - ripngd/ripng_nb.h
*: make frr_yang_module_info const
[mirror_frr.git] / ripngd / ripng_nb.h
CommitLineData
ca473936
RW
1/*
2 * Copyright (C) 2018 NetDEF, Inc.
3 * Renato Westphal
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
20#ifndef _FRR_RIPNG_NB_H_
21#define _FRR_RIPNG_NB_H_
22
23extern const struct frr_yang_module_info frr_ripngd_info;
24
25/* Mandatory callbacks. */
26int ripngd_instance_create(enum nb_event event, const struct lyd_node *dnode,
27 union nb_resource *resource);
28int ripngd_instance_destroy(enum nb_event event, const struct lyd_node *dnode);
29const void *ripngd_instance_get_next(const void *parent_list_entry,
30 const void *list_entry);
31int ripngd_instance_get_keys(const void *list_entry,
32 struct yang_list_keys *keys);
33const void *ripngd_instance_lookup_entry(const void *parent_list_entry,
34 const struct yang_list_keys *keys);
35int ripngd_instance_allow_ecmp_modify(enum nb_event event,
36 const struct lyd_node *dnode,
37 union nb_resource *resource);
38int ripngd_instance_default_information_originate_modify(
39 enum nb_event event, const struct lyd_node *dnode,
40 union nb_resource *resource);
41int ripngd_instance_default_metric_modify(enum nb_event event,
42 const struct lyd_node *dnode,
43 union nb_resource *resource);
44int ripngd_instance_network_create(enum nb_event event,
45 const struct lyd_node *dnode,
46 union nb_resource *resource);
47int ripngd_instance_network_destroy(enum nb_event event,
48 const struct lyd_node *dnode);
49int ripngd_instance_interface_create(enum nb_event event,
50 const struct lyd_node *dnode,
51 union nb_resource *resource);
52int ripngd_instance_interface_destroy(enum nb_event event,
53 const struct lyd_node *dnode);
54int ripngd_instance_offset_list_create(enum nb_event event,
55 const struct lyd_node *dnode,
56 union nb_resource *resource);
57int ripngd_instance_offset_list_destroy(enum nb_event event,
58 const struct lyd_node *dnode);
59int ripngd_instance_offset_list_access_list_modify(enum nb_event event,
60 const struct lyd_node *dnode,
61 union nb_resource *resource);
62int ripngd_instance_offset_list_metric_modify(enum nb_event event,
63 const struct lyd_node *dnode,
64 union nb_resource *resource);
65int ripngd_instance_passive_interface_create(enum nb_event event,
66 const struct lyd_node *dnode,
67 union nb_resource *resource);
68int ripngd_instance_passive_interface_destroy(enum nb_event event,
69 const struct lyd_node *dnode);
70int ripngd_instance_redistribute_create(enum nb_event event,
71 const struct lyd_node *dnode,
72 union nb_resource *resource);
73int ripngd_instance_redistribute_destroy(enum nb_event event,
74 const struct lyd_node *dnode);
75int ripngd_instance_redistribute_route_map_modify(enum nb_event event,
76 const struct lyd_node *dnode,
77 union nb_resource *resource);
78int ripngd_instance_redistribute_route_map_destroy(
79 enum nb_event event, const struct lyd_node *dnode);
80int ripngd_instance_redistribute_metric_modify(enum nb_event event,
81 const struct lyd_node *dnode,
82 union nb_resource *resource);
83int ripngd_instance_redistribute_metric_destroy(enum nb_event event,
84 const struct lyd_node *dnode);
85int ripngd_instance_static_route_create(enum nb_event event,
86 const struct lyd_node *dnode,
87 union nb_resource *resource);
88int ripngd_instance_static_route_destroy(enum nb_event event,
89 const struct lyd_node *dnode);
90int ripngd_instance_aggregate_address_create(enum nb_event event,
91 const struct lyd_node *dnode,
92 union nb_resource *resource);
93int ripngd_instance_aggregate_address_destroy(enum nb_event event,
94 const struct lyd_node *dnode);
95int ripngd_instance_timers_flush_interval_modify(enum nb_event event,
96 const struct lyd_node *dnode,
97 union nb_resource *resource);
98int ripngd_instance_timers_holddown_interval_modify(
99 enum nb_event event, const struct lyd_node *dnode,
100 union nb_resource *resource);
101int ripngd_instance_timers_update_interval_modify(enum nb_event event,
102 const struct lyd_node *dnode,
103 union nb_resource *resource);
104const void *
105ripngd_instance_state_neighbors_neighbor_get_next(const void *parent_list_entry,
106 const void *list_entry);
107int ripngd_instance_state_neighbors_neighbor_get_keys(
108 const void *list_entry, struct yang_list_keys *keys);
109const void *ripngd_instance_state_neighbors_neighbor_lookup_entry(
110 const void *parent_list_entry, const struct yang_list_keys *keys);
111struct yang_data *ripngd_instance_state_neighbors_neighbor_address_get_elem(
112 const char *xpath, const void *list_entry);
113struct yang_data *ripngd_instance_state_neighbors_neighbor_last_update_get_elem(
114 const char *xpath, const void *list_entry);
115struct yang_data *
116ripngd_instance_state_neighbors_neighbor_bad_packets_rcvd_get_elem(
117 const char *xpath, const void *list_entry);
118struct yang_data *
119ripngd_instance_state_neighbors_neighbor_bad_routes_rcvd_get_elem(
120 const char *xpath, const void *list_entry);
121const void *
122ripngd_instance_state_routes_route_get_next(const void *parent_list_entry,
123 const void *list_entry);
124int ripngd_instance_state_routes_route_get_keys(const void *list_entry,
125 struct yang_list_keys *keys);
126const void *ripngd_instance_state_routes_route_lookup_entry(
127 const void *parent_list_entry, const struct yang_list_keys *keys);
128struct yang_data *
129ripngd_instance_state_routes_route_prefix_get_elem(const char *xpath,
130 const void *list_entry);
131struct yang_data *
132ripngd_instance_state_routes_route_next_hop_get_elem(const char *xpath,
133 const void *list_entry);
134struct yang_data *
135ripngd_instance_state_routes_route_interface_get_elem(const char *xpath,
136 const void *list_entry);
137struct yang_data *
138ripngd_instance_state_routes_route_metric_get_elem(const char *xpath,
139 const void *list_entry);
140int clear_ripng_route_rpc(const char *xpath, const struct list *input,
141 struct list *output);
142int lib_interface_ripng_split_horizon_modify(enum nb_event event,
143 const struct lyd_node *dnode,
144 union nb_resource *resource);
145
146/* Optional 'apply_finish' callbacks. */
147void ripngd_instance_redistribute_apply_finish(const struct lyd_node *dnode);
148void ripngd_instance_timers_apply_finish(const struct lyd_node *dnode);
149
150/* Optional 'cli_show' callbacks. */
151void cli_show_router_ripng(struct vty *vty, struct lyd_node *dnode,
152 bool show_defaults);
153void cli_show_ripng_allow_ecmp(struct vty *vty, struct lyd_node *dnode,
154 bool show_defaults);
155void cli_show_ripng_default_information_originate(struct vty *vty,
156 struct lyd_node *dnode,
157 bool show_defaults);
158void cli_show_ripng_default_metric(struct vty *vty, struct lyd_node *dnode,
159 bool show_defaults);
160void cli_show_ripng_network_prefix(struct vty *vty, struct lyd_node *dnode,
161 bool show_defaults);
162void cli_show_ripng_network_interface(struct vty *vty, struct lyd_node *dnode,
163 bool show_defaults);
164void cli_show_ripng_offset_list(struct vty *vty, struct lyd_node *dnode,
165 bool show_defaults);
166void cli_show_ripng_passive_interface(struct vty *vty, struct lyd_node *dnode,
167 bool show_defaults);
168void cli_show_ripng_redistribute(struct vty *vty, struct lyd_node *dnode,
169 bool show_defaults);
170void cli_show_ripng_route(struct vty *vty, struct lyd_node *dnode,
171 bool show_defaults);
172void cli_show_ripng_aggregate_address(struct vty *vty, struct lyd_node *dnode,
173 bool show_defaults);
174void cli_show_ripng_timers(struct vty *vty, struct lyd_node *dnode,
175 bool show_defaults);
176void cli_show_ipv6_ripng_split_horizon(struct vty *vty, struct lyd_node *dnode,
177 bool show_defaults);
178
179#endif /* _FRR_RIPNG_NB_H_ */