summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/netdev_chain_dormant_autoremove
blob: 3093ce25319cf4c5533524ca711ab847b9b96471 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_netdev_chain_multidevice)

set -e

ip link add dummy0 type dummy
ip link add dummy1 type dummy
$NFT add table netdev test { flags dormant\; }
$NFT add chain netdev test ingress { type filter hook ingress devices = { "dummy0", "dummy1" } priority 0\; policy drop\; }
ip link del dummy0