1 #ifndef _FRR_ROUTING_NB_H_
2 #define _FRR_ROUTING_NB_H_
8 extern const struct frr_yang_module_info frr_routing_info
;
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
);
16 #define FRR_ROUTING_XPATH \
17 "/frr-routing:routing/control-plane-protocols/control-plane-protocol"
19 #define FRR_ROUTING_KEY_XPATH \
20 "/frr-routing:routing/control-plane-protocols/" \
21 "control-plane-protocol[type='%s'][name='%s'][vrf='%s']"
23 #define FRR_ROUTING_KEY_XPATH_VRF \
24 "/frr-routing:routing/control-plane-protocols/" \
25 "control-plane-protocol[vrf='%s']"
28 * callbacks for routing to handle configuration events
29 * based on the control plane protocol
31 DECLARE_HOOK(routing_conf_event
, (struct nb_cb_create_args
*args
), (args
));
33 void routing_control_plane_protocols_register_vrf_dependency(void);
39 #endif /* _FRR_ROUTING_NB_H_ */