Debian Codegraph @

tests/shell/testcases/transactions/0012chain_0

raw
1 #!/bin/bash
2
3 set -e
4
5 RULESET="add table x
6 add chain x y
7 flush ruleset
8 add table x
9 add chain x y { type filter hook input priority 0; }
10 add chain x y { policy drop; }
11 flush ruleset
12 add table w
13 add chain w y { type filter hook output priority 0; }"
14
15 $NFT -f - <<< "$RULESET"
16 if [ $? -ne 0 ] ; then
17 echo "E: unable to load good ruleset" >&2
18 exit 1
19 fi