Skip to content

Commit

Permalink
Merge pull request #16529 from idryzhov/fix-load-config
Browse files Browse the repository at this point in the history
mgmtd: don't add implicit state data when reading config from file
  • Loading branch information
choppsv1 authored Aug 10, 2024
2 parents 64ac03c + 61e8d5e commit 8cc8320
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mgmtd/mgmt_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ static int mgmt_ds_load_cfg_from_file(const char *filepath,

*dnode = NULL;
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 (*dnode)
Expand Down

0 comments on commit 8cc8320

Please sign in to comment.