summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/netdev_chain_autoremove
blob: 21f3ad2966cbecdb57e525071a502a357f643195 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

set -e

# Test auto-removal of chain hook on netns removal
unshare -n bash -e -c "ip link add br0 type bridge; \
 $NFT add table netdev test; \
 $NFT add chain netdev test ingress { type filter hook ingress device \"br0\" priority 0\; policy drop\; } ; \
"