diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2024-04-16 21:10:45 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-04-16 21:18:01 +0200 |
commit | 57811a53ba65f755cb2ff9cdc682b8a249144ffa (patch) | |
tree | bbd5bcdbb733bac37dce329a442658fc88e0bbcc /zebra/zebra_cli.c | |
parent | Merge pull request #15709 from chiragshah6/fdev2 (diff) | |
download | frr-57811a53ba65f755cb2ff9cdc682b8a249144ffa.tar.xz frr-57811a53ba65f755cb2ff9cdc682b8a249144ffa.zip |
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 'zebra/zebra_cli.c')
-rw-r--r-- | zebra/zebra_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_cli.c b/zebra/zebra_cli.c index 00e0a49cb..3e03d7477 100644 --- a/zebra/zebra_cli.c +++ b/zebra/zebra_cli.c @@ -241,7 +241,7 @@ DEFUN_YANG_NOSH (link_params, return ret; } -DEFUN_NOSH (exit_link_params, +DEFUN_YANG_NOSH (exit_link_params, exit_link_params_cmd, "exit-link-params", "Exit from Link Params configuration mode\n") |