fix(snmp): read the communities over the REST API too
driver / standard (pull_request) Successful in 15s
driver / lint (pull_request) Successful in 12s
driver / types (pull_request) Successful in 57s
driver / test (3.12) (pull_request) Successful in 56s
driver / test (3.13) (pull_request) Successful in 47s
driver / lowest (pull_request) Successful in 25s
driver / build (pull_request) Successful in 25s
driver / security (pull_request) Successful in 1m6s
CI / driver (pull_request) Successful in 2m29s
driver / publish (pull_request) Skipped

get_snmp_config sent "show snmp-server" through the CLI session, which
does not exist on the REST transport, and returned None, so every switch
managed over REST read as "SNMP not configured". Over REST the command
now runs through the API's /cli endpoint and the output goes through the
parser the SSH path uses. A failed REST read raises.

Closes #10
This commit is contained in:
Christian Manivong committed 2026-11-01 21:51:06 +01:00
1 parent ee49948b2b
commit b26584c7da
4 files changed
+132 -42

No files matched your search

+3
View File
@@ -27,6 +27,9 @@ All notable changes to this driver. The format follows
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".
- `get_snmp_config` reads the switch's communities over the REST API too. It returned
`None` there, so a switch managed over REST always read as having no SNMP. A read that
fails now raises instead of reading as "no SNMP" (REST transport).
## [0.6.0] - 2026-10-23