bugzilla-daemon at netfilter.org
2019-Dec-07 11:39 UTC
[Bug 1388] New: Combining --terse with --json has no effect
https://bugzilla.netfilter.org/show_bug.cgi?id=1388
Bug ID: 1388
Summary: Combining --terse with --json has no effect
Product: nftables
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: nft
Assignee: pablo at netfilter.org
Reporter: kfm at plushkava.net
Given a loaded ruleset that contains at least one populated set, the following
bash program demonstrates that --terse has no effect when combined with the
--json option.
for opts in -s -t '-s -t'; do
printf 'opts = %s: ' "$opts"
if cmp -s <(nft -j list ruleset) <(nft -j $opts list ruleset); then
echo "same"
else
echo "different"
fi
done
Sample output:
opts = -s: different
opts = -t: same
opts = -s -t: different
My expectation is that the --terse option ensures that set elements are not
rendered, just as it does for the standard output format.
--
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/20191207/d204789f/attachment.html>
bugzilla-daemon at netfilter.org
2020-Nov-05 19:22 UTC
[Bug 1388] Combining --terse with --json has no effect
https://bugzilla.netfilter.org/show_bug.cgi?id=1388
kfm at plushkava.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #1 from kfm at plushkava.net ---
Fixed by nftables-0.9.7, owing to commit f02aa37. Closing.
--
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/20201105/6e55e66c/attachment.html>
Reasonably Related Threads
- [Bug 1325] New: Reproducible NULL ptr deref upon checking trivial nftables ruleset in Linux 5.0
- [Bug 1393] New: iptables-nft -S hangs if not run as root
- [Bug 1464] New: Trying to populate a set raises a netlink error "Could not process rule: No space left on device"
- [Bug 1392] New: nft stalls on EGAIN upon repeatedly flushing and populating a set
- [Bug 1319] New: Exporting a map with many elements to JSON will fail