Performing a config replace with Nautobot, NAPALM, and Ansible on Arista and Juniper devices
Because different devices support different ways of interacting with their operating systems, this section focuses on only automating Arista EOS and Juniper Junos devices.
We are going to do what is called a full configuration replacement on these devices, but not using built-in Ansible modules. We are going to do this using the NAPALM Ansible collection. We’ll explain this more when we get to the playbook.
Before we get to the playbook, let’s look at an updated Nautobot inventory:
# cat nautobot-inventory-02.yml--- plugin: networktocode.nautobot.gql_inventory query:   devices:     name:     location:       name: group_by:   - location.name   - platform.napalm_driver
Take note of the changes:
- There is now a location and its associated name per device
- There...