summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0042update_set_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/sets/0042update_set_0')
-rwxr-xr-xtests/shell/testcases/sets/0042update_set_021
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0042update_set_0 b/tests/shell/testcases/sets/0042update_set_0
new file mode 100755
index 0000000..a8e9e05
--- /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; }