Skip to content

Commit c22f10a

Browse files
committed
README: fix data tree example
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>
1 parent 00736a2 commit c22f10a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Data Tree
174174
... {'name': 'lo', 'address': '127.0.0.1'},
175175
... ],
176176
... },
177-
... })
177+
... }, config=True)
178178
>>> print(node.print_mem('xml', pretty=True))
179179
<data xmlns="urn:example">
180180
<interface>

0 commit comments

Comments
 (0)