Closed mirceaulinic closed 7 years ago
Guys, is it a good idea to implement some test for those templates?
Yes, that's a very good idea indeed! @dbarrosop also suggested that and I will try something next week.
@dbarrosop Do you test those templates to the other drivers? Do you have any guidelines how it can be done?
I can hack a PoC the upcoming days :smile:
@pkleanthous sad truth is we don't have anything formalized yet. I was planning to work on that once we get the OpenConfig POC out there as I thought it would be great if we could translate those to native configuration and I would love to have rigorous testing then. So, feel free to hack something if you have any idea on how to do this : )
@dbarrosop Last weekend, I made a small PoC.
https://github.com/pkleanthous/napalm-junos/tree/develop/test/templates
Just run the test.py it will try to compare the ".expected" config file with the automatically generated one.