summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/json/0002table_map_0
blob: 4b54527bc8399e69d5453f9b1420f28d65a1d4ce (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

set -e

$NFT flush ruleset

RULESET='{"nftables": [{"metainfo": {"version": "1.0.5", "release_name": "Lester Gooch #4", "json_schema_version": 1}}, {"table": {"family": "ip", "name": "t", "handle": 4}}, {"map": {"family": "ip", "name": "m", "table": "t", "type": "ipv4_addr", "handle": 1, "map": "mark", "stmt": [{"counter": {"packets": 0, "bytes": 0}}]}}]}'

$NFT -j -f - <<< $RULESET