summaryrefslogtreecommitdiffstats
path: root/sharpd
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 /sharpd
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 'sharpd')
-rw-r--r--sharpd/sharp_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sharpd/sharp_main.c b/sharpd/sharp_main.c
index 65b1837f6..20cdd21e7 100644
--- a/sharpd/sharp_main.c
+++ b/sharpd/sharp_main.c
@@ -111,6 +111,9 @@ struct quagga_signal_t sharp_signals[] = {
#define SHARP_VTY_PORT 2614
+static const struct frr_yang_module_info *sharpd_yang_modules[] = {
+};
+
FRR_DAEMON_INFO(sharpd, SHARP, .vty_port = SHARP_VTY_PORT,
.proghelp = "Implementation of a Sharp of routes daemon.",
@@ -118,7 +121,8 @@ FRR_DAEMON_INFO(sharpd, SHARP, .vty_port = SHARP_VTY_PORT,
.signals = sharp_signals,
.n_signals = array_size(sharp_signals),
- .privs = &sharp_privs, )
+ .privs = &sharp_privs, .yang_modules = sharpd_yang_modules,
+ .n_yang_modules = array_size(sharpd_yang_modules), )
extern void sharp_vty_init(void);