summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0004named_interval_shadow_0
blob: 827423d56a3ef5ddac1f7055e5d0463d282f876f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# This testscase checks the nft checking of shadowed elements

set -e
$NFT add table inet t
$NFT add set inet t s { type ipv6_addr \; flags interval \; }
$NFT add element inet t s { fe00::/64 }
if $NFT add element inet t s { fe00::/48 } 2>/dev/null ; then
	echo "E: accepted shadowed element in named set" >&2
	exit 1
fi
exit 0