In this recipe, we will outline how to use Ansible and the Cisco pyATS Python library to execute and parse operational commands on Cisco devices. Using these parsed commands, we can validate various aspects of the network.
Validating network states with pyATS and Ansible
Getting ready
This recipe assumes that the network has already been built and configured as outlined in all the previous recipes.
How to do it...
- Install the Python libraries needed for pyATS:
$ sudo pip3 install pyats genie
- Create the roles directory and then create the requirements.yml file with...