]> git.puffer.fish Git - mirror/frr.git/commit
vtysh: fix entering configuration node in file-lock mode 14498/head
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 27 Sep 2023 23:45:05 +0000 (02:45 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 27 Sep 2023 23:45:05 +0000 (02:45 +0300)
commit1a09cf38949c2f2ab6d926941329e264f50d6880
tree8a6b15d3e85f7a73f0bc8767d5a48bf4809d0631
parentd3aa9adb8da2a3d2fc4c7d926e2135c261bd2764
vtysh: fix entering configuration node in file-lock mode

When the config node is entered in file-lock mode, we should actually
remember it to correctly apply the workaround in `vtysh_exit`.
Otherwise, the file-lock mode is dropped once we exit any node one level
below the config node.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
vtysh/vtysh.c