From 914d089d3721b9812563704823cbae67973e038d Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Fri, 11 Dec 2015 11:10:24 +0100 Subject: tests/shell: add maps tests cases Let's add some tests cases for maps. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/maps/anonymous_snat_map_0 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 tests/shell/testcases/maps/anonymous_snat_map_0 (limited to 'tests/shell/testcases/maps/anonymous_snat_map_0') diff --git a/tests/shell/testcases/maps/anonymous_snat_map_0 b/tests/shell/testcases/maps/anonymous_snat_map_0 new file mode 100755 index 00000000..32aac8a3 --- /dev/null +++ b/tests/shell/testcases/maps/anonymous_snat_map_0 @@ -0,0 +1,8 @@ +#!/bin/bash + +# anonymous map can be added to a snat rule + +set -e +$NFT add table nat +$NFT add chain nat postrouting +$NFT add rule nat postrouting snat ip saddr map {1.1.1.1 : 2.2.2.2} -- cgit v1.2.3