<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - json schema does not support comments on tables"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1670">1670</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>json schema does not support comments on tables
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>1.0.x
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>minor
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>danw@redhat.com
</td>
</tr></table>
<p>
<div>
<pre>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": "<a href="show_bug.cgi?id=1670#c4">comment4</a>" } } } ] }
^D
$ nft list table inet test4
table inet test4 {
}
$</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>