cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
221
Views
1
Helpful
4
Replies

pyats meraki?

c14n
Level 1
Level 1

Hi,

Is it possible to use PyATS to test meraki envirnoments, I can find plenty of examples for cisco nx-os , ios etc but nothing specific for meraki

1 Accepted Solution

Accepted Solutions

PyATS is best suited for CLI based devices & configurations while Meraki devices are cloud managed and the device configuration is based on a data model you can interact with through the API as you can see in the scripts linked above.

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

View solution in original post

4 Replies 4

@c14n You sure can https://developer.cisco.com/meraki/build/automation-scripts-with-python/ 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

thanks, I use some of those scripts already, maybe what's confusing me is the fact there is no meraki specific genie libs, 

Can I theoretically use pyATS to test any vendor as long as it supports python commands to do tasks? 

Yah and i think the reason for this (happy to wrong here too) the genie libraries are primarily built for vendors with traditional network operating systems (like Cisco IOS, IOS-XE, NX-OS, etc.) that have well-defined command-line interfaces (CLIs) as genie excels at parsing CLI output into structured data.  Meraki is a API first approach (yay!) so your code isnt interacting with a CLI, its primarily communicating with the Meraki platform through REST APIs. You you could theoretically try to build a genie library that parses API responses, but in my exp it is generally not the most efficient or idiomatic way to interact with API-driven devices.

Yes you are right, you can use pyats to test any network device or vendor as long as the device supports Python-based interaction or automation, keep in mind there are some considerations and limitations. If the device/s can be accessed via SSH or Telnet and responds to standard CLI commands, pyats can likely interact with it.

Hope this helps.

 

 

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

PyATS is best suited for CLI based devices & configurations while Meraki devices are cloud managed and the device configuration is based on a data model you can interact with through the API as you can see in the scripts linked above.

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev