summaryrefslogtreecommitdiffstats
path: root/ripngd
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-05-24 01:29:50 +0200
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 20:16:12 +0200
commit8fcdd0d63530d33f853d3fb54793b7b58a33b591 (patch)
tree08f1a9c3a88f0b56d117d3a70d787bc09d55ca96 /ripngd
parentlib: introduce new northbound API (diff)
downloadfrr-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 'ripngd')
-rw-r--r--ripngd/ripng_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ripngd/ripng_main.c b/ripngd/ripng_main.c
index b416b2fd0..d62df04ee 100644
--- a/ripngd/ripng_main.c
+++ b/ripngd/ripng_main.c
@@ -118,6 +118,9 @@ struct quagga_signal_t ripng_signals[] = {
},
};
+static const struct frr_yang_module_info *ripngd_yang_modules[] = {
+};
+
FRR_DAEMON_INFO(ripngd, RIPNG, .vty_port = RIPNG_VTY_PORT,
.proghelp = "Implementation of the RIPng routing protocol.",
@@ -125,7 +128,10 @@ FRR_DAEMON_INFO(ripngd, RIPNG, .vty_port = RIPNG_VTY_PORT,
.signals = ripng_signals,
.n_signals = array_size(ripng_signals),
- .privs = &ripngd_privs, )
+ .privs = &ripngd_privs,
+
+ .yang_modules = ripngd_yang_modules,
+ .n_yang_modules = array_size(ripngd_yang_modules), )
#if CONFDATE > 20190521
CPP_NOTICE("-r / --retain has reached deprecation EOL, remove")