fix(connect): name a full switch and a web page, not a bad password
A switch whose Telnet sessions were all taken, and a REST API answering the login with the web UI's HTML page, were both reported as an authentication failure, which sent the operator after the password. The Telnet login now keeps the switch's greeting in an in-memory session log and reports a full switch as a connection error; an HTML answer to the REST login says so. An SSH attempt records netmiko's underlying error instead of "timed out" when it was not a timeout. Session log objects need netmiko 4.3.0, which becomes the floor. Closes #13
This commit is contained in:
1 parent
874e25a1ce
commit
ee49948b2b
7 files changed
+233
-12
No files matched your search
@@ -13,11 +13,20 @@ All notable changes to this driver. The format follows
|
||||
3.12 venv no longer has.
|
||||
- The floor on urllib3 is 1.26.5: older releases bundle a `six` that Python 3.12
|
||||
cannot import.
|
||||
- The floor on netmiko is 4.3.0: the Telnet login reads the switch's greeting through
|
||||
a session log object, which older releases do not accept.
|
||||
|
||||
### Fixed
|
||||
- `configure_snmp_agent` over the REST API opens its temporary SSH session on port 22.
|
||||
It used `optional_args["port"]`, which names the REST API's port when REST is the
|
||||
transport, so the SNMP setup failed on switches managed over REST.
|
||||
- A switch whose Telnet sessions are all taken is reported as such ("the switch has no
|
||||
free session"), as a connection error. It was reported as an authentication failure,
|
||||
which pointed at the password.
|
||||
- A REST API that answers the login with an HTML page is reported as "answered with a
|
||||
web page instead of JSON", not as a failed login.
|
||||
- An SSH attempt that failed for another reason than a timeout, such as no common key
|
||||
exchange algorithm, names that reason instead of "timed out".
|
||||
|
||||
## [0.6.0] - 2026-10-23
|
||||
|
||||
|
||||
Reference in new issue
Block a user