Now, we need to translate the interface roles defined in Nautobot into specific configurations for the switches. To achieve this, we will create an Ansible role that utilizes the inventory described in the previous post to configure the interfaces of each device.
First, we retrieve the current running configuration from the switch:
Optimizing show running-config improves overall performance.
Next, we generate data structures with necessary details from Nautobot:
Continue reading the post on Patreon .