summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/sets/0027ipv6_maps_ipv4_0')
-rwxr-xr-xtests/shell/testcases/sets/0027ipv6_maps_ipv4_014
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0 b/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
index 7ac271a0..846e3226 100755
--- a/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
+++ b/tests/shell/testcases/sets/0027ipv6_maps_ipv4_0
@@ -4,15 +4,7 @@
set -e
-tmpfile=$(mktemp)
-if [ ! -w $tmpfile ] ; then
- echo "Failed to create tmp file" >&2
- exit 0
-fi
-
-trap "rm -rf $tmpfile" EXIT # cleanup if aborted
-
-echo "
+RULESET="
table inet t {
set s {
type ipv6_addr
@@ -20,6 +12,6 @@ table inet t {
elements = { ::ffff:0.0.0.0/96 }
}
}
-" > $tmpfile
+"
-$NFT -f $tmpfile
+$NFT -f - <<< $RULESET