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

family=netdev
	hook=ingress
		for prioname in raw mangle dstnat security srcnat
		do
			$NFT add table $family x || exit 1
			$NFT add chain $family x y "{ type filter hook $hook device lo priority $prioname; }" &> /dev/null
			if (($? == 0))
			then
				echo "E: $prioname should not be a valid priority name for netdev family chains." >&2
				exit 1
			fi
		done
exit 0