diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-08-10 19:49:53 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-10 19:49:53 -0400 | 
| commit | 6621d8350b8d92c2770847c68206cc6c1b291482 (patch) | |
| tree | 4967b75f8ffba2ff27cea33e1ff1b5246ecd21c8 | |
| parent | 15433d7d089dd97c0e9534602e9c819c58a5766b (diff) | |
| parent | 5af18e35f08eb4c17d5f9863a2901f2cbf928040 (diff) | |
Merge pull request #16553 from FRRouting/mergify/bp/stable/10.0/pr-16529
mgmtd: don't add implicit state data when reading config from file (backport #16529)
| -rw-r--r-- | mgmtd/mgmt_ds.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/mgmtd/mgmt_ds.c b/mgmtd/mgmt_ds.c index eaf52dfb29..dabae4afd1 100644 --- a/mgmtd/mgmt_ds.c +++ b/mgmtd/mgmt_ds.c @@ -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)  | 
