diff options
Diffstat (limited to 'tests/shell/features/ifname_based_hooks.sh')
-rwxr-xr-x | tests/shell/features/ifname_based_hooks.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/shell/features/ifname_based_hooks.sh b/tests/shell/features/ifname_based_hooks.sh new file mode 100755 index 00000000..1f6af531 --- /dev/null +++ b/tests/shell/features/ifname_based_hooks.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# check if adding a netdev-family chain hooking into a non-existent device is +# accepted or not + +RULESET="table netdev t { + chain c { + type filter hook ingress priority 0 + devices = { foobar123 } + } +}" +unshare -n $NFT -f - <<< "$RULESET" |