fix(facts): read serial number and uptime from the status page
driver / lint (pull_request) Successful in 20s
driver / standard (pull_request) Successful in 20s
driver / types (pull_request) Successful in 1m8s
driver / test (3.13) (pull_request) Successful in 58s
driver / test (3.12) (pull_request) Successful in 1m6s
driver / lowest (pull_request) Successful in 26s
driver / build (pull_request) Successful in 36s
driver / security (pull_request) Successful in 1m5s
CI / driver (pull_request) Successful in 2m23s
driver / publish (pull_request) Skipped

get_facts read SerialNumber and SystemUpTime from getBasicInformation,
which a VMG4005-B50A does not send, and reported "" and 0. The gateway
has both in DeviceInfo of the DAL's cardpage_status, the answer the
interfaces are read from. get_facts now reads that answer once and takes
the interfaces, serial number and uptime from it. Model and firmware stay
with getBasicInformation, which does carry them.

Closes #27
This commit is contained in:
Christian Manivong committed 2026-11-12 17:19:08 +01:00
1 parent 56a832b9d1
commit 1fda222d56
5 files changed
+125 -45

No files matched your search

+4
View File
@@ -13,6 +13,10 @@ All notable changes to this driver. The format follows
3.12 venv no longer has.
### Fixed
- `get_facts()` reports the gateway's serial number and uptime (#27). It read them
from `getBasicInformation`, which a VMG4005-B50A does not send them in, and reported
`""` and `0`. They now come from `DeviceInfo` in the DAL's `cardpage_status`, the
answer the interfaces are read from; `get_facts()` reads that answer once for both.
- `get_facts()` reports the gateway's host name and domain: `hostname` is the name on
the gateway's System page (`GET /cgi-bin/System?oid=snmp`), `fqdn` that name with its
domain (`VMG4005-B50A.home`). Both were read from `getBasicInformation`, which a