-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container node is added into Libyang data tree during parsing JSON file even if when status is false. #452
Comments
Hi, Regards, |
Hi Corroll, Regards, |
Hi Michal,
}
} --------------------------------My application code-------------------------------
--------Result is saved into data.xml after run this code, the content is as below: |
Hi, Regards, |
Hi Michal, The coredump stack is as below. |
Now whens are resolved normally and verbose messages should be printed. Fixes #452
Now whens are resolved normally and verbose messages should be printed. Fixes #452
Hi, Regards, |
Hi, Best regards. |
----------base.yang--------------
----------augment-when.yang-----------
---JSON files---
After calling
lyd_parse_fd(tmp_ctx->ctx, fd, LYD_JSON, LYD_OPT_TRUSTED | LYD_OPT_CONFIG)
, the returned data tree nodes are as below:The container "augment-when" is added during
lyd_wd_add_subtree()
and will cause validation failed. I think it's not a good behavior, so i suggest to evaluate when expressions during adding default nodes.The text was updated successfully, but these errors were encountered: