diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2018-07-07 22:04:33 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2018-10-27 16:16:12 -0200 |
| commit | a4bed468f9603da8199fdd828f5523c3b29ca15c (patch) | |
| tree | e23e6d612e1a790fb0e109eed7b8e78cf63f926e /lib/if.h | |
| parent | a7ca2199b709e268196878554e01c9e78bc1c60f (diff) | |
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 <renato@opensourcerouting.org>
Diffstat (limited to 'lib/if.h')
| -rw-r--r-- | lib/if.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 */ |
