summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions/0022rule_1
blob: 07be53f2bfbe13ae4d5dc2315a469721d1c89dd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

RULESET="add table x
add chain x y
delete chain x y
add rule x y jump y"

# kernel must return ENOENT
$NFT -f - <<< "$RULESET" 2>/dev/null || exit 0
echo "E: allowing jump loop to unexisting chain"
exit 1