fix: an unknown ARP age is -1.0, not 0.0
driver / standard (pull_request) Successful in 18s
driver / lint (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m6s
driver / test (3.12) (pull_request) Successful in 6m5s
driver / test (3.13) (pull_request) Successful in 6m3s
driver / lowest (pull_request) Successful in 5m30s
driver / build (pull_request) Successful in 32s
driver / security (pull_request) Successful in 1m10s
CI / driver (pull_request) Successful in 7m43s
driver / publish (pull_request) Skipped

The host list says a host is active, not when the box last saw it, so
get_arp_table reports ARP_AGE_UNKNOWN instead of 0.0 ("confirmed just now").

NetOrk/netork#1327
This commit is contained in:
Christian Manivong committed 2026-10-30 08:37:08 +01:00
1 parent 666a5f0f35
commit e326350437
3 files changed
+14 -2

No files matched your search

+5
View File
@@ -440,6 +440,11 @@ class TestGetArpTable:
assert arp_table[0]["mac"] == "11:22:33:44:55:66"
assert arp_table[0]["ip"] == "192.168.1.50"
def test_age_is_unknown(self, driver):
# The host list says a host is active, not when the box last saw it;
# 0.0 would read as "confirmed just now" (NetOrk/netork#1327).
assert [e["age"] for e in driver.get_arp_table()] == [-1.0]
# ---------------------------------------------------------------------------
# get_wan_status()