-
Notifications
You must be signed in to change notification settings - Fork 147
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
Issue with nc_clb_default_get_schema Format Option in libnetconf2 #514
Comments
The commit you referenced has been later reverted, to some extent. The |
Thank you for your response. I am sending the following RPC, which you can see below. In this case, I receive the value for the format as just "yang". Could you assist me in understanding how the correct RPC should look to resolve this issue? Here is the RPC I'm currently sending:
|
The RPC looks fine, what libyang version are you using? That may be the issue. |
I am using version v2.1.111 due to system dependencies. |
We are not using Netopeer2, but instead have our own implementation that relies on nc_clb_default_get_schema provided by libnetconf2, which is currently not working for us. We are using the same versions of libyang (v2.1.111), libnetconf2 (v2.1.37), and sysrepo (v2.2.105) as in Netopeer2 version 2.1.71. I mention this in case we might have misunderstood each other. |
Thanks, considering these versions, looking at the libyang code, it seems it generates identity values without prefix for local identities. But libnetconf2 expects it there so that is a bug. One possible fix is to use and manually apply the commit you referenced. |
Thank you for the information. I'm still not entirely sure if this issue has been fixed in the newer versions, and if so, could you please let me know from which version it has been resolved? |
You need to use compatible versions of libyang and libnetconf2 for it to work properly. The safest thing to do is to use the latest or one of the few most recent releases, I am not exactly sure when it was fixed (but I would hope it works in all the other versions except for those mentioned here). |
Hi,
I'm encountering an issue with nc_clb_default_get_schema when I set the format option to yang. It expects a prefix before the format name.
I'm curious why the prefix is required, especially since the same prefix was removed in this commit ( cd4a72de957d9fb093e732c64a05eae497ef353f ) within Netopeer for the get-schema RPC. Could you provide more information on this behavior?
Thank you.
The text was updated successfully, but these errors were encountered: