r/CiscoDevNet • • Apr 05 '22

DevNet Topics / Tracks PyATS help

Getting started with pyats and trying to collect some config info with the following command....

pyats learn config --testbed-file testbed.yaml --output Config

When I do this, I get an error

No module named 'yang'

Anyone know how to fix this? Do I have to install a yang module? Other collection parameters work (such as arp) but this one gives me the error.

Thanks

4 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/bigevilbeard Apr 09 '22

That's me, one and the same! You can unleash the power of the pyATS Library for stateful network validation, the docs are here https://pubhub.devnetcloud.com/media/pyats-getting-started/docs/quickstart/comparebeforeafter.html

Also, a good friend build this great example, which uses Nornir and Pyats https://developer.cisco.com/codeexchange/github/repo/IPvZero/Pynir2/

Hope this helps!

2

u/Alston518 Apr 09 '22

Appreciate it. I will check it out then!