diff options
author | Florian Westphal <fw@strlen.de> | 2023-12-05 13:59:15 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-12-06 16:52:13 +0100 |
commit | 77ba01907cb46a504ef0c0c9705308fd2883cbb4 (patch) | |
tree | ffef6eda0b4db9447c3a15b0a01a53f6925043fe /tests | |
parent | 1949a63215b423b914d3a7a9de7511cb48af3c09 (diff) |
tests: shell: add test case for sets without key
tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert
BUG: unhandled key type 2
nft: src/intervals.c:59: setelem_expr_to_range: Assertion `0' failed.
[ This bug doesn't trigger anymore due to
1949a63215b4 ("evaluate: reject set definition with no key") ]
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert b/tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert new file mode 100644 index 00000000..59ef1ab3 --- /dev/null +++ b/tests/shell/testcases/bogons/nft-f/set_definition_with_no_key_assert @@ -0,0 +1,12 @@ +table inet testifsets { + map map_wild { elements = { "abcdex*", + "othername", + "ppp0" } + } + map map_wild { + type ifname : verdict + flags interval + elements = { "abcdez*" : jump do_nothing, + "eth0" : jump do_nothing } + } +} |