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

RULESET="add table x
add set x y { type ipv4_addr; size 128; timeout 30s; flags dynamic; }
add chain x test
add rule x test set update ip saddr timeout 1d2h3m4s10ms @y
add rule x test set update ip daddr timeout 100ms @y"

set -e
$NFT -f - <<< "$RULESET"
$NFT list chain x test | grep -q 'update @y { ip saddr timeout 1d2h3m4s10ms }'
$NFT list chain x test | grep -q 'update @y { ip daddr timeout 100ms }'