Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong warning "is config false and is not part of the accessible tree" in some augmenting example #651

Open
verthezpw opened this issue Jul 1, 2020 · 1 comment

Comments

@verthezpw
Copy link

See the following yang model (minimized as far as possible from a use case at our side):
example.zip

This gives the following warning in pyang 2.3.0 (also in 2.2.1, but not in 1.7.5):
example.yang:42: warning: node "example::type" is config false and is not part of the accessible tree

which is wrong, because the leafs that are augmented are also config false, and it is allowed in a when condition on config false leafs to refer to other config false leafs, see https://tools.ietf.org/html/rfc7950#section-6.4.1

If the augments are ordered differently, the warning does not occur. It also does not occur if the second augment is eliminated and the performance container added directly in the interface list.

@fredgan
Copy link
Collaborator

fredgan commented Jul 2, 2020

OK, it seems the same issue as #650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants