]> git.proxmox.com Git - mirror_frr.git/blob - lib/routing_nb.h
Merge pull request #13649 from donaldsharp/unlock_the_node_or_else
[mirror_frr.git] / lib / routing_nb.h
1 #ifndef _FRR_ROUTING_NB_H_
2 #define _FRR_ROUTING_NB_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 extern const struct frr_yang_module_info frr_routing_info;
9
10 /* Mandatory callbacks. */
11 int routing_control_plane_protocols_control_plane_protocol_create(
12 struct nb_cb_create_args *args);
13 int 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']"
22
23 #define FRR_ROUTING_KEY_XPATH_VRF \
24 "/frr-routing:routing/control-plane-protocols/" \
25 "control-plane-protocol[vrf='%s']"
26
27 /*
28 * callbacks for routing to handle configuration events
29 * based on the control plane protocol
30 */
31 DECLARE_HOOK(routing_conf_event, (struct nb_cb_create_args *args), (args));
32
33 void routing_control_plane_protocols_register_vrf_dependency(void);
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* _FRR_ROUTING_NB_H_ */