]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: CLUSTERIP: add tests
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 28 Mar 2018 14:19:27 +0000 (16:19 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 28 Mar 2018 14:22:16 +0000 (16:22 +0200)
Add a few tests to catch regressions.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libipt_CLUSTERIP.t [new file with mode: 0644]

diff --git a/extensions/libipt_CLUSTERIP.t b/extensions/libipt_CLUSTERIP.t
new file mode 100644 (file)
index 0000000..8434d9a
--- /dev/null
@@ -0,0 +1,3 @@
+:INPUT
+-d 10.31.3.236/32 -i lo -j CLUSTERIP --new --hashmode sourceip --clustermac 01:AA:7B:47:F7:D7 --total-nodes 2 --local-node 0 --hash-init 1;=;OK
+-d 10.31.3.236/32 -i lo -j CLUSTERIP --new --hashmode sourceip --clustermac 01:AA:7B:47:F7:D7 --total-nodes 2 --local-node 1 --hash-init 1;=;OK