diff options
Diffstat (limited to 'tests/shell/testcases/transactions/0013chain_0')
-rwxr-xr-x | tests/shell/testcases/transactions/0013chain_0 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/shell/testcases/transactions/0013chain_0 b/tests/shell/testcases/transactions/0013chain_0 new file mode 100755 index 0000000..2756dd6 --- /dev/null +++ b/tests/shell/testcases/transactions/0013chain_0 @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +RULESET="add table x +add chain x y +delete chain x y +delete table x +add table x +add chain x y { type filter hook input priority 0; } +add chain x y { policy drop; } +flush ruleset +add table w +add chain w y { type filter hook output priority 0; }" + +$NFT -f - <<< "$RULESET" +if [ $? -ne 0 ] ; then + echo "E: unable to load good ruleset" >&2 + exit 1 +fi |