]> git.proxmox.com Git - mirror_frr.git/blob - ripd/rip_nb.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / ripd / rip_nb.h
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
10 extern const struct frr_yang_module_info frr_ripd_info;
11
12 /* Mandatory callbacks. */
13 int ripd_instance_create(struct nb_cb_create_args *args);
14 int ripd_instance_destroy(struct nb_cb_destroy_args *args);
15 const void *ripd_instance_get_next(struct nb_cb_get_next_args *args);
16 int ripd_instance_get_keys(struct nb_cb_get_keys_args *args);
17 const void *ripd_instance_lookup_entry(struct nb_cb_lookup_entry_args *args);
18 int ripd_instance_allow_ecmp_modify(struct nb_cb_modify_args *args);
19 int ripd_instance_default_information_originate_modify(
20 struct nb_cb_modify_args *args);
21 int ripd_instance_default_metric_modify(struct nb_cb_modify_args *args);
22 int ripd_instance_distance_default_modify(struct nb_cb_modify_args *args);
23 int ripd_instance_distance_source_create(struct nb_cb_create_args *args);
24 int ripd_instance_distance_source_destroy(struct nb_cb_destroy_args *args);
25 int ripd_instance_distance_source_distance_modify(
26 struct nb_cb_modify_args *args);
27 int ripd_instance_distance_source_access_list_modify(
28 struct nb_cb_modify_args *args);
29 int ripd_instance_distance_source_access_list_destroy(
30 struct nb_cb_destroy_args *args);
31 int ripd_instance_explicit_neighbor_create(struct nb_cb_create_args *args);
32 int ripd_instance_explicit_neighbor_destroy(struct nb_cb_destroy_args *args);
33 int ripd_instance_network_create(struct nb_cb_create_args *args);
34 int ripd_instance_network_destroy(struct nb_cb_destroy_args *args);
35 int ripd_instance_interface_create(struct nb_cb_create_args *args);
36 int ripd_instance_interface_destroy(struct nb_cb_destroy_args *args);
37 int ripd_instance_offset_list_create(struct nb_cb_create_args *args);
38 int ripd_instance_offset_list_destroy(struct nb_cb_destroy_args *args);
39 int ripd_instance_offset_list_access_list_modify(
40 struct nb_cb_modify_args *args);
41 int ripd_instance_offset_list_metric_modify(struct nb_cb_modify_args *args);
42 int ripd_instance_passive_default_modify(struct nb_cb_modify_args *args);
43 int ripd_instance_passive_interface_create(struct nb_cb_create_args *args);
44 int ripd_instance_passive_interface_destroy(struct nb_cb_destroy_args *args);
45 int ripd_instance_non_passive_interface_create(struct nb_cb_create_args *args);
46 int ripd_instance_non_passive_interface_destroy(
47 struct nb_cb_destroy_args *args);
48 int ripd_instance_redistribute_create(struct nb_cb_create_args *args);
49 int ripd_instance_redistribute_destroy(struct nb_cb_destroy_args *args);
50 int ripd_instance_redistribute_route_map_modify(struct nb_cb_modify_args *args);
51 int ripd_instance_redistribute_route_map_destroy(
52 struct nb_cb_destroy_args *args);
53 int ripd_instance_redistribute_metric_modify(struct nb_cb_modify_args *args);
54 int ripd_instance_redistribute_metric_destroy(struct nb_cb_destroy_args *args);
55 int ripd_instance_static_route_create(struct nb_cb_create_args *args);
56 int ripd_instance_static_route_destroy(struct nb_cb_destroy_args *args);
57 int ripd_instance_timers_flush_interval_modify(struct nb_cb_modify_args *args);
58 int ripd_instance_timers_holddown_interval_modify(
59 struct nb_cb_modify_args *args);
60 int ripd_instance_timers_update_interval_modify(struct nb_cb_modify_args *args);
61 int ripd_instance_version_receive_modify(struct nb_cb_modify_args *args);
62 int ripd_instance_version_send_modify(struct nb_cb_modify_args *args);
63 const void *ripd_instance_state_neighbors_neighbor_get_next(
64 struct nb_cb_get_next_args *args);
65 int ripd_instance_state_neighbors_neighbor_get_keys(
66 struct nb_cb_get_keys_args *args);
67 const void *ripd_instance_state_neighbors_neighbor_lookup_entry(
68 struct nb_cb_lookup_entry_args *args);
69 struct yang_data *ripd_instance_state_neighbors_neighbor_address_get_elem(
70 struct nb_cb_get_elem_args *args);
71 struct yang_data *ripd_instance_state_neighbors_neighbor_last_update_get_elem(
72 struct nb_cb_get_elem_args *args);
73 struct yang_data *
74 ripd_instance_state_neighbors_neighbor_bad_packets_rcvd_get_elem(
75 struct nb_cb_get_elem_args *args);
76 struct yang_data *
77 ripd_instance_state_neighbors_neighbor_bad_routes_rcvd_get_elem(
78 struct nb_cb_get_elem_args *args);
79 const void *
80 ripd_instance_state_routes_route_get_next(struct nb_cb_get_next_args *args);
81 int ripd_instance_state_routes_route_get_keys(struct nb_cb_get_keys_args *args);
82 const void *ripd_instance_state_routes_route_lookup_entry(
83 struct nb_cb_lookup_entry_args *args);
84 struct yang_data *ripd_instance_state_routes_route_prefix_get_elem(
85 struct nb_cb_get_elem_args *args);
86 struct yang_data *ripd_instance_state_routes_route_next_hop_get_elem(
87 struct nb_cb_get_elem_args *args);
88 struct yang_data *ripd_instance_state_routes_route_interface_get_elem(
89 struct nb_cb_get_elem_args *args);
90 struct yang_data *ripd_instance_state_routes_route_metric_get_elem(
91 struct nb_cb_get_elem_args *args);
92 int clear_rip_route_rpc(struct nb_cb_rpc_args *args);
93 int lib_interface_rip_split_horizon_modify(struct nb_cb_modify_args *args);
94 int lib_interface_rip_v2_broadcast_modify(struct nb_cb_modify_args *args);
95 int lib_interface_rip_version_receive_modify(struct nb_cb_modify_args *args);
96 int lib_interface_rip_version_send_modify(struct nb_cb_modify_args *args);
97 int lib_interface_rip_authentication_scheme_mode_modify(
98 struct nb_cb_modify_args *args);
99 int lib_interface_rip_authentication_scheme_md5_auth_length_modify(
100 struct nb_cb_modify_args *args);
101 int lib_interface_rip_authentication_scheme_md5_auth_length_destroy(
102 struct nb_cb_destroy_args *args);
103 int lib_interface_rip_authentication_password_modify(
104 struct nb_cb_modify_args *args);
105 int lib_interface_rip_authentication_password_destroy(
106 struct nb_cb_destroy_args *args);
107 int lib_interface_rip_authentication_key_chain_modify(
108 struct nb_cb_modify_args *args);
109 int lib_interface_rip_authentication_key_chain_destroy(
110 struct nb_cb_destroy_args *args);
111
112 /* Optional 'apply_finish' callbacks. */
113 void ripd_instance_redistribute_apply_finish(
114 struct nb_cb_apply_finish_args *args);
115 void ripd_instance_timers_apply_finish(struct nb_cb_apply_finish_args *args);
116
117 /* Optional 'cli_show' callbacks. */
118 void cli_show_router_rip(struct vty *vty, const struct lyd_node *dnode,
119 bool show_defaults);
120 void cli_show_rip_allow_ecmp(struct vty *vty, const struct lyd_node *dnode,
121 bool show_defaults);
122 void cli_show_rip_default_information_originate(struct vty *vty,
123 const struct lyd_node *dnode,
124 bool show_defaults);
125 void cli_show_rip_default_metric(struct vty *vty, const struct lyd_node *dnode,
126 bool show_defaults);
127 void cli_show_rip_distance(struct vty *vty, const struct lyd_node *dnode,
128 bool show_defaults);
129 void cli_show_rip_distance_source(struct vty *vty, const struct lyd_node *dnode,
130 bool show_defaults);
131 void cli_show_rip_neighbor(struct vty *vty, const struct lyd_node *dnode,
132 bool show_defaults);
133 void cli_show_rip_network_prefix(struct vty *vty, const struct lyd_node *dnode,
134 bool show_defaults);
135 void cli_show_rip_network_interface(struct vty *vty,
136 const struct lyd_node *dnode,
137 bool show_defaults);
138 void cli_show_rip_offset_list(struct vty *vty, const struct lyd_node *dnode,
139 bool show_defaults);
140 void cli_show_rip_passive_default(struct vty *vty, const struct lyd_node *dnode,
141 bool show_defaults);
142 void cli_show_rip_passive_interface(struct vty *vty,
143 const struct lyd_node *dnode,
144 bool show_defaults);
145 void cli_show_rip_non_passive_interface(struct vty *vty,
146 const struct lyd_node *dnode,
147 bool show_defaults);
148 void cli_show_rip_redistribute(struct vty *vty, const struct lyd_node *dnode,
149 bool show_defaults);
150 void cli_show_rip_route(struct vty *vty, const struct lyd_node *dnode,
151 bool show_defaults);
152 void cli_show_rip_timers(struct vty *vty, const struct lyd_node *dnode,
153 bool show_defaults);
154 void cli_show_rip_version(struct vty *vty, const struct lyd_node *dnode,
155 bool show_defaults);
156 void cli_show_ip_rip_split_horizon(struct vty *vty,
157 const struct lyd_node *dnode,
158 bool show_defaults);
159 void cli_show_ip_rip_v2_broadcast(struct vty *vty, const struct lyd_node *dnode,
160 bool show_defaults);
161 void cli_show_ip_rip_receive_version(struct vty *vty,
162 const struct lyd_node *dnode,
163 bool show_defaults);
164 void cli_show_ip_rip_send_version(struct vty *vty, const struct lyd_node *dnode,
165 bool show_defaults);
166 void cli_show_ip_rip_authentication_scheme(struct vty *vty,
167 const struct lyd_node *dnode,
168 bool show_defaults);
169 void cli_show_ip_rip_authentication_string(struct vty *vty,
170 const struct lyd_node *dnode,
171 bool show_defaults);
172 void cli_show_ip_rip_authentication_key_chain(struct vty *vty,
173 const struct lyd_node *dnode,
174 bool show_defaults);
175
176 /* Notifications. */
177 extern void ripd_notif_send_auth_type_failure(const char *ifname);
178 extern void ripd_notif_send_auth_failure(const char *ifname);
179
180 #endif /* _FRR_RIP_NB_H_ */