feat: remove environment variable usage for Nornir credentials

Removed GNS3_SERVER_USERNAME and GNS3_SERVER_PASSWORD environment variables from Nornir configuration tools. Credentials are now set to empty strings by default, simplifying configuration and removing dependency on environment variables for authentication.
This commit is contained in:
YueGuobin 2026-03-04 00:22:47 +08:00
parent 983ed32663
commit 8917ef39c9
2 changed files with 4 additions and 4 deletions

View File

@ -35,8 +35,8 @@ def _get_nornir_groups_config() -> dict[str, dict[str, Any]]:
"platform": "cisco_ios",
"hostname": os.getenv("GNS3_SERVER_HOST", "127.0.0.1"),
"timeout": 120,
"username": os.getenv("GNS3_SERVER_USERNAME", ""),
"password": os.getenv("GNS3_SERVER_PASSWORD", ""),
"username": "",
"password": "",
"connection_options": {
"netmiko": {"extras": {"device_type": "cisco_ios_telnet"}}
},

View File

@ -36,8 +36,8 @@ def _get_nornir_groups_config() -> dict[str, dict[str, Any]]:
"platform": "cisco_ios",
"hostname": os.getenv("GNS3_SERVER_HOST", "127.0.0.1"),
"timeout": 120,
"username": os.getenv("GNS3_SERVER_USERNAME", ""),
"password": os.getenv("GNS3_SERVER_PASSWORD", ""),
"username": "",
"password": "",
"connection_options": {
"netmiko": {"extras": {"device_type": "cisco_ios_telnet"}}
},