fix(snmp): report no community instead of inventing "public"
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 56s
driver / test (3.12) (pull_request) Successful in 57s
driver / test (3.13) (pull_request) Successful in 51s
driver / lowest (pull_request) Successful in 25s
driver / build (pull_request) Successful in 26s
driver / security (pull_request) Successful in 1m2s
CI / driver (pull_request) Successful in 2m28s
driver / publish (pull_request) Skipped

get_snmp_config started from community "public" and returned it with
running=True when no row of the community table parsed. Without a listed
community it now reports the agent as not running, as it already did for
"no community entry exists".

The issue's other two points were already fixed on main: the management
VLAN is matched exactly since c2f0f7c (_management_vlan, with the
caller's listen address), and the floor on napalm-device-types is 4.21.1
with no requirements.txt since 4e171bf.

Closes #3
This commit is contained in:
Christian Manivong committed 2026-11-01 21:52:55 +01:00
1 parent f515859472
commit 34f00f9f3a
4 files changed
+55 -16

No files matched your search

+2
View File
@@ -14,6 +14,8 @@ All notable changes to this driver. The format follows
`disabled_algorithms` in `optional_args` still takes precedence.
- `ping()` lists only replies in `results`. A "Request timed out" line was listed too,
so a ping sweep reported hosts that never answered as alive.
- `get_snmp_config()` no longer reports the community `"public"` when the switch lists
none: without a listed community it reports the agent as not running.
### Changed
- Python 3.12 is the floor (`requires-python = ">=3.12"`): netOrk runs every driver