]> git.proxmox.com Git - mirror_frr.git/blame - bfdd/bfdd_nb.h
Merge pull request #6589 from NaveenThanikachalam/gr_fixes
[mirror_frr.git] / bfdd / bfdd_nb.h
CommitLineData
6c574029
RW
1/*
2 * BFD daemon northbound implementation.
3 *
4 * Copyright (C) 2019 Network Device Education Foundation, Inc. ("NetDEF")
5 * Rafael Zalamena
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 * 02110-1301 USA.
21 */
22
23#ifndef _FRR_BFDD_NB_H_
24#define _FRR_BFDD_NB_H_
25
26extern const struct frr_yang_module_info frr_bfdd_info;
27
28/* Mandatory callbacks. */
60ee8be1
RW
29int bfdd_bfd_create(struct nb_cb_create_args *args);
30int bfdd_bfd_destroy(struct nb_cb_destroy_args *args);
ccc9ada8
RZ
31int bfdd_bfd_profile_create(struct nb_cb_create_args *args);
32int bfdd_bfd_profile_destroy(struct nb_cb_destroy_args *args);
33int bfdd_bfd_profile_detection_multiplier_modify(
34 struct nb_cb_modify_args *args);
35int bfdd_bfd_profile_desired_transmission_interval_modify(
36 struct nb_cb_modify_args *args);
37int bfdd_bfd_profile_required_receive_interval_modify(
38 struct nb_cb_modify_args *args);
39int bfdd_bfd_profile_administrative_down_modify(struct nb_cb_modify_args *args);
1a2e2fff 40int bfdd_bfd_profile_passive_mode_modify(struct nb_cb_modify_args *args);
262e1d25
RZ
41int bfdd_bfd_profile_minimum_ttl_modify(struct nb_cb_modify_args *args);
42int bfdd_bfd_profile_minimum_ttl_destroy(struct nb_cb_destroy_args *args);
ccc9ada8
RZ
43int bfdd_bfd_profile_echo_mode_modify(struct nb_cb_modify_args *args);
44int bfdd_bfd_profile_desired_echo_transmission_interval_modify(
45 struct nb_cb_modify_args *args);
60ee8be1
RW
46int bfdd_bfd_sessions_single_hop_create(struct nb_cb_create_args *args);
47int bfdd_bfd_sessions_single_hop_destroy(struct nb_cb_destroy_args *args);
6c574029 48const void *
60ee8be1
RW
49bfdd_bfd_sessions_single_hop_get_next(struct nb_cb_get_next_args *args);
50int bfdd_bfd_sessions_single_hop_get_keys(struct nb_cb_get_keys_args *args);
51const void *
52bfdd_bfd_sessions_single_hop_lookup_entry(struct nb_cb_lookup_entry_args *args);
6c574029 53int bfdd_bfd_sessions_single_hop_source_addr_modify(
60ee8be1 54 struct nb_cb_modify_args *args);
6c574029 55int bfdd_bfd_sessions_single_hop_source_addr_destroy(
60ee8be1 56 struct nb_cb_destroy_args *args);
ccc9ada8
RZ
57int bfdd_bfd_sessions_single_hop_profile_modify(struct nb_cb_modify_args *args);
58int bfdd_bfd_sessions_single_hop_profile_destroy(
59 struct nb_cb_destroy_args *args);
6c574029 60int bfdd_bfd_sessions_single_hop_detection_multiplier_modify(
60ee8be1 61 struct nb_cb_modify_args *args);
6c574029 62int bfdd_bfd_sessions_single_hop_desired_transmission_interval_modify(
60ee8be1 63 struct nb_cb_modify_args *args);
6c574029 64int bfdd_bfd_sessions_single_hop_required_receive_interval_modify(
60ee8be1 65 struct nb_cb_modify_args *args);
6c574029 66int bfdd_bfd_sessions_single_hop_administrative_down_modify(
60ee8be1 67 struct nb_cb_modify_args *args);
1a2e2fff
RZ
68int bfdd_bfd_sessions_single_hop_passive_mode_modify(
69 struct nb_cb_modify_args *args);
60ee8be1
RW
70int bfdd_bfd_sessions_single_hop_echo_mode_modify(
71 struct nb_cb_modify_args *args);
6c574029 72int bfdd_bfd_sessions_single_hop_desired_echo_transmission_interval_modify(
60ee8be1 73 struct nb_cb_modify_args *args);
6c574029
RW
74struct yang_data *
75bfdd_bfd_sessions_single_hop_stats_local_discriminator_get_elem(
60ee8be1
RW
76 struct nb_cb_get_elem_args *args);
77struct yang_data *bfdd_bfd_sessions_single_hop_stats_local_state_get_elem(
78 struct nb_cb_get_elem_args *args);
6c574029 79struct yang_data *bfdd_bfd_sessions_single_hop_stats_local_diagnostic_get_elem(
60ee8be1 80 struct nb_cb_get_elem_args *args);
6c574029 81struct yang_data *bfdd_bfd_sessions_single_hop_stats_local_multiplier_get_elem(
60ee8be1 82 struct nb_cb_get_elem_args *args);
6c574029
RW
83struct yang_data *
84bfdd_bfd_sessions_single_hop_stats_remote_discriminator_get_elem(
60ee8be1 85 struct nb_cb_get_elem_args *args);
6c574029 86struct yang_data *bfdd_bfd_sessions_single_hop_stats_remote_state_get_elem(
60ee8be1 87 struct nb_cb_get_elem_args *args);
6c574029 88struct yang_data *bfdd_bfd_sessions_single_hop_stats_remote_diagnostic_get_elem(
60ee8be1 89 struct nb_cb_get_elem_args *args);
6c574029 90struct yang_data *bfdd_bfd_sessions_single_hop_stats_remote_multiplier_get_elem(
60ee8be1 91 struct nb_cb_get_elem_args *args);
6c574029
RW
92struct yang_data *
93bfdd_bfd_sessions_single_hop_stats_negotiated_transmission_interval_get_elem(
60ee8be1 94 struct nb_cb_get_elem_args *args);
6c574029
RW
95struct yang_data *
96bfdd_bfd_sessions_single_hop_stats_negotiated_receive_interval_get_elem(
60ee8be1 97 struct nb_cb_get_elem_args *args);
6c574029 98struct yang_data *bfdd_bfd_sessions_single_hop_stats_detection_mode_get_elem(
60ee8be1 99 struct nb_cb_get_elem_args *args);
6c574029 100struct yang_data *bfdd_bfd_sessions_single_hop_stats_last_down_time_get_elem(
60ee8be1 101 struct nb_cb_get_elem_args *args);
6c574029 102struct yang_data *bfdd_bfd_sessions_single_hop_stats_last_up_time_get_elem(
60ee8be1 103 struct nb_cb_get_elem_args *args);
6c574029
RW
104struct yang_data *
105bfdd_bfd_sessions_single_hop_stats_session_down_count_get_elem(
60ee8be1 106 struct nb_cb_get_elem_args *args);
6c574029 107struct yang_data *bfdd_bfd_sessions_single_hop_stats_session_up_count_get_elem(
60ee8be1 108 struct nb_cb_get_elem_args *args);
6c574029
RW
109struct yang_data *
110bfdd_bfd_sessions_single_hop_stats_control_packet_input_count_get_elem(
60ee8be1 111 struct nb_cb_get_elem_args *args);
6c574029
RW
112struct yang_data *
113bfdd_bfd_sessions_single_hop_stats_control_packet_output_count_get_elem(
60ee8be1 114 struct nb_cb_get_elem_args *args);
6c574029
RW
115struct yang_data *
116bfdd_bfd_sessions_single_hop_stats_negotiated_echo_transmission_interval_get_elem(
60ee8be1 117 struct nb_cb_get_elem_args *args);
6c574029
RW
118struct yang_data *
119bfdd_bfd_sessions_single_hop_stats_echo_packet_input_count_get_elem(
60ee8be1 120 struct nb_cb_get_elem_args *args);
6c574029
RW
121struct yang_data *
122bfdd_bfd_sessions_single_hop_stats_echo_packet_output_count_get_elem(
60ee8be1
RW
123 struct nb_cb_get_elem_args *args);
124int bfdd_bfd_sessions_multi_hop_create(struct nb_cb_create_args *args);
125int bfdd_bfd_sessions_multi_hop_destroy(struct nb_cb_destroy_args *args);
126const void *
127bfdd_bfd_sessions_multi_hop_get_next(struct nb_cb_get_next_args *args);
128int bfdd_bfd_sessions_multi_hop_get_keys(struct nb_cb_get_keys_args *args);
6c574029 129const void *
60ee8be1 130bfdd_bfd_sessions_multi_hop_lookup_entry(struct nb_cb_lookup_entry_args *args);
6c574029 131int bfdd_bfd_sessions_multi_hop_detection_multiplier_modify(
60ee8be1 132 struct nb_cb_modify_args *args);
6c574029 133int bfdd_bfd_sessions_multi_hop_desired_transmission_interval_modify(
60ee8be1 134 struct nb_cb_modify_args *args);
6c574029 135int bfdd_bfd_sessions_multi_hop_required_receive_interval_modify(
60ee8be1 136 struct nb_cb_modify_args *args);
6c574029 137int bfdd_bfd_sessions_multi_hop_administrative_down_modify(
60ee8be1 138 struct nb_cb_modify_args *args);
262e1d25
RZ
139int bfdd_bfd_sessions_multi_hop_minimum_ttl_modify(
140 struct nb_cb_modify_args *args);
141int bfdd_bfd_sessions_multi_hop_minimum_ttl_destroy(
142 struct nb_cb_destroy_args *args);
6c574029
RW
143struct yang_data *
144bfdd_bfd_sessions_multi_hop_stats_local_discriminator_get_elem(
60ee8be1
RW
145 struct nb_cb_get_elem_args *args);
146struct yang_data *bfdd_bfd_sessions_multi_hop_stats_local_state_get_elem(
147 struct nb_cb_get_elem_args *args);
6c574029 148struct yang_data *bfdd_bfd_sessions_multi_hop_stats_local_diagnostic_get_elem(
60ee8be1 149 struct nb_cb_get_elem_args *args);
6c574029 150struct yang_data *bfdd_bfd_sessions_multi_hop_stats_local_multiplier_get_elem(
60ee8be1 151 struct nb_cb_get_elem_args *args);
6c574029
RW
152struct yang_data *
153bfdd_bfd_sessions_multi_hop_stats_remote_discriminator_get_elem(
60ee8be1
RW
154 struct nb_cb_get_elem_args *args);
155struct yang_data *bfdd_bfd_sessions_multi_hop_stats_remote_state_get_elem(
156 struct nb_cb_get_elem_args *args);
6c574029 157struct yang_data *bfdd_bfd_sessions_multi_hop_stats_remote_diagnostic_get_elem(
60ee8be1 158 struct nb_cb_get_elem_args *args);
6c574029 159struct yang_data *bfdd_bfd_sessions_multi_hop_stats_remote_multiplier_get_elem(
60ee8be1 160 struct nb_cb_get_elem_args *args);
6c574029
RW
161struct yang_data *
162bfdd_bfd_sessions_multi_hop_stats_negotiated_transmission_interval_get_elem(
60ee8be1 163 struct nb_cb_get_elem_args *args);
6c574029
RW
164struct yang_data *
165bfdd_bfd_sessions_multi_hop_stats_negotiated_receive_interval_get_elem(
60ee8be1 166 struct nb_cb_get_elem_args *args);
6c574029 167struct yang_data *bfdd_bfd_sessions_multi_hop_stats_detection_mode_get_elem(
60ee8be1 168 struct nb_cb_get_elem_args *args);
6c574029 169struct yang_data *bfdd_bfd_sessions_multi_hop_stats_last_down_time_get_elem(
60ee8be1
RW
170 struct nb_cb_get_elem_args *args);
171struct yang_data *bfdd_bfd_sessions_multi_hop_stats_last_up_time_get_elem(
172 struct nb_cb_get_elem_args *args);
6c574029 173struct yang_data *bfdd_bfd_sessions_multi_hop_stats_session_down_count_get_elem(
60ee8be1 174 struct nb_cb_get_elem_args *args);
6c574029 175struct yang_data *bfdd_bfd_sessions_multi_hop_stats_session_up_count_get_elem(
60ee8be1 176 struct nb_cb_get_elem_args *args);
6c574029
RW
177struct yang_data *
178bfdd_bfd_sessions_multi_hop_stats_control_packet_input_count_get_elem(
60ee8be1 179 struct nb_cb_get_elem_args *args);
6c574029
RW
180struct yang_data *
181bfdd_bfd_sessions_multi_hop_stats_control_packet_output_count_get_elem(
60ee8be1 182 struct nb_cb_get_elem_args *args);
6c574029
RW
183struct yang_data *
184bfdd_bfd_sessions_multi_hop_stats_negotiated_echo_transmission_interval_get_elem(
60ee8be1 185 struct nb_cb_get_elem_args *args);
6c574029
RW
186struct yang_data *
187bfdd_bfd_sessions_multi_hop_stats_echo_packet_input_count_get_elem(
60ee8be1 188 struct nb_cb_get_elem_args *args);
6c574029
RW
189struct yang_data *
190bfdd_bfd_sessions_multi_hop_stats_echo_packet_output_count_get_elem(
60ee8be1 191 struct nb_cb_get_elem_args *args);
6c574029
RW
192
193/* Optional 'cli_show' callbacks. */
194void bfd_cli_show_header(struct vty *vty, struct lyd_node *dnode,
195 bool show_defaults);
196void bfd_cli_show_header_end(struct vty *vty, struct lyd_node *dnode);
197void bfd_cli_show_single_hop_peer(struct vty *vty, struct lyd_node *dnode,
198 bool show_defaults);
199void bfd_cli_show_multi_hop_peer(struct vty *vty, struct lyd_node *dnode,
200 bool show_defaults);
201void bfd_cli_show_peer_end(struct vty *vty, struct lyd_node *dnode);
202void bfd_cli_show_mult(struct vty *vty, struct lyd_node *dnode,
203 bool show_defaults);
204void bfd_cli_show_tx(struct vty *vty, struct lyd_node *dnode,
205 bool show_defaults);
206void bfd_cli_show_rx(struct vty *vty, struct lyd_node *dnode,
207 bool show_defaults);
208void bfd_cli_show_shutdown(struct vty *vty, struct lyd_node *dnode,
209 bool show_defaults);
210void bfd_cli_show_echo(struct vty *vty, struct lyd_node *dnode,
211 bool show_defaults);
212void bfd_cli_show_echo_interval(struct vty *vty, struct lyd_node *dnode,
213 bool show_defaults);
ccc9ada8
RZ
214void bfd_cli_show_profile(struct vty *vty, struct lyd_node *dnode,
215 bool show_defaults);
216void bfd_cli_peer_profile_show(struct vty *vty, struct lyd_node *dnode,
217 bool show_defaults);
1a2e2fff
RZ
218void bfd_cli_show_passive(struct vty *vty, struct lyd_node *dnode,
219 bool show_defaults);
262e1d25
RZ
220void bfd_cli_show_minimum_ttl(struct vty *vty, struct lyd_node *dnode,
221 bool show_defaults);
6c574029
RW
222
223#endif /* _FRR_BFDD_NB_H_ */