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

EXPECTED="table inet t {
	set y {
		typeof ip daddr . @ih,32,32
		elements = { 1.1.1.1 . 0x14, 2.2.2.2 . 0x20}
	}

	chain y {
		ip saddr . @ih,32,32 { 1.1.1.1 . 0x14, 2.2.2.2 . 0x1e }
		ip daddr . @ih,32,32 @y
	}
}"

set -e
$NFT -f - <<< $EXPECTED