diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-04-24 20:43:58 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-04-25 23:22:29 +0200 |
commit | f09171e077f8a9642593e3807e5ca22828befb08 (patch) | |
tree | e50a43045312714a2e5d179c1bc94c8abb059edd /tests/shell/testcases/chains | |
parent | 96a22e33dd26b01a6711412508d28d8cabd66e87 (diff) |
tests: shell: combine dormant flag with netdevice removal
Exercise table is dormant and netdevice is gone combination.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/chains')
-rwxr-xr-x | tests/shell/testcases/chains/netdev_chain_dormant_autoremove | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/shell/testcases/chains/netdev_chain_dormant_autoremove b/tests/shell/testcases/chains/netdev_chain_dormant_autoremove new file mode 100755 index 00000000..0a684e56 --- /dev/null +++ b/tests/shell/testcases/chains/netdev_chain_dormant_autoremove @@ -0,0 +1,9 @@ +#!/bin/bash + +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 |