summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions/0020rule_0
blob: f8d2d377fbf9497d8b7ac9fe9d9bd3c29db179cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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"

$NFT -f - <<< "$RULESET"
if [ $? -ne 0 ] ; then
        echo "E: unable to load good ruleset" >&2
        exit 1
fi