summaryrefslogtreecommitdiffstats
path: root/mgmtd/mgmt_main.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-02-28 10:08:41 +0100
committerChristian Hopps <chopps@labn.net>2023-03-22 03:09:07 +0100
commitd1e85e36008136fcbd0ab2133a78c30af3e612fc (patch)
treeff42b64227d032735c7f1d89a1fed4d52914f986 /mgmtd/mgmt_main.c
parentmgmtd: nb library for client front-end code (diff)
downloadfrr-d1e85e36008136fcbd0ab2133a78c30af3e612fc.tar.xz
frr-d1e85e36008136fcbd0ab2133a78c30af3e612fc.zip
mgmtd: Enroll Staticd as a backend client for MGMTD
This commmit introduces Staticd as a backend client for the MGMTd framework. All the static commands will be diverted to the MGMT daemon and will use the transactional model to make changes to the internal state. Similar mechanism can be used by other daemons to use the MGMT framework in the future. This commit includes the following functionalities in the changeset: 1. Diverts all the staticd (config only) commands to MGMTd. 2. Enrolls staticd as a backend client to use the MGMT framework. 3. Modify the staticd NB config handlers so that they can be compiled into a library and loaded in the MGMTd process context. Co-authored-by: Pushpasis Sarkar <pushpasis@gmail.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Yash Ranjan <ranjany@vmware.com>
Diffstat (limited to 'mgmtd/mgmt_main.c')
-rw-r--r--mgmtd/mgmt_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mgmtd/mgmt_main.c b/mgmtd/mgmt_main.c
index 017263ca8..7d176059f 100644
--- a/mgmtd/mgmt_main.c
+++ b/mgmtd/mgmt_main.c
@@ -201,12 +201,10 @@ static const struct frr_yang_module_info *const mgmt_yang_modules[] = {
* NOTE: Always set .ignore_cbs true for to avoid validating
* backend northbound callbacks during loading.
*/
-#if 0
#ifdef HAVE_STATICD
&(struct frr_yang_module_info){.name = "frr-staticd",
.ignore_cbs = true},
#endif
-#endif
};
FRR_DAEMON_INFO(mgmtd, MGMTD, .vty_port = MGMTD_VTY_PORT,