Added check redis pref for asn mode enabled (#9451)

This commit is contained in:
GabrieleDeri 2025-07-29 11:15:22 +02:00 committed by GitHub
parent b9933b49e2
commit 9c6247ac8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 6 deletions

View file

@ -10,6 +10,8 @@ require "label_utils"
require "http_lint"
require "lua_utils_get"
require "flow_utils"
require "check_redis_prefs"
local tcp_flow_state_utils = require("tcp_flow_state_utils")
local format_utils = require "format_utils"
local alert_consts = require "alert_consts"
@ -298,7 +300,10 @@ rsp[#rsp + 1] = {
}
-- QOE filters
if ntop.isEnterpriseL then
-- If ASN Mode is enabled remove QOE from filter as it is not present in the live flows table
local isASNModeEnabled = isASNModeEnabled()
if ntop.isEnterpriseL() and (not isASNModeEnabled) then
local qoe_filters = {{key = "qoe", value = "", label = i18n("all")}}
if flowstats["qoe"] then