fix(snmp): read the community from the Name column
driver / standard (pull_request) Successful in 14s
driver / lint (pull_request) Successful in 12s
driver / types (pull_request) Successful in 59s
driver / test (3.12) (pull_request) Successful in 58s
driver / test (3.13) (pull_request) Successful in 50s
driver / lowest (pull_request) Successful in 24s
driver / build (pull_request) Successful in 26s
driver / security (pull_request) Successful in 1m2s
CI / driver (pull_request) Successful in 2m26s
driver / publish (pull_request) Skipped
driver / standard (pull_request) Successful in 14s
driver / lint (pull_request) Successful in 12s
driver / types (pull_request) Successful in 59s
driver / test (3.12) (pull_request) Successful in 58s
driver / test (3.13) (pull_request) Successful in 50s
driver / lowest (pull_request) Successful in 24s
driver / build (pull_request) Successful in 26s
driver / security (pull_request) Successful in 1m2s
CI / driver (pull_request) Successful in 2m26s
driver / publish (pull_request) Skipped
The switch's community table starts with an Index column, and get_snmp_config took a row's first word, so it reported the community as "1". The name now comes from the column headed Name, found in the header line above the dashes; the tests read the recorded table. Found while recording fixtures for #3.
This commit is contained in:
1 parent
34f00f9f3a
commit
8e7be0e47e
6 files changed
+55
-22
No files matched your search
@@ -7,6 +7,8 @@ All notable changes to this driver. The format follows
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
- `get_snmp_config()` reads the community from the table's `Name` column. It took the
|
||||
first column, which is `Index` on the switch, and reported the community as `1`.
|
||||
- The SSH key exchange no longer uses `diffie-hellman-group16-sha512`. On an SG2210P
|
||||
with firmware 5.30 its 4096-bit exchange took 9 to 16 seconds, against netmiko's
|
||||
10-second `conn_timeout`, so every other connection failed and the switch flapped
|
||||
|
||||
Reference in new issue
Block a user