mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
mgmtd: don't add implicit state data when reading config from file
When mgmt reads configuration from file, it shouldn't add implicit state data to the candidate datastore. Configuration datastores like candidate should never store state, otherwise they fail validation. Fixes #15814 Signed-off-by: Igor Ryzhov <idryzhov@gmail.com>
This commit is contained in:
parent
d36ff6df2b
commit
61e8d5e0b9
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue