diff options
author | Florian Westphal <fw@strlen.de> | 2023-12-14 17:47:21 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-12-14 17:51:24 +0100 |
commit | 21657008dd4b4094eac017a175f2a3056af36b17 (patch) | |
tree | e97435da4497c829a8fc2dc63f8a1356567b33b7 /tests/shell/testcases/transactions/doubled-set | |
parent | 060ed8655d64874a92e6fba2ba9452b2aa94849e (diff) |
Revert "evaluate: error out when existing set has incompatible key"
This breaks existing behaviour, add a test case so this is caught in
the future.
The reverted test case will be brought back once a better fix
is available.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/transactions/doubled-set')
-rwxr-xr-x | tests/shell/testcases/transactions/doubled-set | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/shell/testcases/transactions/doubled-set b/tests/shell/testcases/transactions/doubled-set new file mode 100755 index 00000000..50b568eb --- /dev/null +++ b/tests/shell/testcases/transactions/doubled-set @@ -0,0 +1,22 @@ +#!/bin/bash + +# NFT_TEST_REQUIRES(NFT_TEST_HAVE_pipapo) + +$NFT -f /dev/stdin <<EOF +table t { + set s { + type ipv4_addr . ifname + flags interval + elements = { 1.2.3.4 . "foo" } + } + + set s { + type ipv4_addr . ifname + flags interval + elements = { 1.2.3.4 . "foo" } + + } +} +EOF + +# run-tests.sh will validate dumpfile. |