Skip to content
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

create a smarter way to detect elements in the base datamodel #8

Open
mauriciovasquezbernal opened this issue Apr 26, 2019 · 0 comments

Comments

@mauriciovasquezbernal
Copy link

Elements that are part of the polycube base datamodel have to be marked in order to avoid generating code for them, as handlers, serializers and so on.

Currently those elements are marked "by hand" in the pyang code [1], this is not efficient at all as modifications to the base datamodel require to update pyang as well. Even worse, it is possible that one misses to update those elements like in #7.

I think this is possible to extend pyang to mark those elements automatically.

[1] https://github.com/polycube-network/pyang-swagger/blob/master/pyang/plugins/swagger.py#L395

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant