2 * Copyright (C) 2018 NetDEF, Inc.
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)
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
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
20 #ifndef _FRR_RIPNG_NB_H_
21 #define _FRR_RIPNG_NB_H_
23 extern const struct frr_yang_module_info frr_ripngd_info
;
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
);
76 ripngd_instance_state_neighbors_neighbor_bad_packets_rcvd_get_elem(
77 struct nb_cb_get_elem_args
*args
);
79 ripngd_instance_state_neighbors_neighbor_bad_routes_rcvd_get_elem(
80 struct nb_cb_get_elem_args
*args
);
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
);
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
);
103 /* Optional 'cli_show' callbacks. */
104 void cli_show_router_ripng(struct vty
*vty
, struct lyd_node
*dnode
,
106 void cli_show_ripng_allow_ecmp(struct vty
*vty
, struct lyd_node
*dnode
,
108 void cli_show_ripng_default_information_originate(struct vty
*vty
,
109 struct lyd_node
*dnode
,
111 void cli_show_ripng_default_metric(struct vty
*vty
, struct lyd_node
*dnode
,
113 void cli_show_ripng_network_prefix(struct vty
*vty
, struct lyd_node
*dnode
,
115 void cli_show_ripng_network_interface(struct vty
*vty
, struct lyd_node
*dnode
,
117 void cli_show_ripng_offset_list(struct vty
*vty
, struct lyd_node
*dnode
,
119 void cli_show_ripng_passive_interface(struct vty
*vty
, struct lyd_node
*dnode
,
121 void cli_show_ripng_redistribute(struct vty
*vty
, struct lyd_node
*dnode
,
123 void cli_show_ripng_route(struct vty
*vty
, struct lyd_node
*dnode
,
125 void cli_show_ripng_aggregate_address(struct vty
*vty
, struct lyd_node
*dnode
,
127 void cli_show_ripng_timers(struct vty
*vty
, struct lyd_node
*dnode
,
129 void cli_show_ipv6_ripng_split_horizon(struct vty
*vty
, struct lyd_node
*dnode
,
132 #endif /* _FRR_RIPNG_NB_H_ */