You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this weird situation. When a single module including other submodules is built, pyangbind seems to generate set of classes with identical content (compared to the classes built from the main module) for each of included submodules.
This results in considerable overhead in generated .py files. The redundant classes seem to behave in the same manner as the 'original' class, thus having no actual use.
Let's say we have these two files (main-module.yang, submodule-one.yang):
Hi,
I came across this weird situation. When a single module including other submodules is built, pyangbind seems to generate set of classes with identical content (compared to the classes built from the main module) for each of included submodules.
This results in considerable overhead in generated .py files. The redundant classes seem to behave in the same manner as the 'original' class, thus having no actual use.
Let's say we have these two files (main-module.yang, submodule-one.yang):
After using pyangbind to build main-module.yang, generated python class contains 'doubled' code, allowing identical operations on these classes:
I am not completely sure whether this is an actual feature or a bug.
Could you please look into this?
The text was updated successfully, but these errors were encountered: