[Bug 1670] New: json schema does not support comments on tables

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Apr 6 14:38:01 CEST 2023


https://bugzilla.netfilter.org/show_bug.cgi?id=1670

            Bug ID: 1670
           Summary: json schema does not support comments on tables
           Product: nftables
           Version: 1.0.x
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: danw at redhat.com

If you add a table with a comment, the comment shows up in "nft list" but not
in "nft -j list":

$ nft add table inet test3 '{comment "this is a comment";}'
$ nft list table inet test3
table inet test3 {
    comment "this is a comment"
}
$ nft -j list table inet test3
{"nftables": [{"metainfo": {"version": "1.0.1", "release_name": "Fearless
Fosdick #3", "json_schema_version": 1}}, {"table": {"family": "inet", "name":
"test3", "handle": 5}}]}
$

If you try to add a table with a comment via json, the comment is ignored:

$ nft -j -f -
{ "nftables": [ { "add": { "table": { "family": "inet", "name": "test4",
"comment": "comment4" } } } ] }
^D
$ nft list table inet test4
table inet test4 {
}
$

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20230406/b593c1a2/attachment.html>


More information about the netfilter-buglog mailing list