pyang
pyang copied to clipboard
wrong warning "is config false and is not part of the accessible tree" in some augmenting example
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.
OK, it seems the same issue as #650