Skip to content

Commit 9262158

Browse files
Added Python functions
1 parent a0c684b commit 9262158

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connect_routers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import yaml
22

33
def load_router_details(yaml_file):
4-
""" Load router details from a YAML file """
4+
"""Load router details from a YAML file."""
55
with open(yaml_file, 'r') as file:
66
return yaml.safe_load(file)
77

88
def connect_to_router(router):
9-
""" Connect to routers and get hostname """
9+
"""Connect to routers and get hostname."""
1010
print(f"Connecting to {router['hostname']} at {router['ip']}...")
1111
print(f"Using username: {router['username']}")
1212
print(f"Enable password: {router['enable_password']}")

0 commit comments

Comments
 (0)