summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions/0013chain_0
blob: 383e834771aa369b2d4135214b6ad2571a6bf562 (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