Open wlupton opened 2 years ago
@mbj4668, any thoughts on this? Thanks
Yes this looks like a bug. I agree it should be pruned in both cases, so please open a PR with the fix (and the test)!
Thanks. Will do.
Oh sorry, PR #790 doesn't include the test. I'll add it... done.
With the YANG shown below, the current
pyang
master
behaves as follows (disabling all features prunesfoo
from the local augment but not from the/if:interfaces/if:interface
augment):I don't think this is the expected behaviour? FWIW yanger does prune
/if:interfaces/if:interface/foo
.This change to
Statement.prune()
appears to fix the problem. Is there indeed a problem and (if so) is this an appropriate fix? If so, I can create a PR.YANG