Merge pull request #16529 from idryzhov/fix-load-config

mgmtd: don't add implicit state data when reading config from file
This commit is contained in:
Christian Hopps 2024-08-10 04:10:34 -04:00 committed by GitHub
commit 8cc83201fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)