Skip to contentSkip to conversation

doc: libnftables-json: Describe RULESET object

PATCH In review Phil Sutter 2 participants 3 messages Nov 6, 2025 – Nov 7, 2025 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 doc: libnftables-json: Describe RULESET object

Document the syntax of this meta-object used by "list" and "flush" commands only.

872f373dc50f7 ("doc: Add JSON schema documentation")

---
 doc/libnftables-json.adoc | 12 ++++++++++++
 1 file changed, 12 insertions(+)
doc/libnftables-json.adoc +12 -0
index 643884d5c1063..049c3254ff03f 100644
@@ -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]
 ____
Signature · 1 line
2.51.0
maintainer
#1 lore raw
Quoted 4 lines · Phil Sutter

Document the syntax of this meta-object used by "list" and "flush" commands only.

872f373dc50f7 ("doc: Add JSON schema documentation")

Why is that here? Should this have been 'Fixes: '?

Aside from that, just apply this, thanks.

author reviewer
#2 lore raw
Quoted 7 lines · Florian Westphal
Quoted 4 lines · Phil Sutter

Document the syntax of this meta-object used by "list" and "flush" commands only.

872f373dc50f7 ("doc: Add JSON schema documentation")

Why is that here? Should this have been 'Fixes: '?

Oops, yes.

Quoted 1 line

Aside from that, just apply this, thanks.

Patch applied, thanks!