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

set -e

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
echo "E: allowing jump loop to unexisting chain"