summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/listing/0020flowtable_0
blob: 2f0a98d16fd38723b4c7784b6cd6036616c81fc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# list only the flowtable asked for with table

EXPECTED="table inet filter {
	flowtable f {
		hook ingress priority filter
		devices = { lo }
	}
}"

set -e

$NFT -f - <<< "$EXPECTED"

GET="$($NFT list flowtable inet filter f)"
if [ "$EXPECTED" != "$GET" ] ; then
	$DIFF -u <(echo "$EXPECTED") <(echo "$GET")
	exit 1
fi