We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
>>> with sess.get_data_ly("/*") as data: ... data.print_file(sys.stdout, fmt="json", pretty=True) ... { } >>> with sess.get_data_ly("/ietf-hardware:*") as data: ... data.print_file(sys.stdout, fmt="json", pretty=True) ... { "ietf-hardware:hardware": { "component": [ { ... } ] } } >>> with sess.get_data_ly("/*") as data: ... data.print_file(sys.stdout, fmt="json", pretty=True, with_siblings=True) ... Traceback (most recent call last): File "<stdin>", line 2, in <module> File "/opt/venv/rmi/lib/python3.11/site-packages/libyang/data.py", line 676, in print_file raise self.context.error("cannot print node") libyang.util.LibyangError: cannot print node >>>
I'm not sure why the first call returns an empty object, as ietf-hardware contains data? And with the with_siblings option set, the call is crashing.
ietf-hardware
with_siblings
The text was updated successfully, but these errors were encountered:
>>> with sess.get_data_ly("/*") as data: ... data.print(fmt="json", out_type=IOType.MEMORY, pretty=True, with_siblings=True) ... '{\n "ietf-hardware:hardware": {\n "component": [\n {\n ... \n }\n ]\n },\n "ietf-interfaces:interfaces": {\n "interface": [\n {\n ... \n }\n ]\n
Sorry, something went wrong.
No branches or pull requests
I'm not sure why the first call returns an empty object, as
ietf-hardware
contains data? And with thewith_siblings
option set, the call is crashing.The text was updated successfully, but these errors were encountered: