From b3c6f766d31adb444b2109cb9c15df05d12262fa Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Thu, 25 Mar 2021 13:37:29 +0100 Subject: [PATCH] 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: f9a930023d67 ("README: update with more examples") Fixes: #21 Signed-off-by: Robin Jarry --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 11d048be..43a7cc40 100644 --- a/README.rst +++ b/README.rst @@ -174,7 +174,7 @@ Data Tree ... {'name': 'lo', 'address': '127.0.0.1'}, ... ], ... }, - ... }) + ... }, config=True) >>> print(node.print_mem('xml', pretty=True))