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

Support bits type #314

Closed
kagrski opened this issue Aug 31, 2023 · 1 comment · Fixed by #315
Closed

Support bits type #314

kagrski opened this issue Aug 31, 2023 · 1 comment · Fixed by #315

Comments

@kagrski
Copy link

kagrski commented Aug 31, 2023

Hello,

is it possible to support bits type? I've tried to convert YANG model into pydantic BaseModel, but it seems not every type is supported (I've read docs). Do you have it on your roadmap anywhere?

could not find a match for SOME type -> ['bits']
@fperrin
Copy link
Contributor

fperrin commented Sep 1, 2023

Hi @tehAgitto ,

For $work I added support for the bits type. The code is there: https://github.com/fperrin/pyangbind/commits/fred/add-bits

It's working well enough for the models I use, but I never got around to creating a PR to get it included. I think I need to review it.

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

Successfully merging a pull request may close this issue.

2 participants