Skip to content

README: fix data tree example - #22

Merged
rjarry merged 1 commit into
masterfrom
readme-example
Mar 25, 2021
Merged

rjarry merged 1 commit into
masterfrom
readme-example

Conversation

@rjarry

@rjarry rjarry commented Mar 25, 2021

Copy link
Copy Markdown
Collaborator

Fix the following error when running the data tree example provided in README:

 LibyangError: validation failed: Missing required element "content-id" in "yang-library".

When parsing a config tree, we do not have the complete datastore available (no ietf-yang-library.yang module data).

Link: https://github.com/CESNET/libyang-python/blob/v1.6.1/libyang/schema.py#L154-L155
Link: https://netopeer.liberouter.org/doc/libyang/master/html/group__parseroptions.html
Fixes: #21

Fix the following error when running the data tree example provided in
README:

 LibyangError: validation failed: Missing required element "content-id"
 in "yang-library".

When parsing a config tree, we do not have the complete datastore
available (no ietf-yang-library.yang module data).

Link: https://github.com/CESNET/libyang-python/blob/v1.6.1/libyang/schema.py#L154-L155
Link: https://netopeer.liberouter.org/doc/libyang/master/html/group__parseroptions.html
Fixes: f9a9300 ("README: update with more examples")
Fixes: #21
Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
@rjarry
rjarry merged commit c22f10a into master Mar 25, 2021
@rjarry
rjarry deleted the readme-example branch March 25, 2021 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant