summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/flowtable/0002create_flowtable_0
blob: 4c85c3f8cfc0e5a6561bb651dddca75ba38d75c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set -e
$NFT add table t
$NFT add flowtable t f { hook ingress priority 10 \; devices = { lo }\; }
if $NFT create flowtable t f { hook ingress priority 10 \; devices = { lo }\; } 2>/dev/null ; then
	echo "E: flowtable creation not failing on existing set" >&2
	exit 1
fi
$NFT add flowtable t f { hook ingress priority 10 \; devices = { lo }\; }

exit 0