]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: libnftables-json: Describe RULESET object master
authorPhil Sutter <phil@nwl.cc>
Thu, 6 Nov 2025 11:14:56 +0000 (12:14 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 7 Nov 2025 10:00:34 +0000 (11:00 +0100)
Document the syntax of this meta-object used by "list" and "flush"
commands only.

Fixes: 872f373dc50f7 ("doc: Add JSON schema documentation")
Signed-off-by: Phil Sutter <phil@nwl.cc>
doc/libnftables-json.adoc

index 643884d5c1063b2f9a3f8da706c640ff2e84dfdd..049c3254ff03f5129ab7cdd2473f1480c3b23a9c 100644 (file)
@@ -200,6 +200,18 @@ Rename a chain. The new name is expected in a dedicated property named
 
 == RULESET ELEMENTS
 
+=== RULESET
+[verse]
+____
+*{ "ruleset":* 'RULSET_PROPERTIES' *}*
+
+'RULESET_PROPERTIES' := *null* | *{ "family":* 'STRING' *}*
+____
+
+This is a special object for use with *list* and *flush* commands which will
+then operate on either the whole ruleset or the parts of it belonging to the
+given family.
+
 === TABLE
 [verse]
 ____