Initial changes for MUD recording

This commit is contained in:
emanuele-f 2020-03-04 17:05:34 +01:00
parent 0d133d102e
commit 94f175194b
17 changed files with 381 additions and 51 deletions

View file

@ -232,12 +232,45 @@ end
-- ##############################################
--
-- MUD template
--
local FlowMUDTemplate = {}
function FlowMUDTemplate:new()
local obj = Template:new("flow_mud")
setmetatable(obj, self)
self.__index = self
return obj
end
function FlowMUDTemplate:parseConfig(script, conf)
--~ if(tonumber(conf.min_duration) == nil) then
--~ return false, "bad min_duration value"
--~ end
--~ return http_lint.validateListItems(script, conf)
-- TODO validation
return true
end
function FlowMUDTemplate:describeConfig(script, hooks_conf)
return "TODO"
end
-- ##############################################
-- Available templates
return {
default = DefaultTemplate:new(),
threshold_cross = ThresholdCrossTemplate:new(),
items_list = ItemsList:new(),
items_list = ItemsList:new(),
elephant_flows = ElephantFlowsTemplate:new(),
long_lived = LongLivedTemplate:new(),
flow_mud = FlowMUDTemplate:new(),
}