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
Newer version of yanglint needed for YANG validation #2667
Comments
@henrik@levkowetz.com commented Libyang (which provides yanglint) is updated on the server during system maintenance when a new version is available in the OpenSUSE package repositories. Currently, the version available under OpenSUSE is 0.14.80-1.1:
Has 0.16.59 or later been packaged for OpenSUSE? |
@rrahman@cisco.com commented I'm not very familiar with OpenSUSE but I see:
Regards, |
@henrik@levkowetz.com commented Umm. Ok, I'll ask the server admins, but in any case it seems to me that 0.16r3 << 0.16.59, so that upgrade would not help here in any case, no? |
@rrahman@cisco.com commented Looking at CESNET/libyang@v0.16-1d6f2aa81b29043390617e6d02496b63bf78f1ab...master, it looks like the v0.16-1d6f2aa81b29043390617e6d02496b63bf78f1ab release contains everything up to and excluding 0.16.106. So 0.16.59 should be in that release. |
@henrik@levkowetz.com commented Huh. That's one weird version numbering scheme. Anyway, I've sent an email to the admins; will see what comes back. |
@henrik@levkowetz.com commented I've got an answer, and in essence it says: "Tubleweed" is the unstable distro, so it's not really relevant for the version we're on (42.3). There is no libyang available in the official distro; the package we're running was built outside the official distro by "liberouter" (I don't know who that is, but you probably do). There has however not been built anything later than 0.14.81 for OpenSUSE 42.3, so at the moment we don't have an upgrade path to a later version of libyang. |
@rjsparks@nostrum.com changed priority from |
@rjsparks@nostrum.com changed status from |
@rjsparks@nostrum.com changed status from |
@rjsparks@nostrum.com set resolution to |
@rjsparks@nostrum.com commented
|
keyword_sprint
resolution_overtaken by events
type_enhancement
| by rrahman@cisco.comSo datatracker still has yanglint showing these errors for https://datatracker.ietf.org/doc/draft-ietf-netconf-subscribed-notifications:
yanglint 0.14.80: yanglint --verbose -p {rfclib} -p {draftlib} -p {tmplib} {model} -i:
err : The leafref leaf is config but refers to a non-config leaf. (/ietf-subscribed-notifications:subscriptions/subscription/target/stream/stream)
This is due to issue below which was fixed in yanglint in 0.16.59
CESNET/libyang#644
So we need datatracker to use a more recent version of yanglint.
Regards,
Reshad.
Issue migrated from trac:2667 at 2022-03-04 07:06:19 +0000
The text was updated successfully, but these errors were encountered: