Thanks for the quick response. In RFC 7950 Section 7.2.2 it says:
The mandatory “prefix” substatement assigns a prefix for the module
to which the submodule belongs. All definitions in the module that
the submodule belongs to and all its submodules can be accessed by
using the prefix.
Isn’t a grouping a definition? Could you point me to the section in the spec you are referring to?
The mandatory “prefix” substatement assigns a prefix for the module
to which the submodule belongs. All definitions in the local
submodule and any included submodules can be accessed by using the
prefix.
So it seems like it should be supported in version 1.1 but not in version 1.
So I guess it is a bug in pyang. Thank you!
I believe the pyang packaged with ConfD does not support YANG 1.1 yet, but the open source version at https://github.com/mbj4668/pyang does have support for YANG 1.1, although there are some comments about possible incomplete submodule support. You may want to give that a try if you weren’t already using that. If you have an problem still with the open source version, open an issue in GitHub.