napalm_bsd/parse.py:161 sets age to the libxo expires value (float(expires) if expires else -1.0). expires counts down to the entry's expiry. NAPALM's age is the number of seconds since the entry was last seen, so it counts up. A large value here means a fresh entry, and readers that follow the NAPALM contract read it the other way round.
netOrk reads age as the age: the freshest entry per MAC is "lowest age", and since NetOrk/netork#1114 an entry is dated poll time - age.
Fix: report -1.0 (unknown) unless the real age can be derived, for example as net.link.ether.inet.max_age - expires, if that sysctl is read alongside.
Prio: P3. Found while fixing NetOrk/netork#1114. The same bug is in napalm-opnsense.
`napalm_bsd/parse.py:161` sets `age` to the libxo `expires` value (`float(expires) if expires else -1.0`). `expires` counts **down** to the entry's expiry. NAPALM's `age` is the number of seconds since the entry was last seen, so it counts **up**. A large value here means a fresh entry, and readers that follow the NAPALM contract read it the other way round.
netOrk reads `age` as the age: the freshest entry per MAC is "lowest age", and since NetOrk/netork#1114 an entry is dated `poll time - age`.
**Fix:** report `-1.0` (unknown) unless the real age can be derived, for example as `net.link.ether.inet.max_age - expires`, if that sysctl is read alongside.
Prio: P3. Found while fixing NetOrk/netork#1114. The same bug is in napalm-opnsense.
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.
napalm_bsd/parse.py:161setsageto the libxoexpiresvalue (float(expires) if expires else -1.0).expirescounts down to the entry's expiry. NAPALM'sageis the number of seconds since the entry was last seen, so it counts up. A large value here means a fresh entry, and readers that follow the NAPALM contract read it the other way round.netOrk reads
ageas the age: the freshest entry per MAC is "lowest age", and since NetOrk/netork#1114 an entry is datedpoll time - age.Fix: report
-1.0(unknown) unless the real age can be derived, for example asnet.link.ether.inet.max_age - expires, if that sysctl is read alongside.Prio: P3. Found while fixing NetOrk/netork#1114. The same bug is in napalm-opnsense.