-
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
Adjusting for version 3.X #105
Conversation
@samuel-gauthier I have created this patch for upcoming v3.0 of In my other PRs: #103, #104, #102 I have failing check of test using the latest |
Is there a way to support both libyang 2 and 3 with the same cffi/python code base? |
I am afraid this can be possible only if you would keep two different cdefs definitions as v3.0 has API backward incompatible API changes in it and have some switch for user, which version should be used. But I am not that deep with cdefs, so I am not even sure if it is technically doable.... thats up to you guys to judge. |
3035a16
to
3bd79f8
Compare
Can you pls point me to branch in which libyang 3.0 development is happening ? Thanks ! |
It was in the |
ccccbeb
to
d3d1b4d
Compare
I finally managed to get it compiled correctly. But for the proper merge, I suggest that the |
d3d1b4d
to
ec6b19d
Compare
Hi @steweg
I can avoid this error by implementing openconfig-platform-types.yang in this command
But how to use this approach in libyang-python? Any help is appreciated, thanks! |
I am not sure in which exact release of
|
It works for me, thanks a lot! |
Hello, I will put this PR on hold until libyang 3 has been released. Thanks |
ec6b19d
to
108503d
Compare
The new version was just released. SO version is 3.0.8 |
Correct me if I'm wrong, but I have the feeling that this patch does more than just libyang 3 support, it also adds new things. |
108503d
to
555973c
Compare
I originally planned to have it separated, but it turned out that it doesn't make sense. If you look at how the
Those were added only to avoid a need of extending the same structures/APIs again and again, as those are still related to If you still wish I can remove them, but frankly speaking |
634e47c
to
6d44836
Compare
This patch refactor the code to be able to use libyang 3.0.X Signed-off-by: Stefan Gula <[email protected]>
This patch perform the following: