Repository navigation
fix(poller): preserve MAC sighting freshness across incomplete scans - #431
Merged
Merged
Conversation
Keep aggregate timestamps and site scope intact, retain Layer 2 observations without ARP translations, and label stale observations explicitly. Ref #430. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
|
TheWitness
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Keep aggregate sightings for devices without current Layer 2 observations and scope updates to the requested site. Preserve last-seen timestamps when changing active flags, retain MACs without current ARP translations, and label older observations in the aggregate report. Apply the aggregate writes transactionally and avoid increasing observation counts when retrying the same scan.
Related Issue
Fixes #430. Ref #414.
Motivation and Context
A failed device scan must not refresh an old sighting's timestamp, and missing ARP data must not hide a collected MAC. This change makes no claim that an empty or partially returned SNMP table is complete. It does not implement LLDP/CDP, VRF collection, interval history or vCenter integration.
How Has This Been Tested?
No schema changes. Reverting restores the previous aggregate/report behavior. Hospital-device validation and a live Cacti browser check have not been performed.
Types of changes
Checklist