mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 20:40:13 +03:00
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:
parent
983ed32663
commit
8917ef39c9
@ -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"}}
|
||||
},
|
||||
|
||||
@ -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"}}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user