]> git.proxmox.com Git - mirror_frr.git/blame - lib/routing_nb.h
Merge pull request #9846 from idryzhov/lib-zebra-netns
[mirror_frr.git] / lib / routing_nb.h
CommitLineData
7441ea1a 1#ifndef _FRR_ROUTING_NB_H_
2#define _FRR_ROUTING_NB_H_
3
deca28a3
CH
4#ifdef __cplusplus
5extern "C" {
6#endif
7
7441ea1a 8extern const struct frr_yang_module_info frr_routing_info;
9
10/* Mandatory callbacks. */
11int routing_control_plane_protocols_control_plane_protocol_create(
12 struct nb_cb_create_args *args);
13int routing_control_plane_protocols_control_plane_protocol_destroy(
14 struct nb_cb_destroy_args *args);
15
16#define FRR_ROUTING_XPATH \
17 "/frr-routing:routing/control-plane-protocols/control-plane-protocol"
18
19#define FRR_ROUTING_KEY_XPATH \
20 "/frr-routing:routing/control-plane-protocols/" \
21 "control-plane-protocol[type='%s'][name='%s'][vrf='%s']"
2ada6269
IR
22
23#define FRR_ROUTING_KEY_XPATH_VRF \
24 "/frr-routing:routing/control-plane-protocols/" \
25 "control-plane-protocol[vrf='%s']"
26
7441ea1a 27/*
28 * callbacks for routing to handle configuration events
29 * based on the control plane protocol
30 */
8451921b 31DECLARE_HOOK(routing_conf_event, (struct nb_cb_create_args *args), (args));
7441ea1a 32
2ada6269
IR
33void routing_control_plane_protocols_register_vrf_dependency(void);
34
deca28a3
CH
35#ifdef __cplusplus
36}
37#endif
38
7441ea1a 39#endif /* _FRR_ROUTING_NB_H_ */