Skip to content

pretty print .json-nft files

Thomas Haller netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests/shell: use generated ruleset for `nft --check`tests/shell/helpers/test-wrapper.sh+26 -220 replies
2/2tests/shell: have .json-nft dumps prettified to wrap linestests/shell/helpers/json-pretty.sh tests/shell/helpers/test-wrapper.sh+53 -152 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/2] pretty print .json-nft files

The plain nft -j list ruleset output is hard to read in diffs. Instead, commit pretty printed JSON to git and compare that.

Existing .json-nft continue to work, and don't need to be regenerated. But when the dump content changes, the prettified version is committed to git.

Thomas Haller (2):
tests/shell: use generated ruleset for nft --check tests/shell: have .json-nft dumps prettified to wrap lines

 tests/shell/helpers/json-pretty.sh  | 27 +++++++---
 tests/shell/helpers/test-wrapper.sh | 81 ++++++++++++++++++++---------
 2 files changed, 75 insertions(+), 33 deletions(-)
Signature · 1 line
2.42.0