File tree 1 file changed +18
-4
lines changed
1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 9
9
username = "admin"
10
10
password = "cisco"
11
11
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" ,
14
28
"username" : username ,
15
29
"password" : password ,
16
30
"device_type" : "cisco_ios" ,
17
31
}
18
32
19
33
R1 = {
20
- "host" : "172.16.141.12 " ,
34
+ "host" : "192.168.100.2 " ,
21
35
"username" : username ,
22
36
"password" : password ,
23
37
"device_type" : "cisco_ios" ,
24
38
}
25
39
26
40
# List of devices to back up
27
- devices = [SW1 , R1 ]
41
+ devices = [SW2 , R1 , SW3 , SW_RTR ]
28
42
29
43
for device in devices :
30
44
net_connect = Netmiko (** device )
You can’t perform that action at this time.
0 commit comments