summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0014rename_1
blob: e29e78891a05adb5779d45a9dc51e302d7383ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e

$NFT add table t
$NFT add chain t c1
$NFT add chain t c2
# kernel should return EEXIST
$NFT rename chain t c1 c2

if [ $? -eq 0 ] ; then
	echo "E: Renamed with existing chain" >&2
	exit 0
fi