summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0003named_interval_missing_flag_0
blob: e0b7f74cfdd50bd8de43397629b3128326c6edb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# This testscase checks the nft checking of flags in named intervals

set -e
$NFT add table t
$NFT add set t s { type ipv4_addr \; }
if $NFT add element t s { 192.168.0.0/24, 192.168.1.0/24 } 2>/dev/null ; then
	echo "E: accepted interval in named set without proper flags" >&2
	exit 1
fi
exit 0