commit 2da0db89fc626b5928b57cb92f2285678a8295f0
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Wed Jun 11 08:52:06 2014 +0200
Adding TCPConnection test for team driver
This patch adds TCPConnection test recipes for all team driver modes.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
recipes/team/recipex_ab_005.xml | 24 +++++++++
recipes/team/recipex_bcast_005.xml | 22 ++++++++
recipes/team/recipex_lacp_005.xml | 22 ++++++++
recipes/team/recipex_lacp_act_005.xml | 22 ++++++++
recipes/team/recipex_lb_005.xml | 22 ++++++++
recipes/team/recipex_lb_act_005.xml | 22 ++++++++
recipes/team/recipex_rr_005.xml | 22 ++++++++
recipes/team/tasks/sequence_tcp_connections.xml | 59 +++++++++++++++++++++++
8 files changed, 215 insertions(+), 0 deletions(-)
---
diff --git a/recipes/team/recipex_ab_005.xml b/recipes/team/recipex_ab_005.xml
new file mode 100644
index 0000000..0a7e4e3
--- /dev/null
+++ b/recipes/team/recipex_ab_005.xml
@@ -0,0 +1,24 @@
+<lnstrecipe
xmlns:xi="http://www.w3.org/2003/XInclude">
+ <network>
+ <define>
+ <alias name="testip" value="192.168.111.1/24"/>
+ <alias name="testip6" value="fe01::1/64"/>
+ </define>
+ <host id="1">
+ <params/>
+ <xi:include href="interfaces/interfaces-team_ab.xml"/>
+ </host>
+ <define>
+ <alias name="testip" value="192.168.111.2/24"/>
+ <alias name="testip6" value="fe01::2/64"/>
+ </define>
+ <host id="2">
+ <params/>
+ <xi:include href="interfaces/interfaces-simple.xml"/>
+ </host>
+ </network>
+ <task>
+ <ctl_wait seconds="10"/>
+ </task>
+ <xi:include href="tasks/sequence_tcp_connections.xml"/>
+</lnstrecipe>
diff --git a/recipes/team/recipex_bcast_005.xml b/recipes/team/recipex_bcast_005.xml
new file mode 100644
index 0000000..a208cc2
--- /dev/null
+++ b/recipes/team/recipex_bcast_005.xml
@@ -0,0 +1,22 @@
+<lnstrecipe
xmlns:xi="http://www.w3.org/2003/XInclude">
+ <network>
+ <define>
+ <alias name="testip" value="192.168.111.1/24"/>
+ <alias name="testip6" value="fe01::1/64"/>
+ </define>
+ <host id="1">
+ <xi:include href="interfaces/interfaces-team_bcast.xml"/>
+ </host>
+ <define>
+ <alias name="testip" value="192.168.111.2/24"/>
+ <alias name="testip6" value="fe01::2/64"/>
+ </define>
+ <host id="2">
+ <xi:include href="interfaces/interfaces-simple.xml"/>
+ </host>
+ </network>
+ <task>
+ <ctl_wait seconds="10"/>
+ </task>
+ <xi:include href="tasks/sequence_tcp_connections.xml"/>
+</lnstrecipe>
diff --git a/recipes/team/recipex_lacp_005.xml b/recipes/team/recipex_lacp_005.xml
new file mode 100644
index 0000000..aa30ae0
--- /dev/null
+++ b/recipes/team/recipex_lacp_005.xml
@@ -0,0 +1,22 @@
+<lnstrecipe
xmlns:xi="http://www.w3.org/2003/XInclude">
+ <network>
+ <define>
+ <alias name="testip" value="192.168.111.1/24"/>
+ <alias name="testip6" value="fe01::1/64"/>
+ </define>
+ <host id="1">
+ <xi:include href="interfaces/interfaces-team_lacp.xml"/>
+ </host>
+ <define>
+ <alias name="testip" value="192.168.111.2/24"/>
+ <alias name="testip6" value="fe01::2/64"/>
+ </define>
+ <host id="2">
+ <xi:include href="interfaces/interfaces-simple.xml"/>
+ </host>
+ </network>
+ <task>
+ <ctl_wait seconds="30"/>
+ </task>
+ <xi:include href="tasks/sequence_tcp_connections.xml"/>
+</lnstrecipe>
diff --git a/recipes/team/recipex_lacp_act_005.xml
b/recipes/team/recipex_lacp_act_005.xml
new file mode 100644
index 0000000..48bb8b8
--- /dev/null
+++ b/recipes/team/recipex_lacp_act_005.xml
@@ -0,0 +1,22 @@
+<lnstrecipe
xmlns:xi="http://www.w3.org/2003/XInclude">
+ <network>
+ <define>
+ <alias name="testip" value="192.168.111.1/24"/>
+ <alias name="testip6" value="fe01::1/64"/>
+ </define>
+ <host id="1">
+ <xi:include href="interfaces/interfaces-team_lacp_act.xml"/>
+ </host>
+ <define>
+ <alias name="testip" value="192.168.111.2/24"/>
+ <alias name="testip6" value="fe01::2/64"/>
+ </define>
+ <host id="2">
+ <xi:include href="interfaces/interfaces-simple.xml"/>
+ </host>
+ </network>
+ <task>
+ <ctl_wait seconds="30"/>
+ </task>
+ <xi:include href="tasks/sequence_tcp_connections.xml"/>
+</lnstrecipe>
diff --git a/recipes/team/recipex_lb_005.xml b/recipes/team/recipex_lb_005.xml
new file mode 100644
index 0000000..24081a6
--- /dev/null
+++ b/recipes/team/recipex_lb_005.xml
@@ -0,0 +1,22 @@
+<lnstrecipe
xmlns:xi="http://www.w3.org/2003/XInclude">
+ <network>
+ <define>
+ <alias name="testip" value="192.168.111.1/24"/>
+ <alias name="testip6" value="fe01::1/64"/>
+ </define>
+ <host id="1">
+ <xi:include href="interfaces/interfaces-team_lb.xml"/>
+ </host>
+ <define>
+ <alias name="testip" value="192.168.111.2/24"/>
+ <alias name="testip6" value="fe01::2/64"/>
+ </define>
+ <host id="2">
+ <xi:include href="interfaces/interfaces-simple.xml"/>
+ </host>
+ </network>
+ <task>
+ <ctl_wait seconds="30"/>
+ </task>
+ <xi:include href="tasks/sequence_tcp_connections.xml"/>
+</lnstrecipe>
diff --git a/recipes/team/recipex_lb_act_005.xml b/recipes/team/recipex_lb_act_005.xml
new file mode 100644
index 0000000..f43e2ff
--- /dev/null
+++ b/recipes/team/recipex_lb_act_005.xml
@@ -0,0 +1,22 @@
+<lnstrecipe
xmlns:xi="http://www.w3.org/2003/XInclude">
+ <network>
+ <define>
+ <alias name="testip" value="192.168.111.1/24"/>
+ <alias name="testip6" value="fe01::1/64"/>
+ </define>
+ <host id="1">
+ <xi:include href="interfaces/interfaces-team_lb_act.xml"/>
+ </host>
+ <define>
+ <alias name="testip" value="192.168.111.2/24"/>
+ <alias name="testip6" value="fe01::2/64"/>
+ </define>
+ <host id="2">
+ <xi:include href="interfaces/interfaces-simple.xml"/>
+ </host>
+ </network>
+ <task>
+ <ctl_wait seconds="30"/>
+ </task>
+ <xi:include href="tasks/sequence_tcp_connections.xml"/>
+</lnstrecipe>
diff --git a/recipes/team/recipex_rr_005.xml b/recipes/team/recipex_rr_005.xml
new file mode 100644
index 0000000..4141e0f
--- /dev/null
+++ b/recipes/team/recipex_rr_005.xml
@@ -0,0 +1,22 @@
+<lnstrecipe
xmlns:xi="http://www.w3.org/2003/XInclude">
+ <network>
+ <define>
+ <alias name="testip" value="192.168.111.1/24"/>
+ <alias name="testip6" value="fe01::1/64"/>
+ </define>
+ <host id="1">
+ <xi:include href="interfaces/interfaces-team_rr.xml"/>
+ </host>
+ <define>
+ <alias name="testip" value="192.168.111.2/24"/>
+ <alias name="testip6" value="fe01::2/64"/>
+ </define>
+ <host id="2">
+ <xi:include href="interfaces/interfaces-simple.xml"/>
+ </host>
+ </network>
+ <task>
+ <ctl_wait seconds="10"/>
+ </task>
+ <xi:include href="tasks/sequence_tcp_connections.xml"/>
+</lnstrecipe>
diff --git a/recipes/team/tasks/sequence_tcp_connections.xml
b/recipes/team/tasks/sequence_tcp_connections.xml
new file mode 100644
index 0000000..d48d7f9
--- /dev/null
+++ b/recipes/team/tasks/sequence_tcp_connections.xml
@@ -0,0 +1,59 @@
+<task>
+ <define>
+ <alias name="my_range" value="10000-10050" />
+ </define>
+
+ <define>
+ <alias name="debug" value="no"/>
+ </define>
+
+ <run module="TCPConnection" host="2"
bg_id="server">
+ <options>
+ <option name="mode" value="server"/>
+ <option name="address" value="{ip(2,testiface)}"/>
+ <option name="portrange" value="{$my_range}"/>
+ <option name="continuous" value="yes"/>
+ <option name="debug" value="{$debug}"/>
+ </options>
+ </run>
+ <ctl_wait seconds="3"/>
+ <run module="TCPConnection" host="1"
bg_id="client">
+ <options>
+ <option name="mode" value="client"/>
+ <option name="address" value="{ip(2,testiface)}"/>
+ <option name="portrange" value="{$my_range}"/>
+ <option name="continuous" value="yes"/>
+ <option name="debug" value="{$debug}"/>
+ </options>
+ </run>
+ <ctl_wait seconds="15"/>
+ <intr host="1" bg_id="client"/>
+ <intr host="2" bg_id="server"/>
+
+ <!-- ipv6 -->
+
+ <run module="TCPConnection" host="2"
bg_id="server6">
+ <options>
+ <option name="mode" value="server"/>
+ <option name="address"
value="{ip(2,testiface,1)}"/>
+ <option name="portrange" value="{$my_range}"/>
+ <option name="continuous" value="yes"/>
+ <option name="ipv6" value="yes"/>
+ <option name="debug" value="{$debug}"/>
+ </options>
+ </run>
+ <ctl_wait seconds="3"/>
+ <run module="TCPConnection" host="1"
bg_id="client6">
+ <options>
+ <option name="mode" value="client"/>
+ <option name="address"
value="{ip(2,testiface,1)}"/>
+ <option name="portrange" value="{$my_range}"/>
+ <option name="continuous" value="yes"/>
+ <option name="ipv6" value="yes"/>
+ <option name="debug" value="{$debug}"/>
+ </options>
+ </run>
+ <ctl_wait seconds="15"/>
+ <intr host="1" bg_id="client6"/>
+ <intr host="2" bg_id="server6"/>
+</task>