mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-07-25 15:08:10 -04:00
BE: unable to exclude loacl_MAC entries #1700
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user