summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-08-04 13:54:55 -0400
committerGitHub <noreply@github.com>2020-08-04 13:54:55 -0400
commit070d9eb9c8ebc7255412c445df6871898dfc152f (patch)
tree3105cb07035c9dfda2e77a23cc33d972c672d0fd /lib/vty.c
parent7e545c5614a77e83e1fe1d52d07eb58061e71134 (diff)
parentb855e95fd36f66d6644437afa248ad6afe6f4c44 (diff)
Merge pull request #6727 from opensourcerouting/nb-cfg-backoff
lib: introduce configuration back-off timer for YANG-modeled commands
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 0d0e54af6c..184c7604b8 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2631,6 +2631,9 @@ int vty_config_node_exit(struct vty *vty)
{
vty->xpath_index = 0;
+ /* Perform pending commit if any. */
+ nb_cli_pending_commit_check(vty);
+
/* Check if there's a pending confirmed commit. */
if (vty->t_confirmed_commit_timeout) {
vty_out(vty,