Hi Ketan et al,

I have verified that the yanglint version used by the datatracker (2.1.30) will 
give false positives when a refine statement is applied on a sx:structure in a 
YANG module. I was able to extract the YANG modules from the draft and run the 
validation using the latest version of yanglint (5.8.6) which gives the module 
a clean pass. I will make a note of it, and work with the tools team to update 
the tool chain.

Thanks for bringing it to my attention.

Cheers.

> On Aug 5, 2026, at 8:32 AM, Ketan Talaulikar <[email protected]> wrote:
> 
> Hi Esko,
> 
> Thanks for that update. I brought this up so that the necessary experts can 
> look into it and work to fix it, either on the document or the tooling side. 
> Your update suggests this is a tooling issue. I leave this for the OPS ADs 
> and the YANG doctors to determine the next steps.
> 
> Thanks,
> Ketan
> 
> 
> On Wed, Aug 5, 2026 at 3:16 PM Esko Dijk <[email protected] 
> <mailto:[email protected]>> wrote:
>> Hi all, specifically on the YANG validation issue that was raised:
>> 
>>>     > <major> Sections 8.3 and 9.2
>>> 
>>>     > The current Datatracker YANG validation result for the exact v34
>>>     > modules is not clean. Can this be cross-checked and fixed?
>>> 
>>> yeah, I don't really trust this.
>>> (a) to do SID allocation properly, we have patches to pyang 2.7.1, and I'm
>>>     not convinced the DT/yanglint version copes.
>>> 
>>> (b) it complains about missing trust declarations in the description, but
>>>     as far as I can see, it's all correct.
>>> 
>> The shepherd already inquired to this and I responded before (but without cc 
>> to the list). Reproducing the author's detailed comments below on why the 
>> automatic YANG validation fails:
>> 
>> 
>> 
>> ---- BELOW TEXT COPIED FROM EARLIER EMAIL RESPONSE TO SHEPHERD ---
>> 
>>> Has this document passed the review by Yang Doctor ot Yang validation tools?
>> 
>> Yang Doctor: not that I'm aware of.
>> Validation tool: 2 modules passed pyang 2.7.1 validation, both at local 
>> machine and via the IETF automated validation system. (The errors are from 
>> yanglint/libyang in the IETF tools, which differs from the pyang validation 
>> that's also in that toolchain.)
>> 
>>> The below are three Yang errors from the IETF Yang validation tool. Do you 
>>> think anything you can do to rectify them?
>> libyang err : Refine(s) target node "last-renewal-date" in grouping 
>> "voucher-artifact-grouping" was not found. 
>> (/ietf-voucher-request:{extension='sx:structure 
>> <>'}/voucher/{uses='voucher-request-grouping'}/{uses='vch:voucher-artifact-grouping
>>  <>'})
>> libyang err : Refine(s) target node "domain-cert-revocation-checks" in 
>> grouping "voucher-artifact-grouping" was not found. 
>> (/ietf-voucher-request:{extension='sx:structure 
>> <>'}/voucher/{uses='voucher-request-grouping'}/{uses='vch:voucher-artifact-grouping
>>  <>'})
>>> libyang err : Refine(s) target node "assertion" in grouping 
>>> "voucher-artifact-grouping" was not found. 
>>> (/ietf-voucher-request:{extension='sx:structure 
>>> <>'}/voucher/{uses='voucher-request-grouping'}/{uses='vch:voucher-artifact-grouping
>>>  <>'}) YANGLINT[E]: Parsing schema module 
>>> "[email protected]" 
>>> <mailto:[email protected]> failed.
>>> 
>> 
>> See the email discussion on this: 
>> https://mailarchive.ietf.org/arch/msg/anima/1JmNEeS1gcz3NMGn9HF1Mxtsvww/
>> (also the messages in the thread before and after this one.)
>> 
>> So we can't rectify these errors at this moment I believe - it would require 
>> YANG experts to study the discrepancy between the outputs of the 2 tools 
>> used.
>> It would be best to proceed the next steps and get feedback from YANG + 
>> tooling experts.
>> 
>> 
>> --- END OF COPIED TEXT ---
>> 
>> 
>> 
>> best regards,
>> 
>> Esko
>> 
>> 
>> 


Mahesh Jethanandani
[email protected]






_______________________________________________
Anima mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to