From 21657008dd4b4094eac017a175f2a3056af36b17 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 14 Dec 2023 17:47:21 +0100 Subject: 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 --- tests/shell/testcases/transactions/dumps/doubled-set.nft | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/shell/testcases/transactions/dumps/doubled-set.nft (limited to 'tests/shell/testcases/transactions/dumps/doubled-set.nft') diff --git a/tests/shell/testcases/transactions/dumps/doubled-set.nft b/tests/shell/testcases/transactions/dumps/doubled-set.nft new file mode 100644 index 00000000..48a322eb --- /dev/null +++ b/tests/shell/testcases/transactions/dumps/doubled-set.nft @@ -0,0 +1,7 @@ +table ip t { + set s { + type ipv4_addr . ifname + flags interval + elements = { 1.2.3.4 . "foo" } + } +} -- cgit v1.2.3