summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0005named_interval_shadow_0
blob: 14fcbdca05e0f041e3da9f0f00e164d0098e1aa1 (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::/48 }
if $NFT add element inet t s { fe00::/64 } 2>/dev/null ; then
	echo "E: accepted shadowed element in named set" >&2
	exit 1
fi
exit 0