diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-09 12:18:20 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-09 12:18:20 +0200 |
commit | 2efbdf7b8fcf79f3fa8a6471d2eca00df0c91108 (patch) | |
tree | a7020e985b188bd249202594a0ed8cf94f1d829c /tests/py/ip | |
parent | 71624f25f22b1d750bb532ced75e080b4123fb56 (diff) |
tests: py: allow to specify sets with a timeout
Not usable yet, as the set timeout netlink output isn't captured so far,
but it adds groundwork to add this as a follow-up.
Set definition syntax changes a little, if you want to
add multiple elements they now have to be separated by "," just
like in nftables.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip')
-rw-r--r-- | tests/py/ip/sets.t | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/py/ip/sets.t b/tests/py/ip/sets.t index 658579aa..7b7e0722 100644 --- a/tests/py/ip/sets.t +++ b/tests/py/ip/sets.t @@ -14,19 +14,19 @@ ?set1 192.168.3.4;ok ?set1 192.168.3.4;ok -?set1 192.168.3.5 192.168.3.6;ok -?set1 192.168.3.5 192.168.3.6;ok -?set1 192.168.3.8 192.168.3.9;ok -?set1 192.168.3.10 192.168.3.11;ok +?set1 192.168.3.5, 192.168.3.6;ok +?set1 192.168.3.5, 192.168.3.6;ok +?set1 192.168.3.8, 192.168.3.9;ok +?set1 192.168.3.10, 192.168.3.11;ok ?set1 1234:1234:1234:1234:1234:1234:1234:1234;fail ?set2 192.168.3.4;fail !set2 type ipv4_addr;ok ?set2 192.168.3.4;ok -?set2 192.168.3.5 192.168.3.6;ok -?set2 192.168.3.5 192.168.3.6;ok -?set2 192.168.3.8 192.168.3.9;ok -?set2 192.168.3.10 192.168.3.11;ok +?set2 192.168.3.5, 192.168.3.6;ok +?set2 192.168.3.5, 192.168.3.6;ok +?set2 192.168.3.8, 192.168.3.9;ok +?set2 192.168.3.10, 192.168.3.11;ok ip saddr @set1 drop;ok ip saddr != @set1 drop;ok |