]> git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_nb.h
Merge pull request #6321 from ton31337/fix/configuration_for_labeled_in_place
[mirror_frr.git] / zebra / zebra_nb.h
1 /*
2 * Copyright (C) 2020 Cumulus Networks, Inc.
3 * Chirag Shah
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 ZEBRA_ZEBRA_NB_H_
21 #define ZEBRA_ZEBRA_NB_H_
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 extern const struct frr_yang_module_info frr_zebra_info;
28
29 /* helper functions */
30 const char *zebra_afi_safi_value2identity(afi_t afi, safi_t safi);
31 void zebra_afi_safi_identity2value(const char *key, afi_t *afi, safi_t *safi);
32
33 /* prototypes */
34 int get_route_information_rpc(struct nb_cb_rpc_args *args);
35 int get_v6_mroute_info_rpc(struct nb_cb_rpc_args *args);
36 int get_vrf_info_rpc(struct nb_cb_rpc_args *args);
37 int get_vrf_vni_info_rpc(struct nb_cb_rpc_args *args);
38 int get_evpn_info_rpc(struct nb_cb_rpc_args *args);
39 int get_vni_info_rpc(struct nb_cb_rpc_args *args);
40 int get_evpn_vni_rmac_rpc(struct nb_cb_rpc_args *args);
41 int get_evpn_vni_nexthops_rpc(struct nb_cb_rpc_args *args);
42 int clear_evpn_dup_addr_rpc(struct nb_cb_rpc_args *args);
43 int get_evpn_macs_rpc(struct nb_cb_rpc_args *args);
44 int get_evpn_arp_cache_rpc(struct nb_cb_rpc_args *args);
45 int get_pbr_ipset_rpc(struct nb_cb_rpc_args *args);
46 int get_pbr_iptable_rpc(struct nb_cb_rpc_args *args);
47 int get_debugs_rpc(struct nb_cb_rpc_args *args);
48 int zebra_mcast_rpf_lookup_modify(struct nb_cb_modify_args *args);
49 int zebra_ip_forwarding_modify(struct nb_cb_modify_args *args);
50 int zebra_ip_forwarding_destroy(struct nb_cb_destroy_args *args);
51 int zebra_ipv6_forwarding_modify(struct nb_cb_modify_args *args);
52 int zebra_ipv6_forwarding_destroy(struct nb_cb_destroy_args *args);
53 int zebra_workqueue_hold_timer_modify(struct nb_cb_modify_args *args);
54 int zebra_zapi_packets_modify(struct nb_cb_modify_args *args);
55 int zebra_import_kernel_table_table_id_modify(struct nb_cb_modify_args *args);
56 int zebra_import_kernel_table_table_id_destroy(struct nb_cb_destroy_args *args);
57 int zebra_import_kernel_table_distance_modify(struct nb_cb_modify_args *args);
58 int zebra_import_kernel_table_route_map_modify(struct nb_cb_modify_args *args);
59 int zebra_import_kernel_table_route_map_destroy(
60 struct nb_cb_destroy_args *args);
61 int zebra_allow_external_route_update_create(struct nb_cb_create_args *args);
62 int zebra_allow_external_route_update_destroy(struct nb_cb_destroy_args *args);
63 int zebra_dplane_queue_limit_modify(struct nb_cb_modify_args *args);
64 int zebra_vrf_vni_mapping_create(struct nb_cb_create_args *args);
65 int zebra_vrf_vni_mapping_destroy(struct nb_cb_destroy_args *args);
66 int zebra_vrf_vni_mapping_vni_id_modify(struct nb_cb_modify_args *args);
67 int zebra_vrf_vni_mapping_vni_id_destroy(struct nb_cb_destroy_args *args);
68 int zebra_vrf_vni_mapping_prefix_only_create(struct nb_cb_create_args *args);
69 int zebra_vrf_vni_mapping_prefix_only_destroy(struct nb_cb_destroy_args *args);
70 int zebra_debugs_debug_events_modify(struct nb_cb_modify_args *args);
71 int zebra_debugs_debug_events_destroy(struct nb_cb_destroy_args *args);
72 int zebra_debugs_debug_zapi_send_modify(struct nb_cb_modify_args *args);
73 int zebra_debugs_debug_zapi_send_destroy(struct nb_cb_destroy_args *args);
74 int zebra_debugs_debug_zapi_recv_modify(struct nb_cb_modify_args *args);
75 int zebra_debugs_debug_zapi_recv_destroy(struct nb_cb_destroy_args *args);
76 int zebra_debugs_debug_zapi_detail_modify(struct nb_cb_modify_args *args);
77 int zebra_debugs_debug_zapi_detail_destroy(struct nb_cb_destroy_args *args);
78 int zebra_debugs_debug_kernel_modify(struct nb_cb_modify_args *args);
79 int zebra_debugs_debug_kernel_destroy(struct nb_cb_destroy_args *args);
80 int zebra_debugs_debug_kernel_msg_send_modify(struct nb_cb_modify_args *args);
81 int zebra_debugs_debug_kernel_msg_send_destroy(struct nb_cb_destroy_args *args);
82 int zebra_debugs_debug_kernel_msg_recv_modify(struct nb_cb_modify_args *args);
83 int zebra_debugs_debug_kernel_msg_recv_destroy(struct nb_cb_destroy_args *args);
84 int zebra_debugs_debug_rib_modify(struct nb_cb_modify_args *args);
85 int zebra_debugs_debug_rib_destroy(struct nb_cb_destroy_args *args);
86 int zebra_debugs_debug_rib_detail_modify(struct nb_cb_modify_args *args);
87 int zebra_debugs_debug_rib_detail_destroy(struct nb_cb_destroy_args *args);
88 int zebra_debugs_debug_fpm_modify(struct nb_cb_modify_args *args);
89 int zebra_debugs_debug_fpm_destroy(struct nb_cb_destroy_args *args);
90 int zebra_debugs_debug_nht_modify(struct nb_cb_modify_args *args);
91 int zebra_debugs_debug_nht_destroy(struct nb_cb_destroy_args *args);
92 int zebra_debugs_debug_nht_detail_modify(struct nb_cb_modify_args *args);
93 int zebra_debugs_debug_nht_detail_destroy(struct nb_cb_destroy_args *args);
94 int zebra_debugs_debug_mpls_modify(struct nb_cb_modify_args *args);
95 int zebra_debugs_debug_mpls_destroy(struct nb_cb_destroy_args *args);
96 int zebra_debugs_debug_vxlan_modify(struct nb_cb_modify_args *args);
97 int zebra_debugs_debug_vxlan_destroy(struct nb_cb_destroy_args *args);
98 int zebra_debugs_debug_pw_modify(struct nb_cb_modify_args *args);
99 int zebra_debugs_debug_pw_destroy(struct nb_cb_destroy_args *args);
100 int zebra_debugs_debug_dplane_modify(struct nb_cb_modify_args *args);
101 int zebra_debugs_debug_dplane_destroy(struct nb_cb_destroy_args *args);
102 int zebra_debugs_debug_dplane_detail_modify(struct nb_cb_modify_args *args);
103 int zebra_debugs_debug_dplane_detail_destroy(struct nb_cb_destroy_args *args);
104 int zebra_debugs_debug_mlag_modify(struct nb_cb_modify_args *args);
105 int zebra_debugs_debug_mlag_destroy(struct nb_cb_destroy_args *args);
106 int lib_interface_zebra_ip_addrs_create(struct nb_cb_create_args *args);
107 int lib_interface_zebra_ip_addrs_destroy(struct nb_cb_destroy_args *args);
108 int lib_interface_zebra_ip_addrs_label_modify(struct nb_cb_modify_args *args);
109 int lib_interface_zebra_ip_addrs_label_destroy(struct nb_cb_destroy_args *args);
110 int lib_interface_zebra_ip_addrs_ip4_peer_modify(
111 struct nb_cb_modify_args *args);
112 int lib_interface_zebra_ip_addrs_ip4_peer_destroy(
113 struct nb_cb_destroy_args *args);
114 int lib_interface_zebra_multicast_modify(struct nb_cb_modify_args *args);
115 int lib_interface_zebra_multicast_destroy(struct nb_cb_destroy_args *args);
116 int lib_interface_zebra_link_detect_modify(struct nb_cb_modify_args *args);
117 int lib_interface_zebra_link_detect_destroy(struct nb_cb_destroy_args *args);
118 int lib_interface_zebra_shutdown_modify(struct nb_cb_modify_args *args);
119 int lib_interface_zebra_shutdown_destroy(struct nb_cb_destroy_args *args);
120 int lib_interface_zebra_bandwidth_modify(struct nb_cb_modify_args *args);
121 int lib_interface_zebra_bandwidth_destroy(struct nb_cb_destroy_args *args);
122 int lib_route_map_entry_match_condition_ipv4_prefix_length_modify(
123 struct nb_cb_modify_args *args);
124 int lib_route_map_entry_match_condition_ipv4_prefix_length_destroy(
125 struct nb_cb_destroy_args *args);
126 int lib_route_map_entry_match_condition_ipv6_prefix_length_modify(
127 struct nb_cb_modify_args *args);
128 int lib_route_map_entry_match_condition_ipv6_prefix_length_destroy(
129 struct nb_cb_destroy_args *args);
130 int lib_route_map_entry_match_condition_source_protocol_modify(
131 struct nb_cb_modify_args *args);
132 int lib_route_map_entry_match_condition_source_protocol_destroy(
133 struct nb_cb_destroy_args *args);
134 int lib_route_map_entry_match_condition_source_instance_modify(
135 struct nb_cb_modify_args *args);
136 int lib_route_map_entry_match_condition_source_instance_destroy(
137 struct nb_cb_destroy_args *args);
138 int lib_route_map_entry_set_action_source_v4_modify(
139 struct nb_cb_modify_args *args);
140 int lib_route_map_entry_set_action_source_v4_destroy(
141 struct nb_cb_destroy_args *args);
142 int lib_route_map_entry_set_action_source_v6_modify(
143 struct nb_cb_modify_args *args);
144 int lib_route_map_entry_set_action_source_v6_destroy(
145 struct nb_cb_destroy_args *args);
146 struct yang_data *
147 lib_interface_zebra_state_up_count_get_elem(struct nb_cb_get_elem_args *args);
148 struct yang_data *
149 lib_interface_zebra_state_down_count_get_elem(struct nb_cb_get_elem_args *args);
150 struct yang_data *
151 lib_interface_zebra_state_zif_type_get_elem(struct nb_cb_get_elem_args *args);
152 struct yang_data *
153 lib_interface_zebra_state_ptm_status_get_elem(struct nb_cb_get_elem_args *args);
154 struct yang_data *
155 lib_interface_zebra_state_vlan_id_get_elem(struct nb_cb_get_elem_args *args);
156 struct yang_data *
157 lib_interface_zebra_state_vni_id_get_elem(struct nb_cb_get_elem_args *args);
158 struct yang_data *lib_interface_zebra_state_remote_vtep_get_elem(
159 struct nb_cb_get_elem_args *args);
160 struct yang_data *lib_interface_zebra_state_mcast_group_get_elem(
161 struct nb_cb_get_elem_args *args);
162 int lib_vrf_zebra_ribs_rib_create(struct nb_cb_create_args *args);
163 int lib_vrf_zebra_ribs_rib_destroy(struct nb_cb_destroy_args *args);
164 const void *lib_vrf_zebra_ribs_rib_get_next(struct nb_cb_get_next_args *args);
165 int lib_vrf_zebra_ribs_rib_get_keys(struct nb_cb_get_keys_args *args);
166 const void *
167 lib_vrf_zebra_ribs_rib_lookup_entry(struct nb_cb_lookup_entry_args *args);
168 const void *
169 lib_vrf_zebra_ribs_rib_route_get_next(struct nb_cb_get_next_args *args);
170 int lib_vrf_zebra_ribs_rib_route_get_keys(struct nb_cb_get_keys_args *args);
171 const void *
172 lib_vrf_zebra_ribs_rib_route_lookup_entry(struct nb_cb_lookup_entry_args *args);
173 struct yang_data *
174 lib_vrf_zebra_ribs_rib_route_prefix_get_elem(struct nb_cb_get_elem_args *args);
175 struct yang_data *lib_vrf_zebra_ribs_rib_route_protocol_get_elem(
176 struct nb_cb_get_elem_args *args);
177 struct yang_data *lib_vrf_zebra_ribs_rib_route_protocol_v6_get_elem(
178 struct nb_cb_get_elem_args *args);
179 struct yang_data *
180 lib_vrf_zebra_ribs_rib_route_vrf_get_elem(struct nb_cb_get_elem_args *args);
181 struct yang_data *lib_vrf_zebra_ribs_rib_route_distance_get_elem(
182 struct nb_cb_get_elem_args *args);
183 struct yang_data *
184 lib_vrf_zebra_ribs_rib_route_metric_get_elem(struct nb_cb_get_elem_args *args);
185 struct yang_data *
186 lib_vrf_zebra_ribs_rib_route_tag_get_elem(struct nb_cb_get_elem_args *args);
187 struct yang_data *lib_vrf_zebra_ribs_rib_route_selected_get_elem(
188 struct nb_cb_get_elem_args *args);
189 struct yang_data *lib_vrf_zebra_ribs_rib_route_installed_get_elem(
190 struct nb_cb_get_elem_args *args);
191 struct yang_data *
192 lib_vrf_zebra_ribs_rib_route_failed_get_elem(struct nb_cb_get_elem_args *args);
193 struct yang_data *
194 lib_vrf_zebra_ribs_rib_route_queued_get_elem(struct nb_cb_get_elem_args *args);
195 struct yang_data *lib_vrf_zebra_ribs_rib_route_internal_flags_get_elem(
196 struct nb_cb_get_elem_args *args);
197 struct yang_data *lib_vrf_zebra_ribs_rib_route_internal_status_get_elem(
198 struct nb_cb_get_elem_args *args);
199 struct yang_data *
200 lib_vrf_zebra_ribs_rib_route_uptime_get_elem(struct nb_cb_get_elem_args *args);
201 const void *lib_vrf_zebra_ribs_rib_route_nexthop_group_get_next(
202 struct nb_cb_get_next_args *args);
203 int lib_vrf_zebra_ribs_rib_route_nexthop_group_get_keys(
204 struct nb_cb_get_keys_args *args);
205 const void *lib_vrf_zebra_ribs_rib_route_nexthop_group_lookup_entry(
206 struct nb_cb_lookup_entry_args *args);
207 struct yang_data *lib_vrf_zebra_ribs_rib_route_nexthop_group_name_get_elem(
208 struct nb_cb_get_elem_args *args);
209 const void *
210 lib_vrf_zebra_ribs_rib_route_nexthop_group_frr_nexthops_nexthop_get_next(
211 struct nb_cb_get_next_args *args);
212 int lib_vrf_zebra_ribs_rib_route_nexthop_group_frr_nexthops_nexthop_get_keys(
213 struct nb_cb_get_keys_args *args);
214 int lib_vrf_zebra_ribs_rib_create(struct nb_cb_create_args *args);
215 int lib_vrf_zebra_ribs_rib_destroy(struct nb_cb_destroy_args *args);
216 const void *lib_vrf_zebra_ribs_rib_get_next(struct nb_cb_get_next_args *args);
217 int lib_vrf_zebra_ribs_rib_get_keys(struct nb_cb_get_keys_args *args);
218 const void *
219 lib_vrf_zebra_ribs_rib_lookup_entry(struct nb_cb_lookup_entry_args *args);
220 const void *
221 lib_vrf_zebra_ribs_rib_route_get_next(struct nb_cb_get_next_args *args);
222 int lib_vrf_zebra_ribs_rib_route_get_keys(struct nb_cb_get_keys_args *args);
223 const void *
224 lib_vrf_zebra_ribs_rib_route_lookup_entry(struct nb_cb_lookup_entry_args *args);
225 struct yang_data *
226 lib_vrf_zebra_ribs_rib_route_prefix_get_elem(struct nb_cb_get_elem_args *args);
227 const void *lib_vrf_zebra_ribs_rib_route_route_entry_get_next(
228 struct nb_cb_get_next_args *args);
229 int lib_vrf_zebra_ribs_rib_route_route_entry_get_keys(
230 struct nb_cb_get_keys_args *args);
231 const void *lib_vrf_zebra_ribs_rib_route_route_entry_lookup_entry(
232 struct nb_cb_lookup_entry_args *args);
233 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_protocol_get_elem(
234 struct nb_cb_get_elem_args *args);
235 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_instance_get_elem(
236 struct nb_cb_get_elem_args *args);
237 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_distance_get_elem(
238 struct nb_cb_get_elem_args *args);
239 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_metric_get_elem(
240 struct nb_cb_get_elem_args *args);
241 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_tag_get_elem(
242 struct nb_cb_get_elem_args *args);
243 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_selected_get_elem(
244 struct nb_cb_get_elem_args *args);
245 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_installed_get_elem(
246 struct nb_cb_get_elem_args *args);
247 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_failed_get_elem(
248 struct nb_cb_get_elem_args *args);
249 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_queued_get_elem(
250 struct nb_cb_get_elem_args *args);
251 struct yang_data *
252 lib_vrf_zebra_ribs_rib_route_route_entry_internal_flags_get_elem(
253 struct nb_cb_get_elem_args *args);
254 struct yang_data *
255 lib_vrf_zebra_ribs_rib_route_route_entry_internal_status_get_elem(
256 struct nb_cb_get_elem_args *args);
257 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_uptime_get_elem(
258 struct nb_cb_get_elem_args *args);
259 const void *lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_get_next(
260 struct nb_cb_get_next_args *args);
261 int lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_get_keys(
262 struct nb_cb_get_keys_args *args);
263 const void *lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_lookup_entry(
264 struct nb_cb_lookup_entry_args *args);
265 struct yang_data *
266 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_name_get_elem(
267 struct nb_cb_get_elem_args *args);
268 const void *
269 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_get_next(
270 struct nb_cb_get_next_args *args);
271 int lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_get_keys(
272 struct nb_cb_get_keys_args *args);
273 const void *
274 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_lookup_entry(
275 struct nb_cb_lookup_entry_args *args);
276 struct yang_data *
277 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_nh_type_get_elem(
278 struct nb_cb_get_elem_args *args);
279 struct yang_data *
280 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_vrf_get_elem(
281 struct nb_cb_get_elem_args *args);
282 struct yang_data *
283 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_gateway_get_elem(
284 struct nb_cb_get_elem_args *args);
285 struct yang_data *
286 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_interface_get_elem(
287 struct nb_cb_get_elem_args *args);
288 struct yang_data *
289 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_bh_type_get_elem(
290 struct nb_cb_get_elem_args *args);
291 struct yang_data *
292 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_onlink_get_elem(
293 struct nb_cb_get_elem_args *args);
294 const void *
295 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_mpls_label_stack_entry_get_next(
296 struct nb_cb_get_next_args *args);
297 int lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_mpls_label_stack_entry_get_keys(
298 struct nb_cb_get_keys_args *args);
299 const void *
300 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_mpls_label_stack_entry_lookup_entry(
301 struct nb_cb_lookup_entry_args *args);
302 struct yang_data *
303 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_mpls_label_stack_entry_id_get_elem(
304 struct nb_cb_get_elem_args *args);
305 struct yang_data *
306 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_mpls_label_stack_entry_label_get_elem(
307 struct nb_cb_get_elem_args *args);
308 struct yang_data *
309 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_mpls_label_stack_entry_ttl_get_elem(
310 struct nb_cb_get_elem_args *args);
311 struct yang_data *
312 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_mpls_label_stack_entry_traffic_class_get_elem(
313 struct nb_cb_get_elem_args *args);
314 struct yang_data *
315 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_duplicate_get_elem(
316 struct nb_cb_get_elem_args *args);
317 struct yang_data *
318 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_recursive_get_elem(
319 struct nb_cb_get_elem_args *args);
320 struct yang_data *
321 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_active_get_elem(
322 struct nb_cb_get_elem_args *args);
323 struct yang_data *
324 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_fib_get_elem(
325 struct nb_cb_get_elem_args *args);
326 struct yang_data *
327 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_frr_nexthops_nexthop_weight_get_elem(
328 struct nb_cb_get_elem_args *args);
329
330 #ifdef __cplusplus
331 }
332 #endif
333
334 #endif