]> git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_nb.h
tools: config clang-format to allow aligned macros
[mirror_frr.git] / zebra / zebra_nb.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (C) 2020 Cumulus Networks, Inc.
4 * Chirag Shah
5 */
6
7 #ifndef ZEBRA_ZEBRA_NB_H_
8 #define ZEBRA_ZEBRA_NB_H_
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 extern const struct frr_yang_module_info frr_zebra_info;
15
16 /* prototypes */
17 int get_route_information_rpc(struct nb_cb_rpc_args *args);
18 int get_v6_mroute_info_rpc(struct nb_cb_rpc_args *args);
19 int get_vrf_info_rpc(struct nb_cb_rpc_args *args);
20 int get_vrf_vni_info_rpc(struct nb_cb_rpc_args *args);
21 int get_evpn_info_rpc(struct nb_cb_rpc_args *args);
22 int get_vni_info_rpc(struct nb_cb_rpc_args *args);
23 int get_evpn_vni_rmac_rpc(struct nb_cb_rpc_args *args);
24 int get_evpn_vni_nexthops_rpc(struct nb_cb_rpc_args *args);
25 int clear_evpn_dup_addr_rpc(struct nb_cb_rpc_args *args);
26 int get_evpn_macs_rpc(struct nb_cb_rpc_args *args);
27 int get_evpn_arp_cache_rpc(struct nb_cb_rpc_args *args);
28 int get_pbr_ipset_rpc(struct nb_cb_rpc_args *args);
29 int get_pbr_iptable_rpc(struct nb_cb_rpc_args *args);
30 int get_debugs_rpc(struct nb_cb_rpc_args *args);
31 int zebra_mcast_rpf_lookup_modify(struct nb_cb_modify_args *args);
32 int zebra_ip_forwarding_modify(struct nb_cb_modify_args *args);
33 int zebra_ip_forwarding_destroy(struct nb_cb_destroy_args *args);
34 int zebra_ipv6_forwarding_modify(struct nb_cb_modify_args *args);
35 int zebra_ipv6_forwarding_destroy(struct nb_cb_destroy_args *args);
36 int zebra_workqueue_hold_timer_modify(struct nb_cb_modify_args *args);
37 int zebra_zapi_packets_modify(struct nb_cb_modify_args *args);
38 int zebra_import_kernel_table_table_id_modify(struct nb_cb_modify_args *args);
39 int zebra_import_kernel_table_table_id_destroy(struct nb_cb_destroy_args *args);
40 int zebra_import_kernel_table_distance_modify(struct nb_cb_modify_args *args);
41 int zebra_import_kernel_table_route_map_modify(struct nb_cb_modify_args *args);
42 int zebra_import_kernel_table_route_map_destroy(
43 struct nb_cb_destroy_args *args);
44 int zebra_allow_external_route_update_create(struct nb_cb_create_args *args);
45 int zebra_allow_external_route_update_destroy(struct nb_cb_destroy_args *args);
46 int zebra_dplane_queue_limit_modify(struct nb_cb_modify_args *args);
47 int zebra_debugs_debug_events_modify(struct nb_cb_modify_args *args);
48 int zebra_debugs_debug_events_destroy(struct nb_cb_destroy_args *args);
49 int zebra_debugs_debug_zapi_send_modify(struct nb_cb_modify_args *args);
50 int zebra_debugs_debug_zapi_send_destroy(struct nb_cb_destroy_args *args);
51 int zebra_debugs_debug_zapi_recv_modify(struct nb_cb_modify_args *args);
52 int zebra_debugs_debug_zapi_recv_destroy(struct nb_cb_destroy_args *args);
53 int zebra_debugs_debug_zapi_detail_modify(struct nb_cb_modify_args *args);
54 int zebra_debugs_debug_zapi_detail_destroy(struct nb_cb_destroy_args *args);
55 int zebra_debugs_debug_kernel_modify(struct nb_cb_modify_args *args);
56 int zebra_debugs_debug_kernel_destroy(struct nb_cb_destroy_args *args);
57 int zebra_debugs_debug_kernel_msg_send_modify(struct nb_cb_modify_args *args);
58 int zebra_debugs_debug_kernel_msg_send_destroy(struct nb_cb_destroy_args *args);
59 int zebra_debugs_debug_kernel_msg_recv_modify(struct nb_cb_modify_args *args);
60 int zebra_debugs_debug_kernel_msg_recv_destroy(struct nb_cb_destroy_args *args);
61 int zebra_debugs_debug_rib_modify(struct nb_cb_modify_args *args);
62 int zebra_debugs_debug_rib_destroy(struct nb_cb_destroy_args *args);
63 int zebra_debugs_debug_rib_detail_modify(struct nb_cb_modify_args *args);
64 int zebra_debugs_debug_rib_detail_destroy(struct nb_cb_destroy_args *args);
65 int zebra_debugs_debug_fpm_modify(struct nb_cb_modify_args *args);
66 int zebra_debugs_debug_fpm_destroy(struct nb_cb_destroy_args *args);
67 int zebra_debugs_debug_nht_modify(struct nb_cb_modify_args *args);
68 int zebra_debugs_debug_nht_destroy(struct nb_cb_destroy_args *args);
69 int zebra_debugs_debug_nht_detail_modify(struct nb_cb_modify_args *args);
70 int zebra_debugs_debug_nht_detail_destroy(struct nb_cb_destroy_args *args);
71 int zebra_debugs_debug_mpls_modify(struct nb_cb_modify_args *args);
72 int zebra_debugs_debug_mpls_destroy(struct nb_cb_destroy_args *args);
73 int zebra_debugs_debug_vxlan_modify(struct nb_cb_modify_args *args);
74 int zebra_debugs_debug_vxlan_destroy(struct nb_cb_destroy_args *args);
75 int zebra_debugs_debug_pw_modify(struct nb_cb_modify_args *args);
76 int zebra_debugs_debug_pw_destroy(struct nb_cb_destroy_args *args);
77 int zebra_debugs_debug_dplane_modify(struct nb_cb_modify_args *args);
78 int zebra_debugs_debug_dplane_destroy(struct nb_cb_destroy_args *args);
79 int zebra_debugs_debug_dplane_detail_modify(struct nb_cb_modify_args *args);
80 int zebra_debugs_debug_dplane_detail_destroy(struct nb_cb_destroy_args *args);
81 int zebra_debugs_debug_mlag_modify(struct nb_cb_modify_args *args);
82 int zebra_debugs_debug_mlag_destroy(struct nb_cb_destroy_args *args);
83 int lib_interface_zebra_ip_addrs_create(struct nb_cb_create_args *args);
84 int lib_interface_zebra_ip_addrs_destroy(struct nb_cb_destroy_args *args);
85 int lib_interface_zebra_ip_addrs_label_modify(struct nb_cb_modify_args *args);
86 int lib_interface_zebra_ip_addrs_label_destroy(struct nb_cb_destroy_args *args);
87 int lib_interface_zebra_ip_addrs_ip4_peer_modify(
88 struct nb_cb_modify_args *args);
89 int lib_interface_zebra_ip_addrs_ip4_peer_destroy(
90 struct nb_cb_destroy_args *args);
91 int lib_interface_zebra_multicast_modify(struct nb_cb_modify_args *args);
92 int lib_interface_zebra_multicast_destroy(struct nb_cb_destroy_args *args);
93 int lib_interface_zebra_link_detect_modify(struct nb_cb_modify_args *args);
94 int lib_interface_zebra_link_detect_destroy(struct nb_cb_destroy_args *args);
95 int lib_interface_zebra_shutdown_modify(struct nb_cb_modify_args *args);
96 int lib_interface_zebra_shutdown_destroy(struct nb_cb_destroy_args *args);
97 int lib_interface_zebra_bandwidth_modify(struct nb_cb_modify_args *args);
98 int lib_interface_zebra_bandwidth_destroy(struct nb_cb_destroy_args *args);
99 int lib_interface_zebra_legacy_admin_group_modify(
100 struct nb_cb_modify_args *args);
101 int lib_interface_zebra_legacy_admin_group_destroy(
102 struct nb_cb_destroy_args *args);
103 int lib_interface_zebra_affinity_create(struct nb_cb_create_args *args);
104 int lib_interface_zebra_affinity_destroy(struct nb_cb_destroy_args *args);
105 int lib_interface_zebra_affinity_mode_modify(struct nb_cb_modify_args *args);
106 struct yang_data *
107 lib_interface_zebra_state_up_count_get_elem(struct nb_cb_get_elem_args *args);
108 struct yang_data *
109 lib_interface_zebra_state_down_count_get_elem(struct nb_cb_get_elem_args *args);
110 struct yang_data *
111 lib_interface_zebra_state_zif_type_get_elem(struct nb_cb_get_elem_args *args);
112 struct yang_data *
113 lib_interface_zebra_state_ptm_status_get_elem(struct nb_cb_get_elem_args *args);
114 struct yang_data *
115 lib_interface_zebra_state_vlan_id_get_elem(struct nb_cb_get_elem_args *args);
116 struct yang_data *
117 lib_interface_zebra_state_vni_id_get_elem(struct nb_cb_get_elem_args *args);
118 struct yang_data *lib_interface_zebra_state_remote_vtep_get_elem(
119 struct nb_cb_get_elem_args *args);
120 struct yang_data *lib_interface_zebra_state_mcast_group_get_elem(
121 struct nb_cb_get_elem_args *args);
122 const void *lib_vrf_zebra_ribs_rib_get_next(struct nb_cb_get_next_args *args);
123 int lib_vrf_zebra_ribs_rib_get_keys(struct nb_cb_get_keys_args *args);
124 const void *
125 lib_vrf_zebra_ribs_rib_lookup_entry(struct nb_cb_lookup_entry_args *args);
126 struct yang_data *
127 lib_vrf_zebra_ribs_rib_afi_safi_name_get_elem(struct nb_cb_get_elem_args *args);
128 struct yang_data *
129 lib_vrf_zebra_ribs_rib_table_id_get_elem(struct nb_cb_get_elem_args *args);
130 const void *
131 lib_vrf_zebra_ribs_rib_route_get_next(struct nb_cb_get_next_args *args);
132 int lib_vrf_zebra_ribs_rib_route_get_keys(struct nb_cb_get_keys_args *args);
133 const void *
134 lib_vrf_zebra_ribs_rib_route_lookup_entry(struct nb_cb_lookup_entry_args *args);
135 struct yang_data *
136 lib_vrf_zebra_ribs_rib_route_prefix_get_elem(struct nb_cb_get_elem_args *args);
137 struct yang_data *lib_vrf_zebra_ribs_rib_route_protocol_get_elem(
138 struct nb_cb_get_elem_args *args);
139 struct yang_data *lib_vrf_zebra_ribs_rib_route_protocol_v6_get_elem(
140 struct nb_cb_get_elem_args *args);
141 struct yang_data *
142 lib_vrf_zebra_ribs_rib_route_vrf_get_elem(struct nb_cb_get_elem_args *args);
143 struct yang_data *lib_vrf_zebra_ribs_rib_route_distance_get_elem(
144 struct nb_cb_get_elem_args *args);
145 struct yang_data *
146 lib_vrf_zebra_ribs_rib_route_metric_get_elem(struct nb_cb_get_elem_args *args);
147 struct yang_data *
148 lib_vrf_zebra_ribs_rib_route_tag_get_elem(struct nb_cb_get_elem_args *args);
149 struct yang_data *lib_vrf_zebra_ribs_rib_route_selected_get_elem(
150 struct nb_cb_get_elem_args *args);
151 struct yang_data *lib_vrf_zebra_ribs_rib_route_installed_get_elem(
152 struct nb_cb_get_elem_args *args);
153 struct yang_data *
154 lib_vrf_zebra_ribs_rib_route_failed_get_elem(struct nb_cb_get_elem_args *args);
155 struct yang_data *
156 lib_vrf_zebra_ribs_rib_route_queued_get_elem(struct nb_cb_get_elem_args *args);
157 struct yang_data *lib_vrf_zebra_ribs_rib_route_internal_flags_get_elem(
158 struct nb_cb_get_elem_args *args);
159 struct yang_data *lib_vrf_zebra_ribs_rib_route_internal_status_get_elem(
160 struct nb_cb_get_elem_args *args);
161 struct yang_data *
162 lib_vrf_zebra_ribs_rib_route_uptime_get_elem(struct nb_cb_get_elem_args *args);
163 const void *lib_vrf_zebra_ribs_rib_route_nexthop_group_get_next(
164 struct nb_cb_get_next_args *args);
165 int lib_vrf_zebra_ribs_rib_route_nexthop_group_get_keys(
166 struct nb_cb_get_keys_args *args);
167 const void *lib_vrf_zebra_ribs_rib_route_nexthop_group_lookup_entry(
168 struct nb_cb_lookup_entry_args *args);
169 struct yang_data *lib_vrf_zebra_ribs_rib_route_nexthop_group_name_get_elem(
170 struct nb_cb_get_elem_args *args);
171 const void *
172 lib_vrf_zebra_ribs_rib_route_nexthop_group_frr_nexthops_nexthop_get_next(
173 struct nb_cb_get_next_args *args);
174 int lib_vrf_zebra_ribs_rib_route_nexthop_group_frr_nexthops_nexthop_get_keys(
175 struct nb_cb_get_keys_args *args);
176 const void *lib_vrf_zebra_ribs_rib_route_route_entry_get_next(
177 struct nb_cb_get_next_args *args);
178 int lib_vrf_zebra_ribs_rib_route_route_entry_get_keys(
179 struct nb_cb_get_keys_args *args);
180 const void *lib_vrf_zebra_ribs_rib_route_route_entry_lookup_entry(
181 struct nb_cb_lookup_entry_args *args);
182 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_protocol_get_elem(
183 struct nb_cb_get_elem_args *args);
184 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_instance_get_elem(
185 struct nb_cb_get_elem_args *args);
186 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_distance_get_elem(
187 struct nb_cb_get_elem_args *args);
188 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_metric_get_elem(
189 struct nb_cb_get_elem_args *args);
190 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_tag_get_elem(
191 struct nb_cb_get_elem_args *args);
192 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_selected_get_elem(
193 struct nb_cb_get_elem_args *args);
194 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_installed_get_elem(
195 struct nb_cb_get_elem_args *args);
196 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_failed_get_elem(
197 struct nb_cb_get_elem_args *args);
198 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_queued_get_elem(
199 struct nb_cb_get_elem_args *args);
200 struct yang_data *
201 lib_vrf_zebra_ribs_rib_route_route_entry_internal_flags_get_elem(
202 struct nb_cb_get_elem_args *args);
203 struct yang_data *
204 lib_vrf_zebra_ribs_rib_route_route_entry_internal_status_get_elem(
205 struct nb_cb_get_elem_args *args);
206 struct yang_data *lib_vrf_zebra_ribs_rib_route_route_entry_uptime_get_elem(
207 struct nb_cb_get_elem_args *args);
208 struct yang_data *
209 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_id_get_elem(
210 struct nb_cb_get_elem_args *args);
211 const void *
212 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_get_next(
213 struct nb_cb_get_next_args *args);
214 int lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_get_keys(
215 struct nb_cb_get_keys_args *args);
216 const void *
217 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_lookup_entry(
218 struct nb_cb_lookup_entry_args *args);
219 struct yang_data *
220 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_nh_type_get_elem(
221 struct nb_cb_get_elem_args *args);
222 struct yang_data *
223 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_vrf_get_elem(
224 struct nb_cb_get_elem_args *args);
225 struct yang_data *
226 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_gateway_get_elem(
227 struct nb_cb_get_elem_args *args);
228 struct yang_data *
229 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_interface_get_elem(
230 struct nb_cb_get_elem_args *args);
231 struct yang_data *
232 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_bh_type_get_elem(
233 struct nb_cb_get_elem_args *args);
234 struct yang_data *
235 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_onlink_get_elem(
236 struct nb_cb_get_elem_args *args);
237 struct yang_data *
238 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_color_get_elem(
239 struct nb_cb_get_elem_args *args);
240 const void *
241 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_get_next(
242 struct nb_cb_get_next_args *args);
243 int lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_get_keys(
244 struct nb_cb_get_keys_args *args);
245 const void *
246 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_lookup_entry(
247 struct nb_cb_lookup_entry_args *args);
248 struct yang_data *
249 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_id_get_elem(
250 struct nb_cb_get_elem_args *args);
251 struct yang_data *
252 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_label_get_elem(
253 struct nb_cb_get_elem_args *args);
254 struct yang_data *
255 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_ttl_get_elem(
256 struct nb_cb_get_elem_args *args);
257 struct yang_data *
258 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_traffic_class_get_elem(
259 struct nb_cb_get_elem_args *args);
260 struct yang_data *
261 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_duplicate_get_elem(
262 struct nb_cb_get_elem_args *args);
263 struct yang_data *
264 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_recursive_get_elem(
265 struct nb_cb_get_elem_args *args);
266 struct yang_data *
267 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_active_get_elem(
268 struct nb_cb_get_elem_args *args);
269 struct yang_data *
270 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_fib_get_elem(
271 struct nb_cb_get_elem_args *args);
272 struct yang_data *
273 lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_weight_get_elem(
274 struct nb_cb_get_elem_args *args);
275 int lib_vrf_zebra_l3vni_id_modify(struct nb_cb_modify_args *args);
276 int lib_vrf_zebra_l3vni_id_destroy(struct nb_cb_destroy_args *args);
277 int lib_vrf_zebra_prefix_only_modify(struct nb_cb_modify_args *args);
278
279 #ifdef __cplusplus
280 }
281 #endif
282
283 #endif