Skip to content

Commit 88116a9

Browse files
committed
update ip addr
1 parent 59cb08e commit 88116a9

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

misc/backupswitches.py

+18-4
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,36 @@
99
username = "admin"
1010
password = "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

1933
R1 = {
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

2943
for device in devices:
3044
net_connect = Netmiko(**device)

0 commit comments

Comments
 (0)