问题
In our Application we use Pyang (pyang 1.7.3) for our Yang support. As of today our Application is complaint to RFC 6020, Yang 1.0. We would like to upgrade our Application to Support Yang 1.1, RFC7950. Any idea is Pyang 1.7.3 compatible with Yang 1.1? What is the stable release of Pyang wrt Yang 1.1 support?
回答1:
It's been quite some time since I actively tracked pyang progress, but at that time it had most of 1.1 implemented - with the exception of the new definition contribution mechanism between modules and submodules. The new mechanism requires top-level definitions and the schema tree defined in any of the submodules or the module itself to be accessible in an arbitrary submodule or the module itself, even if not explicitly included.
It was decided that 1.1 would not be supported by the DSDL plugin - if you rely on pyang for instance document validation, that may pose a problem. Reason was that the implementation would require extending XSLT processors to support new XPath functions, hindering portability of the implementation.
I don't see anything in the change log suggesting those issues were resolved.
来源:https://stackoverflow.com/questions/56714197/pyang-support-for-yang-1-1