]> git.puffer.fish Git - matthieu/frr.git/commit
lib, zebra: fix exit commands
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 16 Apr 2024 19:10:45 +0000 (22:10 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 16 Apr 2024 19:18:01 +0000 (22:18 +0300)
commit57811a53ba65f755cb2ff9cdc682b8a249144ffa
treebbd5bcdbb733bac37dce329a442658fc88e0bbcc
parent84d1fb19e22a5f0d13d3bbb7c74e9948773e66f3
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>
lib/command.c
lib/vrf.c
zebra/zebra_cli.c