Friday, April 19, 2019

Cisco CLI parsing in Ansible using Genie/pyATS

All,

I have submitted a pull request to the Ansible core project that enables a new Ansible filter called parse_genie. It uses the Genie library (and pyATS) to parse over 500 CLI commands across IOS, IOS-XE, NX-OS, and IOS-XR. It will return structured data that is OS-agnostic and it conforms to well-defined data schema models.

I want to make sure it gets merged, but I need your help. If you think this is a good feature and want it in Ansible, please go to the pull request and give it a thumbs up so the Ansible core maintainers know that the community wants this new plugin.

Usage:

 

Demo:

https://asciinema.org/a/q1dZtp2thuVFY0KVd6EZjR48D

Supported Commands (more being added with every release):

https://pubhub.devnetcloud.com/media/pyats-packages/docs/genie/genie_libs/#/parsers

Pull Request:

https://github.com/ansible/ansible/pull/55559

Additional Information on Genie and pyATS:

https://www.youtube.com/watch?v=h_vcG7ZwabY

https://pubhub.devnetcloud.com/media/pyats-packages/docs/genie/index.html

*** Big shout-out to the Cisco pyATS team and Cisco DevNet team for working with me on this. **\*



No comments:

Post a Comment