Merge pull request #14752 from FRRouting/mergify/bp/dev/9.1/pr-14743

mgmtd: fix local validation (backport #14743)
This commit is contained in:
Donald Sharp 2023-11-08 11:41:47 -05:00 committed by GitHub
commit 177eaeebc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1237,7 +1237,7 @@ static int mgmt_txn_prepare_config(struct mgmt_txn_ctx *txn)
nb_ctx.client = NB_CLIENT_MGMTD_SERVER;
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);
if (ret != NB_OK) {
if (strncmp(err_buf, " ", strlen(err_buf)) == 0)