summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0025empty_dynset_0
blob: 10c5cc1b700b93b2c16f0012a2b8ed1bcec9d48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

RULESET="table ip foo {
	        set inflows {
                type ipv4_addr . inet_service . ifname . ipv4_addr . inet_service
                flags dynamic
                elements = { 10.1.0.3 . 39466 . \"veth1\" . 10.3.0.99 . 5201 counter packets 0 bytes 0 }
        }

        set inflows6 {
                type ipv6_addr . inet_service . ifname . ipv6_addr . inet_service
                flags dynamic
        }

        set inflows_ratelimit {
                type ipv4_addr . inet_service . ifname . ipv4_addr . inet_service
                flags dynamic
                elements = { 10.1.0.3 . 39466 . \"veth1\" . 10.3.0.99 . 5201 limit rate 1/second counter packets 0 bytes 0 }
        }
}"

$NFT -f - <<< "$RULESET"