summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optimizations/merge_stmts
blob: ec7a9dd6b5546b9eed245f8b135cae2dc95f490d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -e

RULESET="table ip x {
	chain y {
		ip daddr 192.168.0.1 counter accept comment "test1"
		ip daddr 192.168.0.2 counter accept comment "test2"
		ip daddr 192.168.0.3 counter accept comment "test3"
	}
}"

$NFT -o -f - <<< $RULESET