summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0005named_interval_shadow_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/sets/0005named_interval_shadow_0')
-rwxr-xr-xtests/shell/testcases/sets/0005named_interval_shadow_013
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0005named_interval_shadow_0 b/tests/shell/testcases/sets/0005named_interval_shadow_0
new file mode 100755
index 00000000..14fcbdca
--- /dev/null
+++ b/tests/shell/testcases/sets/0005named_interval_shadow_0
@@ -0,0 +1,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