summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0053echo_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/sets/0053echo_0')
-rwxr-xr-xtests/shell/testcases/sets/0053echo_016
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0053echo_0 b/tests/shell/testcases/sets/0053echo_0
new file mode 100755
index 0000000..6bb03c2
--- /dev/null
+++ b/tests/shell/testcases/sets/0053echo_0
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -e
+
+EXPECTED="add table inet filter
+delete table inet filter
+
+table inet filter {
+ chain input {
+ type filter hook input priority filter; policy drop;
+ iifname { lo } ip saddr { 10.0.0.0/8 } ip daddr { 192.168.100.62 } tcp dport { 2001 } counter accept
+ }
+}
+"
+
+$NFT -ef - <<< "$EXPECTED"