Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
awall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
awall
Commits
efd0e778
Commit
efd0e778
authored
Oct 07, 2017
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: limit
parent
61db7099
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31870 additions
and
13784 deletions
+31870
-13784
test/mandatory/filter-limit.lua
test/mandatory/filter-limit.lua
+12
-8
test/mandatory/limit.json
test/mandatory/limit.json
+1
-0
test/output/dump
test/output/dump
+22151
-10016
test/output/rules-save
test/output/rules-save
+4853
-1880
test/output/rules6-save
test/output/rules6-save
+4853
-1880
No files found.
test/mandatory/filter-limit.lua
View file @
efd0e778
...
...
@@ -38,16 +38,18 @@ function add(limit_type, filter)
add_limit
(
limit
)
if
not
high_rate
then
limit
.
name
=
'A'
for
_
,
name
in
ipairs
{
'A'
,
'C'
}
do
limit
.
name
=
name
for
_
,
addr
in
ipairs
{
false
,
'dest'
}
do
limit
.
addr
=
addr
or
nil
for
_
,
addr
in
ipairs
{
false
,
'dest'
}
do
limit
.
addr
=
addr
or
nil
limit
.
update
=
nil
add_limit
(
limit
)
limit
.
update
=
nil
add_limit
(
limit
)
limit
.
update
=
false
add_limit
(
limit
)
limit
.
update
=
false
add_limit
(
limit
)
end
end
end
end
...
...
@@ -59,7 +61,9 @@ add('conn', {out='B'})
add
(
'flow'
)
add
(
'flow'
,
{[
'in'
]
=
'A'
,
out
=
'_fw'
,
[
'no-track'
]
=
true
})
table.insert
(
res
,
{[
'update-limit'
]
=
'A'
})
for
_
,
name
in
ipairs
{
'A'
,
'B'
,
'C'
,
'D'
}
do
table.insert
(
res
,
{[
'update-limit'
]
=
name
})
end
for
_
,
measure
in
ipairs
{
'conn'
,
'flow'
}
do
for
_
,
addr
in
ipairs
{
'src'
,
'dest'
}
do
...
...
test/mandatory/limit.json
0 → 100644
View file @
efd0e778
{
"limit"
:
{
"B"
:
true
,
"C"
:
7
,
"D"
:
{
"inet"
:
22
,
"inet6"
:
58
}
}
}
test/output/dump
View file @
efd0e778
This diff is collapsed.
Click to expand it.
test/output/rules-save
View file @
efd0e778
This diff is collapsed.
Click to expand it.
test/output/rules6-save
View file @
efd0e778
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment