From 3713a0acc99df1b80a50732b9b106a42b994cd6c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 22 Jan 2020 22:38:56 +0100 Subject: tests: shell: set lookup and set update A simple test to cover set lookup and update in one rule. Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/0042update_set_0 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tests/shell/testcases/sets/0042update_set_0 (limited to 'tests/shell') diff --git a/tests/shell/testcases/sets/0042update_set_0 b/tests/shell/testcases/sets/0042update_set_0 new file mode 100755 index 00000000..a8e9e05f --- /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; } -- cgit v1.2.3