summaryrefslogtreecommitdiffstats
path: root/tests/shell/features/ifname_based_hooks.sh
blob: e1fd6f03522008b5db761945f4c122ce47fa837e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# check if netdev chains survive without a single device

unshare -n bash -c "ip link add d0 type dummy; \
	$NFT \"table netdev t { \
		chain c { \
			type filter hook ingress devices = { d0 } priority 0;\
		}; \
	}\"; \
	ip link del d0; \
	$NFT list chain netdev t c"