Skip to content

Commit

Permalink
test: re-convert json data from nftables files
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhb committed Oct 6, 2024
1 parent 9f109c5 commit 1ca5421
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 229 deletions.
30 changes: 15 additions & 15 deletions resources/test/json/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"nftables": [
{
"metainfo": {
"version": "0.9.8",
"release_name": "E.D.S.",
"version": "1.0.9",
"release_name": "Old Doc Yak #3",
"json_schema_version": 1
}
},
{
"table": {
"family": "ip",
"name": "filter",
"handle": 59
"handle": 1
}
},
{
Expand All @@ -38,6 +38,18 @@
"policy": "accept"
}
},
{
"chain": {
"family": "ip",
"table": "filter",
"name": "forward",
"handle": 3,
"type": "filter",
"hook": "forward",
"prio": 0,
"policy": "drop"
}
},
{
"rule": {
"family": "ip",
Expand Down Expand Up @@ -86,18 +98,6 @@
]
}
},
{
"chain": {
"family": "ip",
"table": "filter",
"name": "forward",
"handle": 3,
"type": "filter",
"hook": "forward",
"prio": 0,
"policy": "drop"
}
},
{
"rule": {
"family": "ip",
Expand Down
6 changes: 3 additions & 3 deletions resources/test/json/nat.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"nftables": [
{
"metainfo": {
"version": "0.9.8",
"release_name": "E.D.S.",
"version": "1.0.9",
"release_name": "Old Doc Yak #3",
"json_schema_version": 1
}
},
{
"table": {
"family": "ip",
"name": "nat",
"handle": 60
"handle": 1
}
},
{
Expand Down
Loading

0 comments on commit 1ca5421

Please sign in to comment.