Implement traffic extraction on view interfaces by aggregating traffic from all viewed interfaces, if recording is enabled on those

This commit is contained in:
Alfredo Cardigliano 2026-04-03 17:23:36 +02:00
parent ca0b6e1125
commit efc6484517
9 changed files with 173 additions and 22 deletions

View file

@ -303,10 +303,8 @@ function graph_utils.drawNewGraphs(source_value_object)
local ifstats = interface.getStats()
local ifid = (source_value_object.ifid) or (ifstats.id)
-- Check extraction permissions
local traffic_extraction_permitted =
recording_utils.isActive(ifid) or
recording_utils.isExtractionActive(ifid)
-- Check extraction permissions (handles View interfaces transparently)
local _, traffic_extraction_permitted = recording_utils.getStats(ifid)
if source_value_object == nil then source_value_object = {} end