2 * BFD daemon northbound implementation.
4 * Copyright (C) 2019 Network Device Education Foundation, Inc. ("NetDEF")
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.
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.
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
23 #ifndef _FRR_BFDD_NB_H_
24 #define _FRR_BFDD_NB_H_
26 extern const struct frr_yang_module_info frr_bfdd_info
;
28 /* Mandatory callbacks. */
29 int bfdd_bfd_create(struct nb_cb_create_args
*args
);
30 int bfdd_bfd_destroy(struct nb_cb_destroy_args
*args
);
31 int bfdd_bfd_sessions_single_hop_create(struct nb_cb_create_args
*args
);
32 int bfdd_bfd_sessions_single_hop_destroy(struct nb_cb_destroy_args
*args
);
34 bfdd_bfd_sessions_single_hop_get_next(struct nb_cb_get_next_args
*args
);
35 int bfdd_bfd_sessions_single_hop_get_keys(struct nb_cb_get_keys_args
*args
);
37 bfdd_bfd_sessions_single_hop_lookup_entry(struct nb_cb_lookup_entry_args
*args
);
38 int bfdd_bfd_sessions_single_hop_source_addr_modify(
39 struct nb_cb_modify_args
*args
);
40 int bfdd_bfd_sessions_single_hop_source_addr_destroy(
41 struct nb_cb_destroy_args
*args
);
42 int bfdd_bfd_sessions_single_hop_detection_multiplier_modify(
43 struct nb_cb_modify_args
*args
);
44 int bfdd_bfd_sessions_single_hop_desired_transmission_interval_modify(
45 struct nb_cb_modify_args
*args
);
46 int bfdd_bfd_sessions_single_hop_required_receive_interval_modify(
47 struct nb_cb_modify_args
*args
);
48 int bfdd_bfd_sessions_single_hop_administrative_down_modify(
49 struct nb_cb_modify_args
*args
);
50 int bfdd_bfd_sessions_single_hop_echo_mode_modify(
51 struct nb_cb_modify_args
*args
);
52 int bfdd_bfd_sessions_single_hop_desired_echo_transmission_interval_modify(
53 struct nb_cb_modify_args
*args
);
55 bfdd_bfd_sessions_single_hop_stats_local_discriminator_get_elem(
56 struct nb_cb_get_elem_args
*args
);
57 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_local_state_get_elem(
58 struct nb_cb_get_elem_args
*args
);
59 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_local_diagnostic_get_elem(
60 struct nb_cb_get_elem_args
*args
);
61 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_local_multiplier_get_elem(
62 struct nb_cb_get_elem_args
*args
);
64 bfdd_bfd_sessions_single_hop_stats_remote_discriminator_get_elem(
65 struct nb_cb_get_elem_args
*args
);
66 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_remote_state_get_elem(
67 struct nb_cb_get_elem_args
*args
);
68 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_remote_diagnostic_get_elem(
69 struct nb_cb_get_elem_args
*args
);
70 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_remote_multiplier_get_elem(
71 struct nb_cb_get_elem_args
*args
);
73 bfdd_bfd_sessions_single_hop_stats_negotiated_transmission_interval_get_elem(
74 struct nb_cb_get_elem_args
*args
);
76 bfdd_bfd_sessions_single_hop_stats_negotiated_receive_interval_get_elem(
77 struct nb_cb_get_elem_args
*args
);
78 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_detection_mode_get_elem(
79 struct nb_cb_get_elem_args
*args
);
80 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_last_down_time_get_elem(
81 struct nb_cb_get_elem_args
*args
);
82 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_last_up_time_get_elem(
83 struct nb_cb_get_elem_args
*args
);
85 bfdd_bfd_sessions_single_hop_stats_session_down_count_get_elem(
86 struct nb_cb_get_elem_args
*args
);
87 struct yang_data
*bfdd_bfd_sessions_single_hop_stats_session_up_count_get_elem(
88 struct nb_cb_get_elem_args
*args
);
90 bfdd_bfd_sessions_single_hop_stats_control_packet_input_count_get_elem(
91 struct nb_cb_get_elem_args
*args
);
93 bfdd_bfd_sessions_single_hop_stats_control_packet_output_count_get_elem(
94 struct nb_cb_get_elem_args
*args
);
96 bfdd_bfd_sessions_single_hop_stats_negotiated_echo_transmission_interval_get_elem(
97 struct nb_cb_get_elem_args
*args
);
99 bfdd_bfd_sessions_single_hop_stats_echo_packet_input_count_get_elem(
100 struct nb_cb_get_elem_args
*args
);
102 bfdd_bfd_sessions_single_hop_stats_echo_packet_output_count_get_elem(
103 struct nb_cb_get_elem_args
*args
);
104 int bfdd_bfd_sessions_multi_hop_create(struct nb_cb_create_args
*args
);
105 int bfdd_bfd_sessions_multi_hop_destroy(struct nb_cb_destroy_args
*args
);
107 bfdd_bfd_sessions_multi_hop_get_next(struct nb_cb_get_next_args
*args
);
108 int bfdd_bfd_sessions_multi_hop_get_keys(struct nb_cb_get_keys_args
*args
);
110 bfdd_bfd_sessions_multi_hop_lookup_entry(struct nb_cb_lookup_entry_args
*args
);
111 int bfdd_bfd_sessions_multi_hop_detection_multiplier_modify(
112 struct nb_cb_modify_args
*args
);
113 int bfdd_bfd_sessions_multi_hop_desired_transmission_interval_modify(
114 struct nb_cb_modify_args
*args
);
115 int bfdd_bfd_sessions_multi_hop_required_receive_interval_modify(
116 struct nb_cb_modify_args
*args
);
117 int bfdd_bfd_sessions_multi_hop_administrative_down_modify(
118 struct nb_cb_modify_args
*args
);
120 bfdd_bfd_sessions_multi_hop_stats_local_discriminator_get_elem(
121 struct nb_cb_get_elem_args
*args
);
122 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_local_state_get_elem(
123 struct nb_cb_get_elem_args
*args
);
124 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_local_diagnostic_get_elem(
125 struct nb_cb_get_elem_args
*args
);
126 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_local_multiplier_get_elem(
127 struct nb_cb_get_elem_args
*args
);
129 bfdd_bfd_sessions_multi_hop_stats_remote_discriminator_get_elem(
130 struct nb_cb_get_elem_args
*args
);
131 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_remote_state_get_elem(
132 struct nb_cb_get_elem_args
*args
);
133 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_remote_diagnostic_get_elem(
134 struct nb_cb_get_elem_args
*args
);
135 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_remote_multiplier_get_elem(
136 struct nb_cb_get_elem_args
*args
);
138 bfdd_bfd_sessions_multi_hop_stats_negotiated_transmission_interval_get_elem(
139 struct nb_cb_get_elem_args
*args
);
141 bfdd_bfd_sessions_multi_hop_stats_negotiated_receive_interval_get_elem(
142 struct nb_cb_get_elem_args
*args
);
143 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_detection_mode_get_elem(
144 struct nb_cb_get_elem_args
*args
);
145 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_last_down_time_get_elem(
146 struct nb_cb_get_elem_args
*args
);
147 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_last_up_time_get_elem(
148 struct nb_cb_get_elem_args
*args
);
149 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_session_down_count_get_elem(
150 struct nb_cb_get_elem_args
*args
);
151 struct yang_data
*bfdd_bfd_sessions_multi_hop_stats_session_up_count_get_elem(
152 struct nb_cb_get_elem_args
*args
);
154 bfdd_bfd_sessions_multi_hop_stats_control_packet_input_count_get_elem(
155 struct nb_cb_get_elem_args
*args
);
157 bfdd_bfd_sessions_multi_hop_stats_control_packet_output_count_get_elem(
158 struct nb_cb_get_elem_args
*args
);
160 bfdd_bfd_sessions_multi_hop_stats_negotiated_echo_transmission_interval_get_elem(
161 struct nb_cb_get_elem_args
*args
);
163 bfdd_bfd_sessions_multi_hop_stats_echo_packet_input_count_get_elem(
164 struct nb_cb_get_elem_args
*args
);
166 bfdd_bfd_sessions_multi_hop_stats_echo_packet_output_count_get_elem(
167 struct nb_cb_get_elem_args
*args
);
169 /* Optional 'cli_show' callbacks. */
170 void bfd_cli_show_header(struct vty
*vty
, struct lyd_node
*dnode
,
172 void bfd_cli_show_header_end(struct vty
*vty
, struct lyd_node
*dnode
);
173 void bfd_cli_show_single_hop_peer(struct vty
*vty
, struct lyd_node
*dnode
,
175 void bfd_cli_show_multi_hop_peer(struct vty
*vty
, struct lyd_node
*dnode
,
177 void bfd_cli_show_peer_end(struct vty
*vty
, struct lyd_node
*dnode
);
178 void bfd_cli_show_mult(struct vty
*vty
, struct lyd_node
*dnode
,
180 void bfd_cli_show_tx(struct vty
*vty
, struct lyd_node
*dnode
,
182 void bfd_cli_show_rx(struct vty
*vty
, struct lyd_node
*dnode
,
184 void bfd_cli_show_shutdown(struct vty
*vty
, struct lyd_node
*dnode
,
186 void bfd_cli_show_echo(struct vty
*vty
, struct lyd_node
*dnode
,
188 void bfd_cli_show_echo_interval(struct vty
*vty
, struct lyd_node
*dnode
,
191 #endif /* _FRR_BFDD_NB_H_ */