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
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
11f3b029
Commit
11f3b029
authored
Oct 26, 2017
by
Kaarle Ritvanen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConfigObject.info: order by chain path
parent
b5f332c6
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7272 additions
and
7266 deletions
+7272
-7266
awall/model.lua
awall/model.lua
+9
-3
test/output/address/dump
test/output/address/dump
+244
-244
test/output/filter-limit/dump
test/output/filter-limit/dump
+6846
-6846
test/output/filter/dump
test/output/filter/dump
+82
-82
test/output/no-track/dump
test/output/no-track/dump
+91
-91
No files found.
awall/model.lua
View file @
11f3b029
...
...
@@ -93,10 +93,16 @@ end
function
M
.
ConfigObject
:
trules
()
return
{}
end
function
M
.
ConfigObject
:
info
()
local
res
=
{}
for
i
,
trule
in
ipairs
(
self
:
trules
())
do
table.insert
(
res
,
{
' '
..
optfrag
.
location
(
trule
),
optfrag
.
command
(
trule
)})
local
rules
=
{}
for
_
,
trule
in
ipairs
(
self
:
trules
())
do
local
loc
=
optfrag
.
location
(
trule
)
table.insert
(
setdefault
(
rules
,
loc
,
{}),
{
' '
..
loc
,
optfrag
.
command
(
trule
)}
)
end
local
res
=
{}
for
_
,
loc
in
sortedkeys
(
rules
)
do
extend
(
res
,
rules
[
loc
])
end
return
res
end
...
...
test/output/address/dump
View file @
11f3b029
This diff is collapsed.
Click to expand it.
test/output/filter-limit/dump
View file @
11f3b029
This diff is collapsed.
Click to expand it.
test/output/filter/dump
View file @
11f3b029
This diff is collapsed.
Click to expand it.
test/output/no-track/dump
View file @
11f3b029
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