summaryrefslogtreecommitdiff
path: root/mgmtd/mgmt_main.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-11-20 14:02:29 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2023-11-21 13:28:40 +0200
commitd532771eaaa6b8f4667389ae92d50236ee606d34 (patch)
tree90669b4dc6b52ced6b9b1216e61fa62a2503d97a /mgmtd/mgmt_main.c
parenta22f5a5289a59ef01986616a34ee863fe24bd874 (diff)
mgmtd, staticd: output staticd configuration from mgmtd
As mgmtd now implements vty for staticd, it's logical to output the configuration from there as well. Fully-converted backend daemons should not handle vty commands at all. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'mgmtd/mgmt_main.c')
-rw-r--r--mgmtd/mgmt_main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mgmtd/mgmt_main.c b/mgmtd/mgmt_main.c
index 39362fa74a..b58b93c71d 100644
--- a/mgmtd/mgmt_main.c
+++ b/mgmtd/mgmt_main.c
@@ -185,6 +185,10 @@ static void mgmt_vrf_terminate(void)
vrf_terminate();
}
+#ifdef HAVE_STATICD
+extern const struct frr_yang_module_info frr_staticd_info;
+#endif
+
/*
* List of YANG modules to be loaded in the process context of
* MGMTd.
@@ -201,11 +205,10 @@ static const struct frr_yang_module_info *const mgmt_yang_modules[] = {
/*
* YANG module info supported by backend clients get added here.
* NOTE: Always set .ignore_cbs true for to avoid validating
- * backend northbound callbacks during loading.
+ * backend configuration northbound callbacks during loading.
*/
#ifdef HAVE_STATICD
- &(struct frr_yang_module_info){.name = "frr-staticd",
- .ignore_cbs = true},
+ &frr_staticd_info,
#endif
};