In looking at the pyang code, “deref” is allowed in a YANG 1.1 module.  The 
if..elsif..else block that checks for “deref” when –strict is set first checks 
if the module is YANG 1.1, so it would never get to the error for deref.  
Admittedly, the help text might need an update, but when doing –strict against 
a YANG 1.1 module using deref(), I don’t get any errors.

Joe

From: Balázs Lengyel <[email protected]>
Date: Friday, April 25, 2025 at 04:37
To: NetMod WG <[email protected]>
Cc: Siddharth Sharma <[email protected]>
Subject: [netmod] Why is deref() not allowed in yang --strict
Hello,
The pyang man contains the following:

--strict
   Force strict YANG compliance.
   Currently this checks that the deref() function is not used in XPath 
expressions and leafrefs.

Why is deref() singled out? It is a standard part of YANG 1.1. RFC7950. Why  
would it not be strictly YANG compliant?
Does the –strict option check anything else beyond deref()

Any help appreciated. Regards Balazs
_______________________________________________
netmod mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to