mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 15:23:39 +00:00
Merge pull request #16552 from FRRouting/mergify/bp/stable/10.1/pr-16529
mgmtd: don't add implicit state data when reading config from file (backport #16529)
This commit is contained in:
commit
3d5f11736a
@ -127,7 +127,8 @@ static int mgmt_ds_load_cfg_from_file(const char *filepath,
|
|||||||
|
|
||||||
*dnode = NULL;
|
*dnode = NULL;
|
||||||
ret = lyd_parse_data_path(ly_native_ctx, filepath, LYD_JSON,
|
ret = lyd_parse_data_path(ly_native_ctx, filepath, LYD_JSON,
|
||||||
LYD_PARSE_STRICT, 0, dnode);
|
LYD_PARSE_NO_STATE | LYD_PARSE_STRICT,
|
||||||
|
LYD_VALIDATE_NO_STATE, dnode);
|
||||||
|
|
||||||
if (ret != LY_SUCCESS) {
|
if (ret != LY_SUCCESS) {
|
||||||
if (*dnode)
|
if (*dnode)
|
||||||
|
Loading…
Reference in New Issue
Block a user