From 3deffe8040840ba215e744e0699a8ab3653aac66 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 27 Apr 2016 14:46:52 +0200 Subject: tests/py: add interval tests Add some initial tests to cover dynamic interval sets. Signed-off-by: Pablo Neira Ayuso --- tests/py/ip/sets.t | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/py/ip') diff --git a/tests/py/ip/sets.t b/tests/py/ip/sets.t index 2b4e7e1b..0e2b1935 100644 --- a/tests/py/ip/sets.t +++ b/tests/py/ip/sets.t @@ -31,3 +31,15 @@ ip saddr @set1 drop;ok ip saddr @set2 drop;ok ip saddr @set33 drop;fail + +!set3 type ipv4_addr flags interval;ok +?set3 192.168.0.0/16;ok +?set3 172.16.0.0/12;ok +?set3 10.0.0.0/8;ok + +!set4 type ipv4_addr flags interval;ok +?set4 192.168.1.0/24;ok +?set4 192.168.0.0/24;ok +?set4 192.168.2.0/24;ok +?set4 192.168.1.1;fail +?set4 192.168.3.0/24;ok -- cgit v1.2.3