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

# This test netfilter bug #1090
# https://bugzilla.netfilter.org/show_bug.cgi?id=1090

$NFT add table t
$NFT add set t s {type ipv4_addr \; flags interval \;}
$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