From 1e3d33406a7a899bf2db83df75bdd867977d58c1 Mon Sep 17 00:00:00 2001 From: Sergio Amorim Date: Mon, 1 Dec 2025 17:41:18 +0000 Subject: [PATCH 1/2] adding router3 and router 4 plus show ip int br --- connect_routers.py | 1 + routers.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/connect_routers.py b/connect_routers.py index f73be10..ae8b5fb 100644 --- a/connect_routers.py +++ b/connect_routers.py @@ -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) diff --git a/routers.yaml b/routers.yaml index 8ed287d..a0cd3dc 100644 --- a/routers.yaml +++ b/routers.yaml @@ -8,4 +8,14 @@ routers: ip: 192.168.1.2 username: admin password: cisco123 + 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 \ No newline at end of file From 3a020f385bd52f57bf8a872ea9dd406215af1b67 Mon Sep 17 00:00:00 2001 From: Sergio Amorim Date: Tue, 2 Dec 2025 07:57:49 +0000 Subject: [PATCH 2/2] adding show int status --- connect_routers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect_routers.py b/connect_routers.py index ae8b5fb..a4d7db2 100644 --- a/connect_routers.py +++ b/connect_routers.py @@ -10,7 +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"Example command: show int status") print(f"Connection to {router['hostname']} successful!") print("-" * 40)