-
Notifications
You must be signed in to change notification settings - Fork 46
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
Adding additional cdefs #102
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there,
please add a basic Python API to wrap these new cdefs. Along with some unit tests to show how you intent on using them.
Thanks!
23d8724
to
389f464
Compare
Hi, libyang-python only supports the master branch of C libyang (currently 2.x). The lydevel check is only meant for informative purposes. Lines 18 to 20 in f09ed11
If it fails (currently it should fail because libyang 3.x is under development) it is not a problem. Could you remove all references to libyang 3 which was not released yet and only focus on the enhancements that you require? Thank you. |
389f464
to
87104cb
Compare
Done |
5b2806d
to
99a5dcd
Compare
This patch introduces PNode alternative to SNode, which allows to travers parsed module tree including groupings, uses and other special nodes Signed-off-by: Stefan Gula <[email protected]>
This patch adds add_to_dict and remove_from_dict API, which allows to create internal string reference within the context Signed-off-by: Stefan Gula <[email protected]>
99a5dcd
to
c09c84d
Compare
Those functions can return None, fix their expected type. Closes: #102 Signed-off-by: Stefan Gula <[email protected]> Signed-off-by: Samuel Gauthier <[email protected]>
The cdata type that is actually lysp_import, fix it. Closes: #102 Signed-off-by: Stefan Gula <[email protected]> Signed-off-by: Samuel Gauthier <[email protected]>
Add a new function to go through a libyang list, equivalent to LY_LIST_FOR. Closes: #102 Signed-off-by: Stefan Gula <[email protected]> Signed-off-by: Samuel Gauthier <[email protected]>
This patch introduces PNode alternative to SNode, which allows to traverse parsed module tree including groupings, uses and other special nodes. Closes: #102 Signed-off-by: Stefan Gula <[email protected]> Signed-off-by: Samuel Gauthier <[email protected]>
This patch adds add_to_dict and remove_from_dict API, which allows to create internal string reference within the context. Closes: #102 Signed-off-by: Stefan Gula <[email protected]>
Pushed with a few changes and fixes. Very sorry for the delays. |
This patch add structure of lysp_node_grp and API to add or remove strings from context dictionary