summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0015defines_1
blob: 489c65b5cffe40402697e6b749342b2ead6e30ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Tests recursive definition of a variable.

set -e

RULESET="
define var1 = \$var1

table ip t {
	chain c {
		iif \$var1
	}
}"

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