pyang icon indicating copy to clipboard operation
pyang copied to clipboard

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

Open verthezpw opened this issue 4 years ago • 1 comments

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.

verthezpw avatar Jul 01 '20 14:07 verthezpw

OK, it seems the same issue as #650

fredgan avatar Jul 02 '20 02:07 fredgan