fix: the SNMP agent setup sends only what os-net-snmp 26.x knows (#36)
driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Failing after 16s
driver / types (pull_request) Successful in 1m9s
driver / test (3.13) (pull_request) Successful in 1m1s
driver / test (3.12) (pull_request) Successful in 1m9s
driver / lowest (pull_request) Successful in 31s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 58s
CI / driver (pull_request) Failing after 2m15s
driver / publish (pull_request) Skipped

The configure step posted contact, location, sysobjid and bindip, and
listen in the shape get returns. OPNsense 26.x refuses a field its model
does not have with HTTP 500, so the setup failed on every current box.
It now sends syscontact/syslocation, listen as a string, and contact and
location only when the caller gives them: an empty one would have blanked
the operator's.
This commit is contained in:
Christian Manivong committed 2026-10-31 07:17:04 +01:00
1 parent c02a745bb3
commit 8bf76aa346
3 files changed
+53 -21

No files matched your search

+6
View File
@@ -13,6 +13,12 @@ All notable changes to this driver. The format follows
3.12 venv no longer has.
### Fixed
- `configure_snmp_agent()` works on OPNsense 26.x again. The configure step sent
fields the os-net-snmp model does not have (`contact`, `location`, `sysobjid`,
`bindip`) and `listen` in the shape `get` returns rather than as a string, which
26.x refuses with HTTP 500. It now sends `syscontact`/`syslocation`, and only when
the caller gives them, so an operator's sysContact and sysLocation are no longer
blanked (#36).
- `get_arp_table()` and `get_ipv6_neighbors_table()` report an unknown age as `-1.0`
(napalm-device-types' `ARP_AGE_UNKNOWN`). They reported `expires`, the seconds
left until the entry expires, which is no age: an entry refreshed a second ago