diff --git a/attic/scripts/lua/rest/v1/get/alert/type/counters.lua b/attic/scripts/lua/rest/v1/get/alert/type/counters.lua index f4c82241ae..0905730541 100644 --- a/attic/scripts/lua/rest/v1/get/alert/type/counters.lua +++ b/attic/scripts/lua/rest/v1/get/alert/type/counters.lua @@ -29,7 +29,7 @@ local what = _GET["status"] -- historical, historical-flows local epoch_begin = _GET["epoch_begin"] local epoch_end = _GET["epoch_end"] -if isEmptyString(ifid) then +if isEmptyString(ifid) or not interface.isValidIfId(ifid) then print(rest_utils.rc(rest_utils.consts.err.invalid_interface)) return end