]> git.proxmox.com Git - mirror_frr.git/blame - bfdd/bfdd_nb.h
Merge pull request #11765 from lyq140/patch-pimDoc
[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);
4df3e31c
IR
46int bfdd_bfd_profile_required_echo_receive_interval_modify(
47 struct nb_cb_modify_args *args);
60ee8be1
RW
48int bfdd_bfd_sessions_single_hop_create(struct nb_cb_create_args *args);
49int bfdd_bfd_sessions_single_hop_destroy(struct nb_cb_destroy_args *args);
6c574029 50const void *
60ee8be1
RW
51bfdd_bfd_sessions_single_hop_get_next(struct nb_cb_get_next_args *args);
52int bfdd_bfd_sessions_single_hop_get_keys(struct nb_cb_get_keys_args *args);
53const void *
54bfdd_bfd_sessions_single_hop_lookup_entry(struct nb_cb_lookup_entry_args *args);
6c574029 55int bfdd_bfd_sessions_single_hop_source_addr_modify(
60ee8be1 56 struct nb_cb_modify_args *args);
6c574029 57int bfdd_bfd_sessions_single_hop_source_addr_destroy(
60ee8be1 58 struct nb_cb_destroy_args *args);
ccc9ada8
RZ
59int bfdd_bfd_sessions_single_hop_profile_modify(struct nb_cb_modify_args *args);
60int bfdd_bfd_sessions_single_hop_profile_destroy(
61 struct nb_cb_destroy_args *args);
6c574029 62int bfdd_bfd_sessions_single_hop_detection_multiplier_modify(
60ee8be1 63 struct nb_cb_modify_args *args);
6c574029 64int bfdd_bfd_sessions_single_hop_desired_transmission_interval_modify(
60ee8be1 65 struct nb_cb_modify_args *args);
6c574029 66int bfdd_bfd_sessions_single_hop_required_receive_interval_modify(
60ee8be1 67 struct nb_cb_modify_args *args);
6c574029 68int bfdd_bfd_sessions_single_hop_administrative_down_modify(
60ee8be1 69 struct nb_cb_modify_args *args);
1a2e2fff
RZ
70int bfdd_bfd_sessions_single_hop_passive_mode_modify(
71 struct nb_cb_modify_args *args);
60ee8be1
RW
72int bfdd_bfd_sessions_single_hop_echo_mode_modify(
73 struct nb_cb_modify_args *args);
6c574029 74int bfdd_bfd_sessions_single_hop_desired_echo_transmission_interval_modify(
60ee8be1 75 struct nb_cb_modify_args *args);
4df3e31c
IR
76int bfdd_bfd_sessions_single_hop_required_echo_receive_interval_modify(
77 struct nb_cb_modify_args *args);
6c574029
RW
78struct yang_data *
79bfdd_bfd_sessions_single_hop_stats_local_discriminator_get_elem(
60ee8be1
RW
80 struct nb_cb_get_elem_args *args);
81struct yang_data *bfdd_bfd_sessions_single_hop_stats_local_state_get_elem(
82 struct nb_cb_get_elem_args *args);
6c574029 83struct yang_data *bfdd_bfd_sessions_single_hop_stats_local_diagnostic_get_elem(
60ee8be1 84 struct nb_cb_get_elem_args *args);
6c574029 85struct yang_data *bfdd_bfd_sessions_single_hop_stats_local_multiplier_get_elem(
60ee8be1 86 struct nb_cb_get_elem_args *args);
6c574029
RW
87struct yang_data *
88bfdd_bfd_sessions_single_hop_stats_remote_discriminator_get_elem(
60ee8be1 89 struct nb_cb_get_elem_args *args);
6c574029 90struct yang_data *bfdd_bfd_sessions_single_hop_stats_remote_state_get_elem(
60ee8be1 91 struct nb_cb_get_elem_args *args);
6c574029 92struct yang_data *bfdd_bfd_sessions_single_hop_stats_remote_diagnostic_get_elem(
60ee8be1 93 struct nb_cb_get_elem_args *args);
6c574029 94struct yang_data *bfdd_bfd_sessions_single_hop_stats_remote_multiplier_get_elem(
60ee8be1 95 struct nb_cb_get_elem_args *args);
6c574029
RW
96struct yang_data *
97bfdd_bfd_sessions_single_hop_stats_negotiated_transmission_interval_get_elem(
60ee8be1 98 struct nb_cb_get_elem_args *args);
6c574029
RW
99struct yang_data *
100bfdd_bfd_sessions_single_hop_stats_negotiated_receive_interval_get_elem(
60ee8be1 101 struct nb_cb_get_elem_args *args);
6c574029 102struct yang_data *bfdd_bfd_sessions_single_hop_stats_detection_mode_get_elem(
60ee8be1 103 struct nb_cb_get_elem_args *args);
6c574029 104struct yang_data *bfdd_bfd_sessions_single_hop_stats_last_down_time_get_elem(
60ee8be1 105 struct nb_cb_get_elem_args *args);
6c574029 106struct yang_data *bfdd_bfd_sessions_single_hop_stats_last_up_time_get_elem(
60ee8be1 107 struct nb_cb_get_elem_args *args);
6c574029
RW
108struct yang_data *
109bfdd_bfd_sessions_single_hop_stats_session_down_count_get_elem(
60ee8be1 110 struct nb_cb_get_elem_args *args);
6c574029 111struct yang_data *bfdd_bfd_sessions_single_hop_stats_session_up_count_get_elem(
60ee8be1 112 struct nb_cb_get_elem_args *args);
6c574029
RW
113struct yang_data *
114bfdd_bfd_sessions_single_hop_stats_control_packet_input_count_get_elem(
60ee8be1 115 struct nb_cb_get_elem_args *args);
6c574029
RW
116struct yang_data *
117bfdd_bfd_sessions_single_hop_stats_control_packet_output_count_get_elem(
60ee8be1 118 struct nb_cb_get_elem_args *args);
6c574029
RW
119struct yang_data *
120bfdd_bfd_sessions_single_hop_stats_negotiated_echo_transmission_interval_get_elem(
60ee8be1 121 struct nb_cb_get_elem_args *args);
6c574029
RW
122struct yang_data *
123bfdd_bfd_sessions_single_hop_stats_echo_packet_input_count_get_elem(
60ee8be1 124 struct nb_cb_get_elem_args *args);
6c574029
RW
125struct yang_data *
126bfdd_bfd_sessions_single_hop_stats_echo_packet_output_count_get_elem(
60ee8be1
RW
127 struct nb_cb_get_elem_args *args);
128int bfdd_bfd_sessions_multi_hop_create(struct nb_cb_create_args *args);
129int bfdd_bfd_sessions_multi_hop_destroy(struct nb_cb_destroy_args *args);
130const void *
131bfdd_bfd_sessions_multi_hop_get_next(struct nb_cb_get_next_args *args);
132int bfdd_bfd_sessions_multi_hop_get_keys(struct nb_cb_get_keys_args *args);
6c574029 133const void *
60ee8be1 134bfdd_bfd_sessions_multi_hop_lookup_entry(struct nb_cb_lookup_entry_args *args);
6c574029 135int bfdd_bfd_sessions_multi_hop_detection_multiplier_modify(
60ee8be1 136 struct nb_cb_modify_args *args);
6c574029 137int bfdd_bfd_sessions_multi_hop_desired_transmission_interval_modify(
60ee8be1 138 struct nb_cb_modify_args *args);
6c574029 139int bfdd_bfd_sessions_multi_hop_required_receive_interval_modify(
60ee8be1 140 struct nb_cb_modify_args *args);
6c574029 141int bfdd_bfd_sessions_multi_hop_administrative_down_modify(
60ee8be1 142 struct nb_cb_modify_args *args);
262e1d25
RZ
143int bfdd_bfd_sessions_multi_hop_minimum_ttl_modify(
144 struct nb_cb_modify_args *args);
145int bfdd_bfd_sessions_multi_hop_minimum_ttl_destroy(
146 struct nb_cb_destroy_args *args);
6c574029
RW
147struct yang_data *
148bfdd_bfd_sessions_multi_hop_stats_local_discriminator_get_elem(
60ee8be1
RW
149 struct nb_cb_get_elem_args *args);
150struct yang_data *bfdd_bfd_sessions_multi_hop_stats_local_state_get_elem(
151 struct nb_cb_get_elem_args *args);
6c574029 152struct yang_data *bfdd_bfd_sessions_multi_hop_stats_local_diagnostic_get_elem(
60ee8be1 153 struct nb_cb_get_elem_args *args);
6c574029 154struct yang_data *bfdd_bfd_sessions_multi_hop_stats_local_multiplier_get_elem(
60ee8be1 155 struct nb_cb_get_elem_args *args);
6c574029
RW
156struct yang_data *
157bfdd_bfd_sessions_multi_hop_stats_remote_discriminator_get_elem(
60ee8be1
RW
158 struct nb_cb_get_elem_args *args);
159struct yang_data *bfdd_bfd_sessions_multi_hop_stats_remote_state_get_elem(
160 struct nb_cb_get_elem_args *args);
6c574029 161struct yang_data *bfdd_bfd_sessions_multi_hop_stats_remote_diagnostic_get_elem(
60ee8be1 162 struct nb_cb_get_elem_args *args);
6c574029 163struct yang_data *bfdd_bfd_sessions_multi_hop_stats_remote_multiplier_get_elem(
60ee8be1 164 struct nb_cb_get_elem_args *args);
6c574029
RW
165struct yang_data *
166bfdd_bfd_sessions_multi_hop_stats_negotiated_transmission_interval_get_elem(
60ee8be1 167 struct nb_cb_get_elem_args *args);
6c574029
RW
168struct yang_data *
169bfdd_bfd_sessions_multi_hop_stats_negotiated_receive_interval_get_elem(
60ee8be1 170 struct nb_cb_get_elem_args *args);
6c574029 171struct yang_data *bfdd_bfd_sessions_multi_hop_stats_detection_mode_get_elem(
60ee8be1 172 struct nb_cb_get_elem_args *args);
6c574029 173struct yang_data *bfdd_bfd_sessions_multi_hop_stats_last_down_time_get_elem(
60ee8be1
RW
174 struct nb_cb_get_elem_args *args);
175struct yang_data *bfdd_bfd_sessions_multi_hop_stats_last_up_time_get_elem(
176 struct nb_cb_get_elem_args *args);
6c574029 177struct yang_data *bfdd_bfd_sessions_multi_hop_stats_session_down_count_get_elem(
60ee8be1 178 struct nb_cb_get_elem_args *args);
6c574029 179struct yang_data *bfdd_bfd_sessions_multi_hop_stats_session_up_count_get_elem(
60ee8be1 180 struct nb_cb_get_elem_args *args);
6c574029
RW
181struct yang_data *
182bfdd_bfd_sessions_multi_hop_stats_control_packet_input_count_get_elem(
60ee8be1 183 struct nb_cb_get_elem_args *args);
6c574029
RW
184struct yang_data *
185bfdd_bfd_sessions_multi_hop_stats_control_packet_output_count_get_elem(
60ee8be1 186 struct nb_cb_get_elem_args *args);
6c574029
RW
187struct yang_data *
188bfdd_bfd_sessions_multi_hop_stats_negotiated_echo_transmission_interval_get_elem(
60ee8be1 189 struct nb_cb_get_elem_args *args);
6c574029
RW
190struct yang_data *
191bfdd_bfd_sessions_multi_hop_stats_echo_packet_input_count_get_elem(
60ee8be1 192 struct nb_cb_get_elem_args *args);
6c574029
RW
193struct yang_data *
194bfdd_bfd_sessions_multi_hop_stats_echo_packet_output_count_get_elem(
60ee8be1 195 struct nb_cb_get_elem_args *args);
6c574029
RW
196
197/* Optional 'cli_show' callbacks. */
25605051 198void bfd_cli_show_header(struct vty *vty, const struct lyd_node *dnode,
6c574029 199 bool show_defaults);
25605051
IR
200void bfd_cli_show_header_end(struct vty *vty, const struct lyd_node *dnode);
201void bfd_cli_show_single_hop_peer(struct vty *vty, const struct lyd_node *dnode,
6c574029 202 bool show_defaults);
25605051 203void bfd_cli_show_multi_hop_peer(struct vty *vty, const struct lyd_node *dnode,
6c574029 204 bool show_defaults);
25605051
IR
205void bfd_cli_show_peer_end(struct vty *vty, const struct lyd_node *dnode);
206void bfd_cli_show_mult(struct vty *vty, const struct lyd_node *dnode,
6c574029 207 bool show_defaults);
25605051 208void bfd_cli_show_tx(struct vty *vty, const struct lyd_node *dnode,
6c574029 209 bool show_defaults);
25605051 210void bfd_cli_show_rx(struct vty *vty, const struct lyd_node *dnode,
6c574029 211 bool show_defaults);
25605051 212void bfd_cli_show_shutdown(struct vty *vty, const struct lyd_node *dnode,
6c574029 213 bool show_defaults);
25605051 214void bfd_cli_show_echo(struct vty *vty, const struct lyd_node *dnode,
6c574029 215 bool show_defaults);
4df3e31c 216void bfd_cli_show_desired_echo_transmission_interval(
25605051
IR
217 struct vty *vty, const struct lyd_node *dnode, bool show_defaults);
218void bfd_cli_show_required_echo_receive_interval(struct vty *vty,
219 const struct lyd_node *dnode,
220 bool show_defaults);
221void bfd_cli_show_profile(struct vty *vty, const struct lyd_node *dnode,
ccc9ada8 222 bool show_defaults);
25605051 223void bfd_cli_peer_profile_show(struct vty *vty, const struct lyd_node *dnode,
ccc9ada8 224 bool show_defaults);
25605051 225void bfd_cli_show_passive(struct vty *vty, const struct lyd_node *dnode,
1a2e2fff 226 bool show_defaults);
25605051 227void bfd_cli_show_minimum_ttl(struct vty *vty, const struct lyd_node *dnode,
262e1d25 228 bool show_defaults);
6c574029
RW
229
230#endif /* _FRR_BFDD_NB_H_ */