A simple test to cover set lookup and update in one rule. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- tests/shell/testcases/sets/0042update_set_0 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tests/shell/testcases/sets/0042update_set_0 diff --git a/tests/shell/testcases/sets/0042update_set_0 b/tests/shell/testcases/sets/0042update_set_0 new file mode 100755 index 000000000000..a8e9e05f0f2e --- /dev/null +++ b/tests/shell/testcases/sets/0042update_set_0 @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +RULESET="table ip t { + set set1 { + type ether_addr + } + + set set2 { + type ether_addr + size 65535 + flags dynamic + } + + chain c { + ether daddr @set1 add @set2 { ether daddr counter } + } +}" + +$NFT -f - <<< "$RULESET" || { echo "can't apply basic ruleset"; exit 1; } -- 2.11.0