From e13a5c4165835f1e5a462866d8bf38c3ad42a73e Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Fri, 19 May 2023 01:29:40 -0400 Subject: lib: mgmtd: fixes for startup config file processing Signed-off-by: Christian Hopps --- lib/northbound_cli.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/northbound_cli.c') diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c index c5582fc21c..e9c89d2029 100644 --- a/lib/northbound_cli.c +++ b/lib/northbound_cli.c @@ -195,9 +195,12 @@ int nb_cli_apply_changes(struct vty *vty, const char *xpath_base_fmt, ...) va_end(ap); } - if (vty_mgmt_fe_enabled()) { + if (vty_mgmt_should_process_cli_apply_changes(vty)) { VTY_CHECK_XPATH; + if (vty->type == VTY_FILE) + return CMD_SUCCESS; + implicit_commit = vty_needs_implicit_commit(vty); ret = vty_mgmt_send_config_data(vty); if (ret >= 0 && !implicit_commit) @@ -224,7 +227,7 @@ int nb_cli_apply_changes_clear_pending(struct vty *vty, va_end(ap); } - if (vty_mgmt_fe_enabled()) { + if (vty_mgmt_should_process_cli_apply_changes(vty)) { VTY_CHECK_XPATH; implicit_commit = vty_needs_implicit_commit(vty); -- cgit v1.2.3