summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/numgen.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip/numgen.t')
-rw-r--r--tests/py/ip/numgen.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/py/ip/numgen.t b/tests/py/ip/numgen.t
new file mode 100644
index 00000000..9ce0c714
--- /dev/null
+++ b/tests/py/ip/numgen.t
@@ -0,0 +1,6 @@
+:pre;type nat hook prerouting priority 0
+*ip;test-ip4;pre
+
+ct mark set numgen inc mod 2;ok
+dnat to numgen inc mod 2 map { 0 : 192.168.10.100, 1 : 192.168.20.200 };ok
+dnat to numgen inc mod 10 map { 0-5 : 192.168.10.100, 6-9 : 192.168.20.200};ok