-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyangbind generates redundant python classes for each included submodule #114
Labels
Comments
Thanks for the report here. This does look to be a bug. I have a fix for this in a development branch where I am working through some other issues, I'll merge it ASAP. If fixing this is more urgent, please let me know and I can cherry-pick this back into master quicker. r. |
Thanks for feedback. |
@robshakir Is the fix not merged yet? Or could you let me know which branch has the fix? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: