summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/json/0004json_schema_version_1
blob: 0f8d586f9d7c500775cf54cc72bf0e3a8f25a213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_json)

set -e

$NFT flush ruleset

RULESET='{"nftables": [{"metainfo": {"json_schema_version": 999}}]}'

$NFT -j -f - <<< $RULESET && exit 1

exit 0