Commit a4b108a3 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

test: filter-limit: interval

parent 093ab9d4
...@@ -30,23 +30,25 @@ function add(limit_type, filter) ...@@ -30,23 +30,25 @@ function add(limit_type, filter)
local count = high_rate and 150 or 1 local count = high_rate and 150 or 1
add_limit(count) add_limit(count)
for _, log in ipairs{true, false, 'none'} do for _, interval in ipairs{false, 5} do
local limit = {count=count} for _, log in ipairs{true, false, 'none'} do
if log ~= true then limit.log = log end local limit = {count=count, interval=interval or nil}
if log ~= true then limit.log = log end
add_limit(limit) add_limit(limit)
if not high_rate then if not high_rate then
limit.name = 'foo' limit.name = 'foo'
for _, addr in ipairs{false, 'dest'} do for _, addr in ipairs{false, 'dest'} do
limit.addr = addr or nil limit.addr = addr or nil
limit.update = nil limit.update = nil
add_limit(limit) add_limit(limit)
limit.update = false limit.update = false
add_limit(limit) add_limit(limit)
end
end end
end end
end end
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment