Creating devices from file.Getting interfaces and descriptions from devices, populating it to Netbox

Опубликовано: 15 Октябрь 2024
на канале: Automation tools
1,306
24

1. Create file hosts.txt with devices and IPs
2. Read the file hosts.txt per line and get ip from it
3. Connection to device by IP and get config(Function get_cisco_config(command1,IP))
4. Connection to device and get hostname with function get_hostname
5. Creating device with function create_device(device_name) from preceded function get_hostname
6. Connection to device and get interfaces and descriptions
7. Combining every function in function get_ip_list