summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0009comments_timeout_0
blob: 4e3f80c617d89d4d456927a2ce3e9ebd73aa2d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# Test that comments are added to set elements in timemout sets.

$NFT flush ruleset
$NFT add table t
$NFT add set t s {type ipv4_addr \; flags timeout \;}
$NFT add element t s { 1.1.1.1 comment "test" }
if ! $NFT list ruleset | grep test >/dev/null ; then
	echo "E: missing comment in set element" >&2
	exit 1
fi