In this recipe, we will outline how to use Juniper custom Ansible modules to validate the network state. We are going to use the Juniper PyEZ Python library and PyEZ operational tables and views to validate the operational state for Junos OS devices.
Validating the network state using PyEZ operational tables
Getting ready
NETCONF must be enabled on the Juniper devices in order to follow along with this recipe.
How to do it...
- Install the junos-eznc Python package, as follows:
$ pip3 install junos-eznc
- Install the Juniper.junos Ansible role using Ansible-galaxy, as follows...