summaryrefslogtreecommitdiff
path: root/mgmtd
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2024-02-05 07:32:03 -0500
committerGitHub <noreply@github.com>2024-02-05 07:32:03 -0500
commitc4da71387b2011fe9b12290dd51fc83e88111616 (patch)
tree6175bc7ed6e3e20623fb1adb0190071998e73586 /mgmtd
parent015c11646d973400dd6e1077d03fbf6f9af7cf7a (diff)
parent3c40cead5a310e35f97c1e7a06e5e4e9509b8788 (diff)
Merge pull request #15293 from idryzhov/mgmt-read-config
mgmtd: disable lib code for config reading
Diffstat (limited to 'mgmtd')
-rw-r--r--mgmtd/mgmt_main.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/mgmtd/mgmt_main.c b/mgmtd/mgmt_main.c
index c0d9023125..cce16f51f6 100644
--- a/mgmtd/mgmt_main.c
+++ b/mgmtd/mgmt_main.c
@@ -48,7 +48,6 @@ struct zebra_privs_t mgmt_privs = {
};
static struct frr_daemon_info mgmtd_di;
-char backup_config_file[256];
/* SIGHUP handler. */
static void sighup(void)
@@ -212,7 +211,7 @@ FRR_DAEMON_INFO(mgmtd, MGMTD,
.n_yang_modules = array_size(mgmt_yang_modules),
/* avoid libfrr trying to read our config file for us */
- .flags = FRR_MANUAL_VTY_START,
+ .flags = FRR_MANUAL_VTY_START | FRR_NO_SPLIT_CONFIG,
);
/* clang-format on */
@@ -275,11 +274,6 @@ int main(int argc, char **argv)
/* MGMTD related initialization. */
mgmt_init();
- snprintf(backup_config_file, sizeof(backup_config_file),
- "%s/zebra.conf", frr_sysconfdir);
- mgmtd_di.backup_config_file = backup_config_file;
-
- /* this will queue a read configs event */
frr_config_fork();
frr_run(mm->master);