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