netcrawl icon indicating copy to clipboard operation
netcrawl copied to clipboard

Add 'Update Existing Device' Functionality

Open Wyko opened this issue 9 years ago • 0 comments

Objective

When performing a scan with a pre-existing database, the application will identify pre-existing devices and update them rather than adding duplicate entries.

Possible Implementation

After polling a device, search the database for a duplicate unique_name.

If found:

  • Full Replace (preferred): Cascade delete the old entry and add the new one.
  • Update: Add the device_id of the match to the polled device. Compare each entry and update them.

Concerns

The application may be interested in tracking changes in device state over time. What would be the best way to do that?

Wyko avatar Mar 17 '17 13:03 Wyko