get_arp_table() on Smart switches wrote 0.0 as the age and ignored the "Age (min)" column of show arp. 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.
Parsing the column waits for real switch output: the docstring example and the test fixture are not taken from a switch. The docstring says so; the change is line-neutral to stay within the quality baseline.
Test: TestGetArpTable::test_age_is_unknown in tests/unit/test_driver.py.
`get_arp_table()` on Smart switches wrote `0.0` as the age and ignored the "Age (min)" column of `show arp`. `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.
Parsing the column waits for real switch output: the docstring example and the test fixture are not taken from a switch. The docstring says so; the change is line-neutral to stay within the quality baseline.
Test: `TestGetArpTable::test_age_is_unknown` in `tests/unit/test_driver.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 on Smart switches wrote 0.0 ("confirmed just now") and
ignored the "Age (min)" column of show arp. It now reports ARP_AGE_UNKNOWN;
parsing the column waits for real switch output, since the docstring
example and the test fixture are not taken from a switch.
NetOrk/netork#1327
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
get_arp_table()on Smart switches wrote0.0as the age and ignored the "Age (min)" column ofshow arp.0.0means "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.Parsing the column waits for real switch output: the docstring example and the test fixture are not taken from a switch. The docstring says so; the change is line-neutral to stay within the quality baseline.
Test:
TestGetArpTable::test_age_is_unknownintests/unit/test_driver.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 on Smart switches wrote 0.0 ("confirmed just now") and ignored the "Age (min)" column of show arp. It now reports ARP_AGE_UNKNOWN; parsing the column waits for real switch output, since the docstring example and the test fixture are not taken from a switch. NetOrk/netork#1327