summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions/0013chain_0
blob: 2756dd6084deea9e52049dd9d3f88ae8ffb1e061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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