summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0010variable_0
blob: 69c80c79ae597c4bd723fe776e276d620ee1c569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e

RULESET="define whitelist_v4 = { 1.1.1.1 }

table inet filter {
	set whitelist_v4 { type ipv4_addr; }
}
add element inet filter whitelist_v4 \$whitelist_v4
"

$NFT -f - <<< "$RULESET"