]> git.ipfire.org Git - thirdparty/nftables.git/commit
doc: Improve example in libnftables-json(5)
authorPhil Sutter <phil@nwl.cc>
Wed, 29 Aug 2018 14:23:20 +0000 (16:23 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 30 Aug 2018 10:19:36 +0000 (12:19 +0200)
commit2e56f533b36a2da62dd0dc49194ce28ee23e2b5e
tree19359360a362233ee37dd22083474f788c640648
parentb4026d2515b16513fa46193172a7dce9de5a6a80
doc: Improve example in libnftables-json(5)

The introductory example was a bit flawed in that the third command
('list ruleset') wouldn't yield expected results due to all three
commands ending in a single transaction and therefore the changes of the
first two commands were not committed yet at the time ruleset was
listed.

Instead demonstrate adding a chain and a rule to the new table.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/libnftables-json.adoc