summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0059set_update_multistmt_0
blob: 2aeba2c5d227949ad44783e61845a605c55861d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_set_with_two_expressions)

RULESET="table x {
	set y {
		type ipv4_addr
		size 65535
		flags dynamic,timeout
		timeout 1h
	}
	chain z {
		type filter hook output priority 0;
		update @y { ip daddr limit rate 1/second counter }
	}
}"

set -e
$NFT -f - <<< $RULESET