Debian Codegraph @

tests/shell/testcases/maps/anonymous_snat_map_1

raw
1 #!/bin/bash
2
3 # Variable containing anonymous map can be added to a snat rule
4
5 set -e
6
7 RULESET='
8 define m = {1.1.1.1 : 2.2.2.2}
9 table nat {
10 chain postrouting {
11 snat ip saddr map $m
12 }
13 }
14 '
15
16 $NFT -f - <<< "$RULESET"