summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0008create_verdict_map_0
blob: 1188e977c96ed952677190e176799de82b6e3b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

RULESET="
table ip t {
	map sourcemap {
		type ipv4_addr : verdict;
	}
	chain postrouting {
		ip saddr vmap @sourcemap accept
	}
}
add chain t c
add element t sourcemap { 100.123.10.2 : jump c }
"

set -e
$NFT -f - <<< $RULESET