From a4bed468f9603da8199fdd828f5523c3b29ca15c Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Sat, 7 Jul 2018 22:04:33 -0300 Subject: yang, lib: add 'frr-interface.yang' and associated stub callbacks Introduce frr-interface.yang, which defines a model for managing FRR interfaces. Update the 'frr_yang_module_info' array of all daemons that will implement this module. Add automatically generated stub callbacks in if.c. These callbacks will be implemented in the following commit. Signed-off-by: Renato Westphal --- lib/if.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/if.h') diff --git a/lib/if.h b/lib/if.h index bd5cc17704..24a86c7642 100644 --- a/lib/if.h +++ b/lib/if.h @@ -497,7 +497,6 @@ extern bool if_is_loopback_or_vrf(struct interface *ifp); extern int if_is_broadcast(struct interface *); extern int if_is_pointopoint(struct interface *); extern int if_is_multicast(struct interface *); -extern void if_cmd_init(void); struct vrf; extern void if_terminate(struct vrf *vrf); extern void if_dump_all(void); @@ -534,4 +533,8 @@ struct nbr_connected *nbr_connected_check(struct interface *, struct prefix *); struct if_link_params *if_link_params_get(struct interface *); void if_link_params_free(struct interface *); +/* Northbound. */ +extern void if_cmd_init(void); +extern const struct frr_yang_module_info frr_interface_info; + #endif /* _ZEBRA_IF_H */ -- cgit v1.2.3