get_arp_table: age is filled from expires (time left), not time since seen #25

Closed
opened 2026-10-18 19:45:22 +00:00 by christianmanivong · 1 comment
Owner

The ARP table's age field is filled from OPNsense's expires, which is the time left until the entry expires. NAPALM's age means time since the entry was seen, and netOrk's IP-change detection reads it that way (NetOrk/netork _freshest_arp).

Fix: report the real age, or leave age unset (-1/None) when OPNsense doesn't give it.

Prio P4. Found while fixing NetOrk/netork#1168.

The ARP table's `age` field is filled from OPNsense's `expires`, which is the time left until the entry expires. NAPALM's `age` means time since the entry was seen, and netOrk's IP-change detection reads it that way (NetOrk/netork `_freshest_arp`). **Fix:** report the real age, or leave `age` unset (-1/None) when OPNsense doesn't give it. **Prio P4.** Found while fixing NetOrk/netork#1168.
Author
Owner

Already fixed on main by bb0810d ("fix: an ARP entry's expiry is no age", 2026-10-30): opnsense.py:512 and :698 report age -1.0 (ARP_AGE_UNKNOWN); tested by test_expires_is_not_an_age. Duplicate of #24.

Already fixed on main by bb0810d ("fix: an ARP entry's expiry is no age", 2026-10-30): `opnsense.py:512` and `:698` report age -1.0 (`ARP_AGE_UNKNOWN`); tested by `test_expires_is_not_an_age`. Duplicate of #24.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-opnsense#25