networktocode / yangify

Library to help parsing/translating YANG models from/to native text/structures
Apache License 2.0
114 stars 24 forks source link

Add warning for extra attributes #17

Closed dgjustice closed 5 years ago

dgjustice commented 5 years ago

Yangify currently lacks introspection to check attached ancestors. The problem arises when a user implements a model that isn't in the datamodel path. Yangify silently ignores these members which can be frustrating in debugging situations. This PR adds an explicit check that will help identify missing data models or simple spelling mistakes.

I also edited textfsm since the latest poetry release is broken using git.

[RuntimeError]
Unable to retrieve the package version for /tmp/pypoetry-git-textfsm2n_g0nnx
dgjustice commented 5 years ago

WIP tag until I add a test.

dgjustice commented 5 years ago

This all belongs in the linter; I should have dug through the code more thoroughly. :(