summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-04-16 22:10:45 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2024-04-16 22:18:01 +0300
commit57811a53ba65f755cb2ff9cdc682b8a249144ffa (patch)
treebbd5bcdbb733bac37dce329a442658fc88e0bbcc /lib/vrf.c
parent84d1fb19e22a5f0d13d3bbb7c74e9948773e66f3 (diff)
lib, zebra: fix exit commands
If a command is not marked as `YANG`-converted, the current command batching buffer is flushed before executing the command. We shouldn't flush the buffer when executing an `exit` command. It should only be flushed if the next command is not `YANG`-converted, which is checked by the command itself, not the previous `exit`. Fixes #15706. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index e907626bae..31632a80d5 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -636,7 +636,7 @@ int vrf_configure_backend(enum vrf_backend_type backend)
}
/* vrf CLI commands */
-DEFUN_NOSH(vrf_exit,
+DEFUN_YANG_NOSH (vrf_exit,
vrf_exit_cmd,
"exit-vrf",
"Exit current mode and down to previous mode\n")