mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
537 stars 344 forks source link

UML - leafref within grouping doesn't find its target #748

Open mrehder opened 3 years ago

mrehder commented 3 years ago

Leafrefs defined within a grouping can't find their target. Attached is a YANG file and the UML. Test Test.txt This YANG file generates this warning from the UML plugin: Info: Did not find leafref target /testTarget/key2

nullromo commented 3 years ago

I have noticed this issue too. In my case the YANG model validates just fine when run through pyang, but gives these leafref errors when running with -f uml.

steweg commented 1 year ago

Hi I have hopefully fixed this issue within PR https://github.com/mbj4668/pyang/pull/852. It works correctly if using with --uml-inline-groupings option. Without that it will work only if the target node is within the grouping itself.