diff options
| author | Christian Hopps <chopps@labn.net> | 2023-05-19 01:29:40 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-05-30 02:10:19 -0400 |
| commit | e13a5c4165835f1e5a462866d8bf38c3ad42a73e (patch) | |
| tree | 873f94bbcfdc73f4c866915477a1a884f117b3d1 /lib/northbound_cli.c | |
| parent | 7a0894b5325e85f9d3d27d867bd091abec1ef0e4 (diff) | |
lib: mgmtd: fixes for startup config file processing
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/northbound_cli.c')
| -rw-r--r-- | lib/northbound_cli.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |
