Debian Codegraph @

tests/shell/testcases/json/0006obj_comment_0

raw
1 #!/bin/bash
2
3 # NFT_TEST_REQUIRES(NFT_TEST_HAVE_json)
4 # NFT_TEST_REQUIRES(NFT_TEST_HAVE_comment)
5
6 set -e
7
8 $NFT flush ruleset
9
10 RULESET='{"nftables": [{"metainfo": {"version": "1.0.5", "release_name": "Lester Gooch #4", "json_schema_version": 1}}, {"table": {"family": "inet", "name": "t", "handle": 9}}, {"counter": {"family": "inet", "name": "mycounter", "table": "t", "handle": 1, "comment": "my comment in counter", "packets": 0, "bytes": 0}}]}'
11
12 $NFT -j -f - <<< $RULESET