A network engineer needs to automate the configuration of VLANs across 50 switches. Which approach best follows Cisco’s recommended practices for programmability?
Trap 1: Use a REST API on each switch to push the VLAN configuration…
REST API is good but without idempotency and version control it is less recommended.
Trap 2: Use a Python script that manually SSHes into each switch and…
Manual SSH scripting is error-prone and not scalable.
Trap 3: Configure all VLANs via SNMP MIBs.
SNMP is primarily for monitoring, not reliable for configuration.
- A
Write an Ansible playbook using the ios_vlan module to configure VLANs on all switches.
Ansible with idempotent modules is a best practice for network automation.
- B
Use a REST API on each switch to push the VLAN configuration individually.
Why wrong: REST API is good but without idempotency and version control it is less recommended.
- C
Use a Python script that manually SSHes into each switch and applies CLI commands.
Why wrong: Manual SSH scripting is error-prone and not scalable.
- D
Configure all VLANs via SNMP MIBs.
Why wrong: SNMP is primarily for monitoring, not reliable for configuration.