summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/0012map_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/maps/0012map_0')
-rwxr-xr-xtests/shell/testcases/maps/0012map_017
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/shell/testcases/maps/0012map_0 b/tests/shell/testcases/maps/0012map_0
new file mode 100755
index 00000000..dd93c482
--- /dev/null
+++ b/tests/shell/testcases/maps/0012map_0
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+
+EXPECTED="define interfaces = { eth0, eth1 }
+
+table ip x {
+ map z {
+ type ifname : verdict
+ elements = { \$interfaces : drop, lo : accept }
+ }
+ chain y {
+ iifname vmap { lo : accept, \$interfaces : drop }
+ }
+}"
+
+$NFT -f - <<< "$EXPECTED"