]> git.proxmox.com Git - mirror_frr.git/blob - ripngd/ripng_nb.h
Merge pull request #12196 from opensourcerouting/xref-vtysh
[mirror_frr.git] / ripngd / ripng_nb.h
1 /*
2 * Copyright (C) 2018 NetDEF, Inc.
3 * Renato Westphal
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 _FRR_RIPNG_NB_H_
21 #define _FRR_RIPNG_NB_H_
22
23 extern const struct frr_yang_module_info frr_ripngd_info;
24
25 /* Mandatory callbacks. */
26 int ripngd_instance_create(struct nb_cb_create_args *args);
27 int ripngd_instance_destroy(struct nb_cb_destroy_args *args);
28 const void *ripngd_instance_get_next(struct nb_cb_get_next_args *args);
29 int ripngd_instance_get_keys(struct nb_cb_get_keys_args *args);
30 const void *ripngd_instance_lookup_entry(struct nb_cb_lookup_entry_args *args);
31 int ripngd_instance_allow_ecmp_modify(struct nb_cb_modify_args *args);
32 int ripngd_instance_default_information_originate_modify(
33 struct nb_cb_modify_args *args);
34 int ripngd_instance_default_metric_modify(struct nb_cb_modify_args *args);
35 int ripngd_instance_network_create(struct nb_cb_create_args *args);
36 int ripngd_instance_network_destroy(struct nb_cb_destroy_args *args);
37 int ripngd_instance_interface_create(struct nb_cb_create_args *args);
38 int ripngd_instance_interface_destroy(struct nb_cb_destroy_args *args);
39 int ripngd_instance_offset_list_create(struct nb_cb_create_args *args);
40 int ripngd_instance_offset_list_destroy(struct nb_cb_destroy_args *args);
41 int ripngd_instance_offset_list_access_list_modify(
42 struct nb_cb_modify_args *args);
43 int ripngd_instance_offset_list_metric_modify(struct nb_cb_modify_args *args);
44 int ripngd_instance_passive_interface_create(struct nb_cb_create_args *args);
45 int ripngd_instance_passive_interface_destroy(struct nb_cb_destroy_args *args);
46 int ripngd_instance_redistribute_create(struct nb_cb_create_args *args);
47 int ripngd_instance_redistribute_destroy(struct nb_cb_destroy_args *args);
48 int ripngd_instance_redistribute_route_map_modify(
49 struct nb_cb_modify_args *args);
50 int ripngd_instance_redistribute_route_map_destroy(
51 struct nb_cb_destroy_args *args);
52 int ripngd_instance_redistribute_metric_modify(struct nb_cb_modify_args *args);
53 int ripngd_instance_redistribute_metric_destroy(
54 struct nb_cb_destroy_args *args);
55 int ripngd_instance_static_route_create(struct nb_cb_create_args *args);
56 int ripngd_instance_static_route_destroy(struct nb_cb_destroy_args *args);
57 int ripngd_instance_aggregate_address_create(struct nb_cb_create_args *args);
58 int ripngd_instance_aggregate_address_destroy(struct nb_cb_destroy_args *args);
59 int ripngd_instance_timers_flush_interval_modify(
60 struct nb_cb_modify_args *args);
61 int ripngd_instance_timers_holddown_interval_modify(
62 struct nb_cb_modify_args *args);
63 int ripngd_instance_timers_update_interval_modify(
64 struct nb_cb_modify_args *args);
65 const void *ripngd_instance_state_neighbors_neighbor_get_next(
66 struct nb_cb_get_next_args *args);
67 int ripngd_instance_state_neighbors_neighbor_get_keys(
68 struct nb_cb_get_keys_args *args);
69 const void *ripngd_instance_state_neighbors_neighbor_lookup_entry(
70 struct nb_cb_lookup_entry_args *args);
71 struct yang_data *ripngd_instance_state_neighbors_neighbor_address_get_elem(
72 struct nb_cb_get_elem_args *args);
73 struct yang_data *ripngd_instance_state_neighbors_neighbor_last_update_get_elem(
74 struct nb_cb_get_elem_args *args);
75 struct yang_data *
76 ripngd_instance_state_neighbors_neighbor_bad_packets_rcvd_get_elem(
77 struct nb_cb_get_elem_args *args);
78 struct yang_data *
79 ripngd_instance_state_neighbors_neighbor_bad_routes_rcvd_get_elem(
80 struct nb_cb_get_elem_args *args);
81 const void *
82 ripngd_instance_state_routes_route_get_next(struct nb_cb_get_next_args *args);
83 int ripngd_instance_state_routes_route_get_keys(
84 struct nb_cb_get_keys_args *args);
85 const void *ripngd_instance_state_routes_route_lookup_entry(
86 struct nb_cb_lookup_entry_args *args);
87 struct yang_data *ripngd_instance_state_routes_route_prefix_get_elem(
88 struct nb_cb_get_elem_args *args);
89 struct yang_data *ripngd_instance_state_routes_route_next_hop_get_elem(
90 struct nb_cb_get_elem_args *args);
91 struct yang_data *ripngd_instance_state_routes_route_interface_get_elem(
92 struct nb_cb_get_elem_args *args);
93 struct yang_data *ripngd_instance_state_routes_route_metric_get_elem(
94 struct nb_cb_get_elem_args *args);
95 int clear_ripng_route_rpc(struct nb_cb_rpc_args *args);
96 int lib_interface_ripng_split_horizon_modify(struct nb_cb_modify_args *args);
97
98 /* Optional 'apply_finish' callbacks. */
99 void ripngd_instance_redistribute_apply_finish(
100 struct nb_cb_apply_finish_args *args);
101 void ripngd_instance_timers_apply_finish(struct nb_cb_apply_finish_args *args);
102
103 /* Optional 'cli_show' callbacks. */
104 void cli_show_router_ripng(struct vty *vty, const struct lyd_node *dnode,
105 bool show_defaults);
106 void cli_show_ripng_allow_ecmp(struct vty *vty, const struct lyd_node *dnode,
107 bool show_defaults);
108 void cli_show_ripng_default_information_originate(struct vty *vty,
109 const struct lyd_node *dnode,
110 bool show_defaults);
111 void cli_show_ripng_default_metric(struct vty *vty,
112 const struct lyd_node *dnode,
113 bool show_defaults);
114 void cli_show_ripng_network_prefix(struct vty *vty,
115 const struct lyd_node *dnode,
116 bool show_defaults);
117 void cli_show_ripng_network_interface(struct vty *vty,
118 const struct lyd_node *dnode,
119 bool show_defaults);
120 void cli_show_ripng_offset_list(struct vty *vty, const struct lyd_node *dnode,
121 bool show_defaults);
122 void cli_show_ripng_passive_interface(struct vty *vty,
123 const struct lyd_node *dnode,
124 bool show_defaults);
125 void cli_show_ripng_redistribute(struct vty *vty, const struct lyd_node *dnode,
126 bool show_defaults);
127 void cli_show_ripng_route(struct vty *vty, const struct lyd_node *dnode,
128 bool show_defaults);
129 void cli_show_ripng_aggregate_address(struct vty *vty,
130 const struct lyd_node *dnode,
131 bool show_defaults);
132 void cli_show_ripng_timers(struct vty *vty, const struct lyd_node *dnode,
133 bool show_defaults);
134 void cli_show_ipv6_ripng_split_horizon(struct vty *vty,
135 const struct lyd_node *dnode,
136 bool show_defaults);
137
138 #endif /* _FRR_RIPNG_NB_H_ */