Reading the network is safe. Writing to it is where automation earns its keep, and where it earns its scars. In this lab your Python script enters configuration mode on three routers, provisions a new loopback interface on each, verifies its own work, and saves the config to NVRAM, all in one run. This is part of the PingLabz CCNA Automation Labs on the standard five-node CML Free topology, with every line of output captured from real Cisco IOS XE 17.18.
It builds straight on the device loop from Lab auto-02. If you have not run that one, do it first; this lab assumes SSH is enabled on all four devices and HOST1 can reach them.
What you will learn
- How Netmiko's
send_config_set()wraps configuration mode for you, and what its echoed output tells you. - The push, verify, save discipline that separates production scripts from demo scripts.
- How to provision per-device values (each router gets its own Loopback99 address) from one data structure.
- Why
save_config()exists and what it actually sends to the device.