diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2018-05-24 01:29:50 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2018-10-27 20:16:12 +0200 |
commit | 8fcdd0d63530d33f853d3fb54793b7b58a33b591 (patch) | |
tree | 08f1a9c3a88f0b56d117d3a70d787bc09d55ca96 /nhrpd | |
parent | lib: introduce new northbound API (diff) | |
download | frr-8fcdd0d63530d33f853d3fb54793b7b58a33b591.tar.xz frr-8fcdd0d63530d33f853d3fb54793b7b58a33b591.zip |
*: add empty array of YANG modules
FRR_DAEMON_INFO should now contain an array of 'frr_yang_module_info'
structures describing the YANG modules implemented by the daemon.
This array will be used by frr_init() function to load all YANG modules
and initialize the northbound callbacks during the daemon initialization.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'nhrpd')
-rw-r--r-- | nhrpd/nhrp_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nhrpd/nhrp_main.c b/nhrpd/nhrp_main.c index f99e56639..e6ffa2f75 100644 --- a/nhrpd/nhrp_main.c +++ b/nhrpd/nhrp_main.c @@ -116,13 +116,17 @@ static struct quagga_signal_t sighandlers[] = { }, }; +static const struct frr_yang_module_info *nhrpd_yang_modules[] = { +}; + FRR_DAEMON_INFO(nhrpd, NHRP, .vty_port = NHRP_VTY_PORT, .proghelp = "Implementation of the NHRP routing protocol.", .signals = sighandlers, .n_signals = array_size(sighandlers), - .privs = &nhrpd_privs, ) + .privs = &nhrpd_privs, .yang_modules = nhrpd_yang_modules, + .n_yang_modules = array_size(nhrpd_yang_modules), ) int main(int argc, char **argv) { |