bugzilla-daemon at netfilter.org
2019-May-06  21:52 UTC
[Bug 1336] New: "nft reset counters" does not respect -j option for JSON output
https://bugzilla.netfilter.org/show_bug.cgi?id=1336
            Bug ID: 1336
           Summary: "nft reset counters" does not respect -j option
for
                    JSON output
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: fox.wilson at cyburity.com
When I run a command like "nft -j list counters", I can see counter
output in
JSON format. However, "nft reset counters" does not respect the -j
option: it
gives output in this format regardless of whether or not the -j option is
passed:
table ... {
    counter ... {
        packets ... bytes ...
    }
}
I would like to be able to atomically reset counters, but get output in JSON
format (otherwise "nft -j list counters; nft reset counters >
/dev/null" would
work for me).
This is on Debian buster, with:
~# nft -v
nftables v0.9.0 (Fearless Fosdick)
Thanks!
-- 
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/20190506/ed38eb1e/attachment.html>
bugzilla-daemon at netfilter.org
2020-Jan-28  22:48 UTC
[Bug 1336] "nft reset counters" does not respect -j option for JSON output
https://bugzilla.netfilter.org/show_bug.cgi?id=1336
kfm at plushkava.net changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kfm at plushkava.net
-- 
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/20200128/2ae04d2c/attachment.html>
bugzilla-daemon at netfilter.org
2020-Oct-26  16:25 UTC
[Bug 1336] "nft reset counters" does not respect -j option for JSON output
https://bugzilla.netfilter.org/show_bug.cgi?id=1336
Pablo Neira Ayuso <pablo at netfilter.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
--- Comment #1 from Pablo Neira Ayuso <pablo at netfilter.org> ---
Upstream fix:
commit a9c2177f292f2620edb02b5549580b982ceb9455
Author: Jose M. Guisado Gomez <guigom at riseup.net>
Date:   Sat Aug 1 23:30:10 2020 +0200
    src: fix obj list output when reset command
-- 
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/20201026/76b55074/attachment.html>
Seemingly Similar Threads
- [Bug 1462] New: `nft -j list set` does not show counters
- [Bug 1710] New: When called from nft -f, list counters outputs all zeros
- [Bug 1446] New: no output with "nft --echo --json"
- [Bug 1734] New: nft set with auto-merge json import/export
- [Bug 1297] New: Replacement for nft export vm json?