[Bug 1336] New: "nft reset counters" does not respect -j option for JSON output

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Mon May 6 23:52:14 CEST 2019


            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

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)


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>

More information about the netfilter-buglog mailing list