summaryrefslogtreecommitdiff
path: root/lib/northbound_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/northbound_cli.c')
-rw-r--r--lib/northbound_cli.c7
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);