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

# NFT_TEST_REQUIRES(NFT_TEST_HAVE_set_expr)

set -e

EXPECTED="table ip x {
          set y {
                  typeof ip saddr
                  counter
                  elements = { 192.168.10.35, 192.168.10.101, 192.168.10.135 }
          }

          chain z {
                  type filter hook output priority filter; policy accept;
                  ip daddr @y
          }
}"

$NFT -f - <<< "$EXPECTED"