Each imported module of a module being rendered is to be shown an empty packages with a relation from the imported package to the package representing the module.
PlantUML does not render this correctly. This is because the relations are defined within the package representing the module being processed, causing PlantUML keyword referencing the module (package) in the relation definition to be interpreted as a new class.
This correction moves the definitions of the relations to outside of the package, so that the keyword referencing the module (package) is interpreted as the package representing the module being processed.
This change can be verified by creating a UML from ietf-hardware without any UML-specific option specified.
Without this change pyang outputs the following:
Each imported module of a module being rendered is to be shown an empty packages with a relation from the imported package to the package representing the module.
PlantUML does not render this correctly. This is because the relations are defined within the package representing the module being processed, causing PlantUML keyword referencing the module (package) in the relation definition to be interpreted as a new class.
This correction moves the definitions of the relations to outside of the package, so that the keyword referencing the module (package) is interpreted as the package representing the module being processed.
This change can be verified by creating a UML from ietf-hardware without any UML-specific option specified. Without this change pyang outputs the following:![image](https://github.com/mbj4668/pyang/assets/11681631/bfd197de-42e4-4667-a5cf-da943c8e513a)
With this change pyang outputs the following:![image](https://github.com/mbj4668/pyang/assets/11681631/404930b4-38ff-4403-aab5-823e15df381b)