BE: unable to exclude loacl_MAC entries #1700

This commit is contained in:
jokob-sk
2026-07-04 09:36:24 +10:00
parent 746b3d4c84
commit 351b6a7d28
2 changed files with 7 additions and 6 deletions

View File

@@ -510,7 +510,7 @@ def update_vendors_from_mac(db):
# -------------------------------------------------------------------------------
def save_scanned_devices(db):
def save_own_device(db):
sql = db.sql # TO-DO
# Add Local MAC of default local interface

View File

@@ -1,7 +1,7 @@
from scan.device_handling import (
create_new_devices,
print_scan_stats,
save_scanned_devices,
save_own_device,
exclude_ignored_devices,
update_devices_data_from_scan,
update_sync_hub_node,
@@ -35,14 +35,15 @@ Logger(get_setting_value("LOG_LEVEL"))
def process_scan(db):
# Save own device data into CurrentScan TODO:move potentially into a separate plugin
mylog("verbose", "[Process Scan] Processing scan results")
save_own_device(db)
# Apply exclusions
mylog("verbose", "[Process Scan] Exclude ignored devices")
exclude_ignored_devices(db)
# Load current scan data
mylog("verbose", "[Process Scan] Processing scan results")
save_scanned_devices(db)
db.commitDB()
# Print stats