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:
Donald Sharp 2024-08-10 19:50:08 -04:00 committed by GitHub
commit 3d5f11736a
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; *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)