diff options
Diffstat (limited to 'tests/shell/testcases/transactions/0021rule_0')
-rwxr-xr-x | tests/shell/testcases/transactions/0021rule_0 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/shell/testcases/transactions/0021rule_0 b/tests/shell/testcases/transactions/0021rule_0 new file mode 100755 index 0000000..ee265ab --- /dev/null +++ b/tests/shell/testcases/transactions/0021rule_0 @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +RULESET="add table x +add chain x y +add rule x y ip saddr 1.1.1.1 counter +flush ruleset +add table x +add chain x y +add rule x y ip saddr 2.2.2.2 counter" + +$NFT -f - <<< "$RULESET" +if [ $? -ne 0 ] ; then + echo "E: unable to load good ruleset" >&2 + exit 1 +fi |