File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99username = "admin"
1010password = "cisco"
1111
12- SW1 = {
13- "host" : "172.16.141.11" ,
12+ SW_RTR = {
13+ "host" : "192.168.99.1" ,
14+ "username" : username ,
15+ "password" : password ,
16+ "device_type" : "cisco_ios" ,
17+ }
18+
19+ SW2 = {
20+ "host" : "192.168.99.2" ,
21+ "username" : username ,
22+ "password" : password ,
23+ "device_type" : "cisco_ios" ,
24+ }
25+
26+ SW3 = {
27+ "host" : "192.168.99.3" ,
1428 "username" : username ,
1529 "password" : password ,
1630 "device_type" : "cisco_ios" ,
1731}
1832
1933R1 = {
20- "host" : "172.16.141.12 " ,
34+ "host" : "192.168.100.2 " ,
2135 "username" : username ,
2236 "password" : password ,
2337 "device_type" : "cisco_ios" ,
2438}
2539
2640# List of devices to back up
27- devices = [SW1 , R1 ]
41+ devices = [SW2 , R1 , SW3 , SW_RTR ]
2842
2943for device in devices :
3044 net_connect = Netmiko (** device )
You can’t perform that action at this time.
0 commit comments