summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0027prio_bridge_dstnat_1
blob: 52c73e6592d9f2638998445d30fd60e28fd48f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

family=bridge
	for hook in input forward output postrouting
	do
		prioname=dstnat
			$NFT add table $family x
			$NFT add chain $family x y "{ type filter hook $hook priority $prioname; }" &> /dev/null
			if (($? == 0))
			then
				echo "E: $prioname should not be a valid priority name for bridge $hook chains." >&2
				exit 1
			fi
	done
exit 0