]> git.proxmox.com Git - mirror_frr.git/blame_incremental - ripd/rip_nb.h
Merge pull request #13631 from donaldsharp/fix_some_ping_issues
[mirror_frr.git] / ripd / rip_nb.h
... / ...
CommitLineData
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2018 NetDEF, Inc.
4 * Renato Westphal
5 */
6
7#ifndef _FRR_RIP_NB_H_
8#define _FRR_RIP_NB_H_
9
10extern const struct frr_yang_module_info frr_ripd_info;
11
12/* Mandatory callbacks. */
13int ripd_instance_create(struct nb_cb_create_args *args);
14int ripd_instance_destroy(struct nb_cb_destroy_args *args);
15const void *ripd_instance_get_next(struct nb_cb_get_next_args *args);
16int ripd_instance_get_keys(struct nb_cb_get_keys_args *args);
17const void *ripd_instance_lookup_entry(struct nb_cb_lookup_entry_args *args);
18int ripd_instance_allow_ecmp_modify(struct nb_cb_modify_args *args);
19int ripd_instance_default_information_originate_modify(
20 struct nb_cb_modify_args *args);
21int ripd_instance_default_metric_modify(struct nb_cb_modify_args *args);
22int ripd_instance_distance_default_modify(struct nb_cb_modify_args *args);
23int ripd_instance_distance_source_create(struct nb_cb_create_args *args);
24int ripd_instance_distance_source_destroy(struct nb_cb_destroy_args *args);
25int ripd_instance_distance_source_distance_modify(
26 struct nb_cb_modify_args *args);
27int ripd_instance_distance_source_access_list_modify(
28 struct nb_cb_modify_args *args);
29int ripd_instance_distance_source_access_list_destroy(
30 struct nb_cb_destroy_args *args);
31int ripd_instance_explicit_neighbor_create(struct nb_cb_create_args *args);
32int ripd_instance_explicit_neighbor_destroy(struct nb_cb_destroy_args *args);
33int ripd_instance_network_create(struct nb_cb_create_args *args);
34int ripd_instance_network_destroy(struct nb_cb_destroy_args *args);
35int ripd_instance_interface_create(struct nb_cb_create_args *args);
36int ripd_instance_interface_destroy(struct nb_cb_destroy_args *args);
37int ripd_instance_offset_list_create(struct nb_cb_create_args *args);
38int ripd_instance_offset_list_destroy(struct nb_cb_destroy_args *args);
39int ripd_instance_offset_list_access_list_modify(
40 struct nb_cb_modify_args *args);
41int ripd_instance_offset_list_metric_modify(struct nb_cb_modify_args *args);
42int ripd_instance_passive_default_modify(struct nb_cb_modify_args *args);
43int ripd_instance_passive_interface_create(struct nb_cb_create_args *args);
44int ripd_instance_passive_interface_destroy(struct nb_cb_destroy_args *args);
45int ripd_instance_non_passive_interface_create(struct nb_cb_create_args *args);
46int ripd_instance_non_passive_interface_destroy(
47 struct nb_cb_destroy_args *args);
48int ripd_instance_redistribute_create(struct nb_cb_create_args *args);
49int ripd_instance_redistribute_destroy(struct nb_cb_destroy_args *args);
50int ripd_instance_redistribute_route_map_modify(struct nb_cb_modify_args *args);
51int ripd_instance_redistribute_route_map_destroy(
52 struct nb_cb_destroy_args *args);
53int ripd_instance_redistribute_metric_modify(struct nb_cb_modify_args *args);
54int ripd_instance_redistribute_metric_destroy(struct nb_cb_destroy_args *args);
55int ripd_instance_if_route_maps_if_route_map_create(
56 struct nb_cb_create_args *args);
57int ripd_instance_if_route_maps_if_route_map_destroy(
58 struct nb_cb_destroy_args *args);
59int ripd_instance_if_route_maps_if_route_map_in_route_map_modify(
60 struct nb_cb_modify_args *args);
61int ripd_instance_if_route_maps_if_route_map_in_route_map_destroy(
62 struct nb_cb_destroy_args *args);
63int ripd_instance_if_route_maps_if_route_map_out_route_map_modify(
64 struct nb_cb_modify_args *args);
65int ripd_instance_if_route_maps_if_route_map_out_route_map_destroy(
66 struct nb_cb_destroy_args *args);
67int ripd_instance_static_route_create(struct nb_cb_create_args *args);
68int ripd_instance_static_route_destroy(struct nb_cb_destroy_args *args);
69int ripd_instance_timers_flush_interval_modify(struct nb_cb_modify_args *args);
70int ripd_instance_timers_holddown_interval_modify(
71 struct nb_cb_modify_args *args);
72int ripd_instance_timers_update_interval_modify(struct nb_cb_modify_args *args);
73int ripd_instance_version_receive_modify(struct nb_cb_modify_args *args);
74int ripd_instance_version_send_modify(struct nb_cb_modify_args *args);
75int ripd_instance_default_bfd_profile_modify(struct nb_cb_modify_args *args);
76int ripd_instance_default_bfd_profile_destroy(struct nb_cb_destroy_args *args);
77const void *ripd_instance_state_neighbors_neighbor_get_next(
78 struct nb_cb_get_next_args *args);
79int ripd_instance_state_neighbors_neighbor_get_keys(
80 struct nb_cb_get_keys_args *args);
81const void *ripd_instance_state_neighbors_neighbor_lookup_entry(
82 struct nb_cb_lookup_entry_args *args);
83struct yang_data *ripd_instance_state_neighbors_neighbor_address_get_elem(
84 struct nb_cb_get_elem_args *args);
85struct yang_data *ripd_instance_state_neighbors_neighbor_last_update_get_elem(
86 struct nb_cb_get_elem_args *args);
87struct yang_data *
88ripd_instance_state_neighbors_neighbor_bad_packets_rcvd_get_elem(
89 struct nb_cb_get_elem_args *args);
90struct yang_data *
91ripd_instance_state_neighbors_neighbor_bad_routes_rcvd_get_elem(
92 struct nb_cb_get_elem_args *args);
93const void *
94ripd_instance_state_routes_route_get_next(struct nb_cb_get_next_args *args);
95int ripd_instance_state_routes_route_get_keys(struct nb_cb_get_keys_args *args);
96const void *ripd_instance_state_routes_route_lookup_entry(
97 struct nb_cb_lookup_entry_args *args);
98struct yang_data *ripd_instance_state_routes_route_prefix_get_elem(
99 struct nb_cb_get_elem_args *args);
100struct yang_data *ripd_instance_state_routes_route_next_hop_get_elem(
101 struct nb_cb_get_elem_args *args);
102struct yang_data *ripd_instance_state_routes_route_interface_get_elem(
103 struct nb_cb_get_elem_args *args);
104struct yang_data *ripd_instance_state_routes_route_metric_get_elem(
105 struct nb_cb_get_elem_args *args);
106const void *ripd_instance_state_routes_route_nexthops_nexthop_get_next(
107 struct nb_cb_get_next_args *args);
108struct yang_data *
109ripd_instance_state_routes_route_nexthops_nexthop_nh_type_get_elem(
110 struct nb_cb_get_elem_args *args);
111struct yang_data *
112ripd_instance_state_routes_route_nexthops_nexthop_protocol_get_elem(
113 struct nb_cb_get_elem_args *args);
114struct yang_data *
115ripd_instance_state_routes_route_nexthops_nexthop_rip_type_get_elem(
116 struct nb_cb_get_elem_args *args);
117struct yang_data *
118ripd_instance_state_routes_route_nexthops_nexthop_gateway_get_elem(
119 struct nb_cb_get_elem_args *args);
120struct yang_data *
121ripd_instance_state_routes_route_nexthops_nexthop_interface_get_elem(
122 struct nb_cb_get_elem_args *args);
123struct yang_data *
124ripd_instance_state_routes_route_nexthops_nexthop_from_get_elem(
125 struct nb_cb_get_elem_args *args);
126struct yang_data *
127ripd_instance_state_routes_route_nexthops_nexthop_tag_get_elem(
128 struct nb_cb_get_elem_args *args);
129struct yang_data *
130ripd_instance_state_routes_route_nexthops_nexthop_external_metric_get_elem(
131 struct nb_cb_get_elem_args *args);
132struct yang_data *
133ripd_instance_state_routes_route_nexthops_nexthop_expire_time_get_elem(
134 struct nb_cb_get_elem_args *args);
135struct yang_data *ripd_instance_state_routes_route_metric_get_elem(
136 struct nb_cb_get_elem_args *args);
137int clear_rip_route_rpc(struct nb_cb_rpc_args *args);
138int lib_interface_rip_split_horizon_modify(struct nb_cb_modify_args *args);
139int lib_interface_rip_v2_broadcast_modify(struct nb_cb_modify_args *args);
140int lib_interface_rip_version_receive_modify(struct nb_cb_modify_args *args);
141int lib_interface_rip_version_send_modify(struct nb_cb_modify_args *args);
142int lib_interface_rip_authentication_scheme_mode_modify(
143 struct nb_cb_modify_args *args);
144int lib_interface_rip_authentication_scheme_md5_auth_length_modify(
145 struct nb_cb_modify_args *args);
146int lib_interface_rip_authentication_scheme_md5_auth_length_destroy(
147 struct nb_cb_destroy_args *args);
148int lib_interface_rip_authentication_password_modify(
149 struct nb_cb_modify_args *args);
150int lib_interface_rip_authentication_password_destroy(
151 struct nb_cb_destroy_args *args);
152int lib_interface_rip_authentication_key_chain_modify(
153 struct nb_cb_modify_args *args);
154int lib_interface_rip_authentication_key_chain_destroy(
155 struct nb_cb_destroy_args *args);
156int lib_interface_rip_bfd_create(struct nb_cb_create_args *args);
157int lib_interface_rip_bfd_destroy(struct nb_cb_destroy_args *args);
158int lib_interface_rip_bfd_enable_modify(struct nb_cb_modify_args *args);
159int lib_interface_rip_bfd_enable_destroy(struct nb_cb_destroy_args *args);
160int lib_interface_rip_bfd_profile_modify(struct nb_cb_modify_args *args);
161int lib_interface_rip_bfd_profile_destroy(struct nb_cb_destroy_args *args);
162
163/* Optional 'apply_finish' callbacks. */
164void ripd_instance_redistribute_apply_finish(
165 struct nb_cb_apply_finish_args *args);
166void ripd_instance_timers_apply_finish(struct nb_cb_apply_finish_args *args);
167
168/* Optional 'cli_show' callbacks. */
169void cli_show_router_rip(struct vty *vty, const struct lyd_node *dnode,
170 bool show_defaults);
171void cli_show_rip_allow_ecmp(struct vty *vty, const struct lyd_node *dnode,
172 bool show_defaults);
173void cli_show_rip_default_information_originate(struct vty *vty,
174 const struct lyd_node *dnode,
175 bool show_defaults);
176void cli_show_rip_default_metric(struct vty *vty, const struct lyd_node *dnode,
177 bool show_defaults);
178void cli_show_rip_distance(struct vty *vty, const struct lyd_node *dnode,
179 bool show_defaults);
180void cli_show_rip_distance_source(struct vty *vty, const struct lyd_node *dnode,
181 bool show_defaults);
182void cli_show_rip_neighbor(struct vty *vty, const struct lyd_node *dnode,
183 bool show_defaults);
184void cli_show_rip_network_prefix(struct vty *vty, const struct lyd_node *dnode,
185 bool show_defaults);
186void cli_show_rip_network_interface(struct vty *vty,
187 const struct lyd_node *dnode,
188 bool show_defaults);
189void cli_show_rip_offset_list(struct vty *vty, const struct lyd_node *dnode,
190 bool show_defaults);
191void cli_show_rip_passive_default(struct vty *vty, const struct lyd_node *dnode,
192 bool show_defaults);
193void cli_show_rip_passive_interface(struct vty *vty,
194 const struct lyd_node *dnode,
195 bool show_defaults);
196void cli_show_rip_non_passive_interface(struct vty *vty,
197 const struct lyd_node *dnode,
198 bool show_defaults);
199void cli_show_rip_redistribute(struct vty *vty, const struct lyd_node *dnode,
200 bool show_defaults);
201void cli_show_rip_route(struct vty *vty, const struct lyd_node *dnode,
202 bool show_defaults);
203void cli_show_rip_timers(struct vty *vty, const struct lyd_node *dnode,
204 bool show_defaults);
205void cli_show_rip_version(struct vty *vty, const struct lyd_node *dnode,
206 bool show_defaults);
207void cli_show_ip_rip_split_horizon(struct vty *vty,
208 const struct lyd_node *dnode,
209 bool show_defaults);
210void cli_show_ip_rip_v2_broadcast(struct vty *vty, const struct lyd_node *dnode,
211 bool show_defaults);
212void cli_show_ip_rip_receive_version(struct vty *vty,
213 const struct lyd_node *dnode,
214 bool show_defaults);
215void cli_show_ip_rip_send_version(struct vty *vty, const struct lyd_node *dnode,
216 bool show_defaults);
217void cli_show_ripd_instance_default_bfd_profile(struct vty *vty,
218 const struct lyd_node *dnode,
219 bool show_defaults);
220void cli_show_ip_rip_authentication_scheme(struct vty *vty,
221 const struct lyd_node *dnode,
222 bool show_defaults);
223void cli_show_ip_rip_authentication_string(struct vty *vty,
224 const struct lyd_node *dnode,
225 bool show_defaults);
226void cli_show_ip_rip_authentication_key_chain(struct vty *vty,
227 const struct lyd_node *dnode,
228 bool show_defaults);
229void cli_show_ip_rip_bfd_enable(struct vty *vty, const struct lyd_node *dnode,
230 bool show_defaults);
231void cli_show_ip_rip_bfd_profile(struct vty *vty, const struct lyd_node *dnode,
232 bool show_defaults);
233
234/* Notifications. */
235extern void ripd_notif_send_auth_type_failure(const char *ifname);
236extern void ripd_notif_send_auth_failure(const char *ifname);
237
238#endif /* _FRR_RIP_NB_H_ */