summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0063set_catchall_0
blob: edd015d09b21d3e0af8e1ace02d465b6e63555cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_catchall_element)

set -e

RULESET="table ip x {
	set y {
		type ipv4_addr
		counter
		elements = { 1.1.1.1, * }
	}
	set z {
		type ipv4_addr
		flags interval
		counter
		elements = { 1.1.1.0/24 , * }
	}
}"

$NFT -f - <<< $RULESET
$NFT delete element x y { \* }
$NFT add element x y { \* }