]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: Adjust to ifname-based hooks
authorPhil Sutter <phil@nwl.cc>
Tue, 6 May 2025 22:06:20 +0000 (00:06 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 12 Jun 2025 20:55:55 +0000 (22:55 +0200)
commitf27e5abd81f29d6429e2749a6adf02a25185e206
treef3adfc74e7c24d606397bf8e27d35e4eb07bab40
parentb5f43dfc8b28989290a16818f00ca73c6cd8ff65
tests: shell: Adjust to ifname-based hooks

Interface specs won't disappear anymore upon device removal. Drop them
manually if kernel has ifname-based hooks.

Skip transactions/0050rule_1 if kernel has name-based hooks: The test
relies upon the ruleset being rejected for non-existent interfaces,
which obviously won't happen then.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/features/ifname_based_hooks.sh [new file with mode: 0755]
tests/shell/testcases/chains/netdev_chain_dormant_autoremove
tests/shell/testcases/flowtable/0012flowtable_variable_0
tests/shell/testcases/listing/0020flowtable_0
tests/shell/testcases/transactions/0050rule_1