Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions connect_routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def connect_to_router(router):
print(f"Connecting to {router['hostname']} at {router['ip']}...")
print(f"Using username: {router['username']}")
print(f"Enable password: {router['enable_password']}")
print(f"Example command: 'show ip interface brief'")
print(f"Connection to {router['hostname']} successful!")
print("-" * 40)

Expand Down
12 changes: 11 additions & 1 deletion routers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ routers:
ip: 192.168.1.2
username: admin
password: cisco123
enable_password: enable123
enable_password: enable123
- hostname: router3
ip: 192.168.1.3
username: admin
password: cisco123
enable_password: enable123
- hostname: router4
ip: 192.168.1.4
username: admin
password: cisco123
enable_password: enable123