mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 09:20:25 +00:00
mgmtd: fix local validation
When validating the config, we shouldn't also validate state.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit b0ce306457
)
This commit is contained in:
parent
92ffb92496
commit
3d4e59898c
@ -1237,7 +1237,7 @@ static int mgmt_txn_prepare_config(struct mgmt_txn_ctx *txn)
|
|||||||
nb_ctx.client = NB_CLIENT_MGMTD_SERVER;
|
nb_ctx.client = NB_CLIENT_MGMTD_SERVER;
|
||||||
nb_ctx.user = (void *)txn;
|
nb_ctx.user = (void *)txn;
|
||||||
|
|
||||||
ret = nb_candidate_validate_yang(nb_config, false, err_buf,
|
ret = nb_candidate_validate_yang(nb_config, true, err_buf,
|
||||||
sizeof(err_buf) - 1);
|
sizeof(err_buf) - 1);
|
||||||
if (ret != NB_OK) {
|
if (ret != NB_OK) {
|
||||||
if (strncmp(err_buf, " ", strlen(err_buf)) == 0)
|
if (strncmp(err_buf, " ", strlen(err_buf)) == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user