fix: an unknown ARP age is -1.0, not 0.0 #11

Merged
christianmanivong merged 1 commits from fix/arp-unknown-age into main 2026-10-30 09:11:39 +00:00
Owner

get_arp_table() wrote 0.0 as the age, but the host list only says a host is active, not when the gateway last saw it. 0.0 means "confirmed just now", and an application ranking sightings by freshness takes it at its word. The driver now reports -1.0 (napalm-device-types' ARP_AGE_UNKNOWN, NAPALM's own value for "not reported"). CHANGELOG under Unreleased/Fixed.

Test: test_an_arp_entry_has_no_known_age in tests/test_zyxel.py.

Refs NetOrk/netork#1327. Depends on NAPALM/napalm-device-types#57 for the contract (ARP_AGE_UNKNOWN).

Priority: P4 (blocks NetOrk/netork#1190)

`get_arp_table()` wrote `0.0` as the age, but the host list only says a host is active, not when the gateway last saw it. `0.0` means "confirmed just now", and an application ranking sightings by freshness takes it at its word. The driver now reports `-1.0` (napalm-device-types' `ARP_AGE_UNKNOWN`, NAPALM's own value for "not reported"). CHANGELOG under Unreleased/Fixed. Test: `test_an_arp_entry_has_no_known_age` in `tests/test_zyxel.py`. Refs NetOrk/netork#1327. Depends on NAPALM/napalm-device-types#57 for the contract (`ARP_AGE_UNKNOWN`). Priority: P4 (blocks NetOrk/netork#1190)
christianmanivong added 1 commit 2026-10-30 07:38:07 +00:00
fix: an unknown ARP age is -1.0, not 0.0
driver / standard (pull_request) Successful in 18s
driver / lint (pull_request) Successful in 23s
driver / types (pull_request) Successful in 1m24s
driver / test (3.12) (pull_request) Successful in 3m53s
driver / test (3.13) (pull_request) Successful in 3m37s
driver / lowest (pull_request) Successful in 3m14s
driver / build (pull_request) Successful in 31s
driver / security (pull_request) Successful in 1m11s
CI / driver (pull_request) Successful in 5m45s
driver / publish (pull_request) Skipped
48fdda1904
The host list says a host is active, not when the gateway last saw it, so
get_arp_table reports ARP_AGE_UNKNOWN instead of 0.0 ("confirmed just now").

NetOrk/netork#1327
christianmanivong merged commit 7fbb7034d3 into main 2026-10-30 09:11:39 +00:00
christianmanivong deleted branch fix/arp-unknown-age 2026-10-30 09:11:39 +00:00
Sign in to join this conversation.