diff options
author | Florian Westphal <fw@strlen.de> | 2023-09-05 16:32:16 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-09-06 11:26:19 +0200 |
commit | 988e83a1ce61a829473082221a790e72f8d43519 (patch) | |
tree | 18694598ca4334b2d0f8905bfe26f98d17e615e6 /tests/shell/testcases/listing | |
parent | 05628cdd677d727f83fd9c576183b44d2452ddbb (diff) |
evaluate: fix get element for concatenated set
given:
table ip filter {
set test {
type ipv4_addr . ether_addr . mark
flags interval
elements = { 198.51.100.0/25 . 00:0b:0c:ca:cc:10-c1:a0:c1:cc:10:00 . 0x0000006f, }
}
}
We get lookup failure:
nft get element ip filter test { 198.51.100.1 . 00:0b:0c:ca:cc:10 . 0x6f }
Error: Could not process rule: No such file or directory
Its possible to work around this via dummy range somewhere in the key, e.g.
nft get element ip filter test { 198.51.100.1 . 00:0b:0c:ca:cc:10 . 0x6f-0x6f }
but that shouldn't be needed, so make sure the INTERVAL flag is enabled
for the queried element if the set is of interval type.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/listing')
0 files changed, 0 insertions, 0 deletions