Open dbarrosop opened 7 years ago
Pinging @matejv and @bewing as I know they have been playing with napalm-yang
as well.
I have added a mechanism to print the models as well, I guess it's useful for reference.
Okay, Python 2 tests passed here. I think this only waits for python 3 support in napalm-yang @dbarrosop?
I won't wait until napalm-yang has support for py3 because that will just delay things and napalm-yang
is an optional module anyway. However, as I write some documentation on how to use this I am making minor adjustments so hold on this for a few more days.
DO NOT MERGE
Depends on napalm-automation/napalm-yang#61
This PR integrates napalm-yang into the drivers. See:
https://github.com/napalm-automation/napalm-base/compare/dbarrosop/napalm-yang?expand=1#diff-b284a28710cce90d9d9be3a7f4cabc8e
(gist with the execution https://gist.github.com/dbarrosop/8fae309ecbfe7d1207044aca5732beba)
"getters" are dynamic which means there is no dependency loop between napalm-yang and the drivers themselves. I just have to move the
SUPPORTED_MODELS
tonapalm-yang
which I will do once we are happy with the PR.@mirceaulinic @ktbyers thoughts?
Note: test.py will go away before merging. That will be part of the documentation.