fix: an ARP entry's expiry is no age #22

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

get_arp_table() reported the time until the entry expires (FreeBSD's expires in N seconds, OpenBSD's Expire column) as the age: an entry refreshed a second ago looked 20 minutes old. arp -an gives no real age, so it now reports -1.0 (napalm-device-types' ARP_AGE_UNKNOWN). CHANGELOG under Unreleased/Fixed.

This driver was not in the issue's list, but it has the same expires-as-age bug as napalm-opnsense.

Test: TestArp in tests/test_parse.py (FreeBSD and OpenBSD expectations now -1.0).

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()` reported the time until the entry expires (FreeBSD's `expires in N seconds`, OpenBSD's `Expire` column) as the age: an entry refreshed a second ago looked 20 minutes old. `arp -an` gives no real age, so it now reports `-1.0` (napalm-device-types' `ARP_AGE_UNKNOWN`). CHANGELOG under Unreleased/Fixed. This driver was not in the issue's list, but it has the same expires-as-age bug as napalm-opnsense. Test: `TestArp` in `tests/test_parse.py` (FreeBSD and OpenBSD expectations now `-1.0`). 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:11 +00:00
fix: an ARP entry's expiry is no age
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 15s
driver / types (pull_request) Successful in 1m9s
driver / test (3.12) (pull_request) Successful in 1m8s
driver / test (3.13) (pull_request) Successful in 58s
driver / lowest (pull_request) Successful in 24s
driver / build (pull_request) Successful in 31s
driver / security (pull_request) Successful in 1m1s
CI / driver (pull_request) Successful in 2m41s
driver / publish (pull_request) Skipped
1156da123d
get_arp_table reported the time until the entry expires (FreeBSD's
"expires in N seconds", OpenBSD's Expire column): an entry refreshed a
second ago looked 20 minutes old. It now reports ARP_AGE_UNKNOWN (-1.0).

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