Closed sravaniregalla closed 8 months ago
Please show me the command output: pyang --version
and your python version as well.
and then, describe your WARNING operations.
You can refer the versions, here in this screenshot.
Warning Description:
Hi @fredgan
Do you have time to look into this question? Do you think, is it a problem from pyang? If it could be a problem, when are you planning to solve?
BR Sravani Regalla
The option --lint
checks that the statements are in canonical order (see section 14 in RFC 7950), and due to the implementation when it finds a statement that is not in canonical order it doesn't consume it and thus it may lead to other errors reported.
Hi @fredgan
I am using PYANG of version 2.5.3. We get the following warnings from our yang modules when we use "--lint" option. [PYANG] WARNING a.yang:6 imported module "atype" not used
It looks like the problem is that we get this warning when the leaf (that uses the import) is inside a grouping.
Reproduce the issue with below example. atype.yang
a.yang
similar issue #718