]> git.puffer.fish Git - matthieu/frr.git/commit
vty: fix working in file-lock mode
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 27 Sep 2023 23:41:16 +0000 (02:41 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 27 Sep 2023 23:41:16 +0000 (02:41 +0300)
commitd3aa9adb8da2a3d2fc4c7d926e2135c261bd2764
tree75d35840bc39e44b4f1ea60246ff88691e021f9b
parentb8ebb7fc62dc4e212e74189c8d53ee74f1b2d0e5
vty: fix working in file-lock mode

When the configuration node is entered in file-lock mode, candidate
and running datastores are locked. Any configuration change is followed
by an implicit commit which leads to a crash of mgmtd, because double
lock is prohibited by an assert. When working in file-lock mode, we
shouldn't do implicit commits which is disabled by allowing pending
configuration changes.

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