summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorŠtěpán Němec <snemec@redhat.com>2021-10-11 13:59:04 +0200
committerPhil Sutter <phil@nwl.cc>2021-10-11 18:31:28 +0200
commitad5669a40381e8cc30c459c1a06a6f736677dfc6 (patch)
treea6fc61cbfaf5354384ae2a92118ed856194ff13a /doc
parent6bcd0d576a60d8a681cc6dd78551633f09534260 (diff)
doc: libnftables-json: make the example valid libnftables JSON input
- Add missing comma between array elements. - Fix chain 'name' property. - Match 'op' property is mandatory. Fixes: 2e56f533b36a ("doc: Improve example in libnftables-json(5)") Fixes: 90d4ee087171 ("JSON: Make match op mandatory, introduce 'in' operator") Signed-off-by: Štěpán Němec <snemec@redhat.com> Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'doc')
-rw-r--r--doc/libnftables-json.adoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/libnftables-json.adoc b/doc/libnftables-json.adoc
index c152dc05..9cc17ff2 100644
--- a/doc/libnftables-json.adoc
+++ b/doc/libnftables-json.adoc
@@ -91,14 +91,15 @@ translates into JSON as such:
{ "add": { "chain": {
"family": "inet",
"table": "mytable",
- "chain": "mychain"
- }}}
+ "name": "mychain"
+ }}},
{ "add": { "rule": {
"family": "inet",
"table": "mytable",
"chain": "mychain",
"expr": [
{ "match": {
+ "op": "==",
"left": { "payload": {
"protocol": "tcp",
"field": "dport"