[lnst] Bunch of various recipes.
by Jiří Pírko
commit 466a4675a618dd2a5545147b62ae8e970d047f4e
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Tue Jan 17 16:53:05 2012 +0100
Bunch of various recipes.
.../bov-pktgen-sanitycheck.xml | 72 +++++++++++
.../vlan-iperf-tcp-udp-test1.xml | 129 ++++++++++++++++++++
.../rhel5/bond-tests/bond-iperf-test-mode0.xml | 84 +++++++++++++
.../rhel5/bond-tests/bond-iperf-test-mode1.xml | 84 +++++++++++++
.../rhel5/bond-tests/bond-iperf-test-mode5.xml | 84 +++++++++++++
.../rhel5/bond-tests/bond-netcat-iperf-test0.xml | 116 ++++++++++++++++++
.../rhel5/bond-tests/bond-netcat-iperf-test1.xml | 116 ++++++++++++++++++
.../rhel5/bond-tests/bond-netcat-iperf-test5.xml | 116 ++++++++++++++++++
.../rhel5/bond-tests/bond-sctp-test-mode0.xml | 75 +++++++++++
.../rhel5/bond-tests/bond-sctp-test-mode1.xml | 75 +++++++++++
.../rhel5/bond-tests/bond-sctp-test-mode5.xml | 75 +++++++++++
.../network-stack-tests/rhel5/rhel58-guest1.xml | 7 +
.../network-stack-tests/rhel5/rhel58-guest2.xml | 7 +
.../rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml | 106 ++++++++++++++++
.../rhel5/vlan-tests/vlan-sctp-test1.xml | 71 +++++++++++
.../bond-over-vlan/bov-pktgen-sanitycheck.xml | 77 ++++++++++++
.../rhel6/bond-tests/bond-iperf-test-mode0.xml | 84 +++++++++++++
.../rhel6/bond-tests/bond-iperf-test-mode1.xml | 84 +++++++++++++
.../rhel6/bond-tests/bond-iperf-test-mode5.xml | 84 +++++++++++++
.../rhel6/bond-tests/bond-netcat-iperf-test0.xml | 117 ++++++++++++++++++
.../rhel6/bond-tests/bond-netcat-iperf-test1.xml | 97 +++++++++++++++
.../rhel6/bond-tests/bond-netcat-iperf-test5.xml | 97 +++++++++++++++
.../rhel6/bond-tests/bond-sctp-test-mode0.xml | 75 +++++++++++
.../rhel6/bond-tests/bond-sctp-test-mode1.xml | 75 +++++++++++
.../rhel6/bond-tests/bond-sctp-test-mode5.xml | 75 +++++++++++
.../network-stack-tests/rhel6/rhel62-guest1.xml | 5 +
.../network-stack-tests/rhel6/rhel62-guest2.xml | 5 +
.../rhel6/vlan-tests/vlan-sctp-test1.xml | 71 +++++++++++
.../rhel6/vlan-tests/vlan-test1.xml | 104 ++++++++++++++++
29 files changed, 2267 insertions(+), 0 deletions(-)
---
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml
new file mode 100644
index 0000000..562a07d
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml
@@ -0,0 +1,72 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ <slave id="2" />
+ </slaves>
+ </netdevice>
+
+ <netdevice id="4" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="3"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth">
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- do a simple pktgen traffic ... -->
+ <command machine_id="1" type="test" value="PktCounter" bg_id="1">
+ <options>
+ <option name="input_netdev_name" type="recipe_eval" value="['machines'][1]['netconfig'][4]['name']"/>
+ <option name="proto" value="udp"/>
+ <option name="dport" value="9"/>
+ </options>
+ </command>
+
+ <command machine_id="2" type="test" value="PktgenTx" timeout="600">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]"/>
+ <option name="hwaddr" type="recipe_eval" value="['machines'][1]['netconfig'][1]['hwaddr']"/>
+ <option name="netdev_name" type="recipe_eval" value="['machines'][2]['netconfig'][1]['name']"/>
+ <option name="vlan_tci" value="100" />
+ </options>
+ </command>
+
+ <command machine_id="1" type="intr" value="1"/>
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml
new file mode 100644
index 0000000..b8bd504
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml
@@ -0,0 +1,129 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ <slave id="2" />
+ </slaves>
+ </netdevice>
+
+ <netdevice id="4" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="3"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ <slave id="2" />
+ </slaves>
+ </netdevice>
+
+ <netdevice id="4" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="3"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][4]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic TCP/UDP stream tests ... -->
+
+ <command machine_id="2" type="exec" value="nc -l 10000 > /dev/null" bg_id="1" />
+ <command type="exec" value="sleep 3" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="120" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][4]['addresses'][0]" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="1" />
+
+ <command machine_id="2" type="exec" value="nc -u -l 10000 > /dev/null" bg_id="2" />
+ <command type="exec" value="sleep 3" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="120" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][4]['addresses'][0]" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="2" />
+
+<!-- TEST:3 start iperf tests ... -->
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="31">
+ <options>
+ <option name="role" value="server" />
+ <option name="bind" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]" />
+ <option name="install_dir" value="/root" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 5" />
+
+ <command machine_id="2" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]" />
+ <option name="duration" value="120" />
+ <option name="install_dir" value="/root" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="31" />
+
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml
new file mode 100644
index 0000000..b416af2
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml
new file mode 100644
index 0000000..788b4ab
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml
new file mode 100644
index 0000000..8e5f63b
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml
new file mode 100644
index 0000000..8b1950b
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml
@@ -0,0 +1,116 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="duration" value="600" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="3" />
+
+<!-- start a TCP stream in the same direction -->
+
+ <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="4" />
+
+<!-- kill background processes -->
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml
new file mode 100644
index 0000000..82ae29c
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml
@@ -0,0 +1,116 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="duration" value="600" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="3" />
+
+<!-- start a TCP stream in the same direction -->
+
+ <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="4" />
+
+<!-- kill background processes -->
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml
new file mode 100644
index 0000000..82ae29c
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml
@@ -0,0 +1,116 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="duration" value="600" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="3" />
+
+<!-- start a TCP stream in the same direction -->
+
+ <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="4" />
+
+<!-- kill background processes -->
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml
new file mode 100644
index 0000000..9ec83ac
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml
new file mode 100644
index 0000000..6f01eed
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml
new file mode 100644
index 0000000..36bcfcb
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml
new file mode 100644
index 0000000..e6ee46f
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml
@@ -0,0 +1,7 @@
+<netmachineconfig>
+ <info hostname="10.34.30.233" rootpass="redhat"/>
+ <netdevice type="eth" phys_id="1" hwaddr="52:54:00:AA:BB:C1"/>
+ <netdevice type="eth" phys_id="2" hwaddr="52:54:00:AA:BB:C2"/>
+ <netdevice type="eth" phys_id="3" hwaddr="52:54:00:CF:1F:A7"/>
+ <netdevice type="eth" phys_id="4" hwaddr="52:54:00:29:66:82"/>
+</netmachineconfig>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml
new file mode 100644
index 0000000..3a2db26
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml
@@ -0,0 +1,7 @@
+<netmachineconfig>
+ <info hostname="10.34.30.236" rootpass="redhat"/>
+ <netdevice type="eth" phys_id="1" hwaddr="52:54:00:aa:bb:d1"/>
+ <netdevice type="eth" phys_id="2" hwaddr="52:54:00:aa:bb:d2"/>
+ <netdevice type="eth" phys_id="3" hwaddr="52:54:00:30:d1:a8"/>
+ <netdevice type="eth" phys_id="4" hwaddr="52:54:00:b7:fa:36"/>
+</netmachineconfig>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml
new file mode 100644
index 0000000..7cd7a57
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml
@@ -0,0 +1,106 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic TCP/UDP stream tests ... -->
+
+ <command machine_id="2" type="exec" value="nc -l 10000 > /dev/null" bg_id="1" />
+ <command type="exec" value="sleep 3" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="600" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="1" />
+
+ <command machine_id="2" type="exec" value="nc -u -l 10000 > /dev/null" bg_id="2" />
+ <command type="exec" value="sleep 3" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="120" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="2" />
+
+<!-- TEST:3 start iperf tests ... -->
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="31">
+ <options>
+ <option name="role" value="server" />
+ <option name="bind" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]" />
+ <option name="install_dir" value="/root" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 5" />
+
+ <command machine_id="2" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]" />
+ <option name="duration" value="120" />
+ <option name="install_dir" value="/root" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="31" />
+
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml
new file mode 100644
index 0000000..7bf126c
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml
@@ -0,0 +1,71 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml
new file mode 100644
index 0000000..1bce1e8
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml
@@ -0,0 +1,77 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ <slave id="2" />
+ </slaves>
+ </netdevice>
+
+ <netdevice id="4" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="3"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- do a simple pktgen traffic ... -->
+ <command machine_id="1" type="test" value="PktCounter" bg_id="1">
+ <options>
+ <option name="input_netdev_name" type="recipe_eval" value="['machines'][1]['netconfig'][4]['name']"/>
+ <option name="proto" value="udp"/>
+ <option name="dport" value="9"/>
+ </options>
+ </command>
+
+ <command machine_id="2" type="test" value="PktgenTx" timeout="40">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]"/>
+ <option name="hwaddr" type="recipe_eval" value="['machines'][1]['netconfig'][1]['hwaddr']"/>
+ <option name="netdev_name" type="recipe_eval" value="['machines'][2]['netconfig'][2]['name']"/>
+ </options>
+ </command>
+
+ <command machine_id="1" type="intr" value="1"/>
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml
new file mode 100644
index 0000000..0baa10e
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml
new file mode 100644
index 0000000..2b9ece0
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml
new file mode 100644
index 0000000..9bb0497
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml
new file mode 100644
index 0000000..b3486d6
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml
@@ -0,0 +1,117 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="3" />
+
+<!-- start a TCP stream in the same direction -->
+
+ <command type="exec" machine_id="2" value="nc -l 1234" bg_id="4" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="4" />
+
+<!-- kill background processes -->
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml
new file mode 100644
index 0000000..3b0c9c7
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml
@@ -0,0 +1,97 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat" bg_id="4">
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ </command>
+
+ <command type="exec" value="sleep 60" />
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+ <command type="kill" machine_id="1" value="3" />
+ <command type="kill" machine_id="2" value="4" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml
new file mode 100644
index 0000000..3535138
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml
@@ -0,0 +1,97 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat" bg_id="4">
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ </command>
+
+ <command type="exec" value="sleep 60" />
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+ <command type="kill" machine_id="1" value="3" />
+ <command type="kill" machine_id="2" value="4" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml
new file mode 100644
index 0000000..f7a9002
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml
new file mode 100644
index 0000000..0810d66
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml
new file mode 100644
index 0000000..7528199
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml
new file mode 100644
index 0000000..b3d2638
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml
@@ -0,0 +1,5 @@
+<netmachineconfig>
+ <info hostname="10.34.30.180" rootpass="redhat"/>
+ <netdevice type="eth" phys_id="1" hwaddr="52:54:00:AB:CD:E1"/>
+ <netdevice type="eth" phys_id="2" hwaddr="52:54:00:AB:CD:E2"/>
+</netmachineconfig>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml
new file mode 100644
index 0000000..fca113a
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml
@@ -0,0 +1,5 @@
+<netmachineconfig>
+ <info hostname="10.34.30.181" rootpass="redhat"/>
+ <netdevice type="eth" phys_id="1" hwaddr="52:54:00:ab:cd:f1"/>
+ <netdevice type="eth" phys_id="2" hwaddr="52:54:00:ab:cd:f2"/>
+</netmachineconfig>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml
new file mode 100644
index 0000000..658a2a9
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml
@@ -0,0 +1,71 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml
new file mode 100644
index 0000000..f96a55d
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml
@@ -0,0 +1,104 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic TCP/UDP stream tests ... -->
+
+ <command machine_id="2" type="exec" value="nc -l 10000" bg_id="1" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="600" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="1" />
+
+ <command machine_id="2" type="exec" value="nc -u -l 10000" bg_id="2" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="600" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="2" />
+
+<!-- TEST:3 start iperf tests ... -->
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="31">
+ <options>
+ <option name="install_dir" value="/opt" />
+ <option name="role" value="server" />
+ <option name="bind" value="192.168.100.2" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 5" />
+
+ <command machine_id="2" type="test" value="Iperf">
+ <options>
+ <option name="install_dir" value="/opt" />
+ <option name="role" value="client" />
+ <option name="iperf_server" value="192.168.100.2" />
+ <option name="duration" value="600" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="31" />
+
+
+ </command_sequence>
+
+</nettestrecipe>
11 years, 10 months
[PATCH] Bunch of various recipes.
by Jan Tluka
---
.../bov-pktgen-sanitycheck.xml | 72 +++++++++++
.../vlan-iperf-tcp-udp-test1.xml | 129 ++++++++++++++++++++
.../rhel5/bond-tests/bond-iperf-test-mode0.xml | 84 +++++++++++++
.../rhel5/bond-tests/bond-iperf-test-mode1.xml | 84 +++++++++++++
.../rhel5/bond-tests/bond-iperf-test-mode5.xml | 84 +++++++++++++
.../rhel5/bond-tests/bond-netcat-iperf-test0.xml | 116 ++++++++++++++++++
.../rhel5/bond-tests/bond-netcat-iperf-test1.xml | 116 ++++++++++++++++++
.../rhel5/bond-tests/bond-netcat-iperf-test5.xml | 116 ++++++++++++++++++
.../rhel5/bond-tests/bond-sctp-test-mode0.xml | 75 +++++++++++
.../rhel5/bond-tests/bond-sctp-test-mode1.xml | 75 +++++++++++
.../rhel5/bond-tests/bond-sctp-test-mode5.xml | 75 +++++++++++
.../network-stack-tests/rhel5/rhel58-guest1.xml | 7 +
.../network-stack-tests/rhel5/rhel58-guest2.xml | 7 +
.../rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml | 106 ++++++++++++++++
.../rhel5/vlan-tests/vlan-sctp-test1.xml | 71 +++++++++++
.../bond-over-vlan/bov-pktgen-sanitycheck.xml | 77 ++++++++++++
.../rhel6/bond-tests/bond-iperf-test-mode0.xml | 84 +++++++++++++
.../rhel6/bond-tests/bond-iperf-test-mode1.xml | 84 +++++++++++++
.../rhel6/bond-tests/bond-iperf-test-mode5.xml | 84 +++++++++++++
.../rhel6/bond-tests/bond-netcat-iperf-test0.xml | 117 ++++++++++++++++++
.../rhel6/bond-tests/bond-netcat-iperf-test1.xml | 97 +++++++++++++++
.../rhel6/bond-tests/bond-netcat-iperf-test5.xml | 97 +++++++++++++++
.../rhel6/bond-tests/bond-sctp-test-mode0.xml | 75 +++++++++++
.../rhel6/bond-tests/bond-sctp-test-mode1.xml | 75 +++++++++++
.../rhel6/bond-tests/bond-sctp-test-mode5.xml | 75 +++++++++++
.../network-stack-tests/rhel6/rhel62-guest1.xml | 5 +
.../network-stack-tests/rhel6/rhel62-guest2.xml | 5 +
.../rhel6/vlan-tests/vlan-sctp-test1.xml | 71 +++++++++++
.../rhel6/vlan-tests/vlan-test1.xml | 104 ++++++++++++++++
29 files changed, 2267 insertions(+), 0 deletions(-)
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml
create mode 100644 example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml
new file mode 100644
index 0000000..562a07d
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/bov-pktgen-sanitycheck.xml
@@ -0,0 +1,72 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ <slave id="2" />
+ </slaves>
+ </netdevice>
+
+ <netdevice id="4" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="3"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth">
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- do a simple pktgen traffic ... -->
+ <command machine_id="1" type="test" value="PktCounter" bg_id="1">
+ <options>
+ <option name="input_netdev_name" type="recipe_eval" value="['machines'][1]['netconfig'][4]['name']"/>
+ <option name="proto" value="udp"/>
+ <option name="dport" value="9"/>
+ </options>
+ </command>
+
+ <command machine_id="2" type="test" value="PktgenTx" timeout="600">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]"/>
+ <option name="hwaddr" type="recipe_eval" value="['machines'][1]['netconfig'][1]['hwaddr']"/>
+ <option name="netdev_name" type="recipe_eval" value="['machines'][2]['netconfig'][1]['name']"/>
+ <option name="vlan_tci" value="100" />
+ </options>
+ </command>
+
+ <command machine_id="1" type="intr" value="1"/>
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml
new file mode 100644
index 0000000..b8bd504
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-over-vlan-tests/vlan-iperf-tcp-udp-test1.xml
@@ -0,0 +1,129 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ <slave id="2" />
+ </slaves>
+ </netdevice>
+
+ <netdevice id="4" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="3"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ <slave id="2" />
+ </slaves>
+ </netdevice>
+
+ <netdevice id="4" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="3"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][4]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic TCP/UDP stream tests ... -->
+
+ <command machine_id="2" type="exec" value="nc -l 10000 > /dev/null" bg_id="1" />
+ <command type="exec" value="sleep 3" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="120" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][4]['addresses'][0]" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="1" />
+
+ <command machine_id="2" type="exec" value="nc -u -l 10000 > /dev/null" bg_id="2" />
+ <command type="exec" value="sleep 3" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="120" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][4]['addresses'][0]" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="2" />
+
+<!-- TEST:3 start iperf tests ... -->
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="31">
+ <options>
+ <option name="role" value="server" />
+ <option name="bind" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]" />
+ <option name="install_dir" value="/root" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 5" />
+
+ <command machine_id="2" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]" />
+ <option name="duration" value="120" />
+ <option name="install_dir" value="/root" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="31" />
+
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml
new file mode 100644
index 0000000..b416af2
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode0.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml
new file mode 100644
index 0000000..788b4ab
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode1.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml
new file mode 100644
index 0000000..8e5f63b
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-iperf-test-mode5.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml
new file mode 100644
index 0000000..8b1950b
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test0.xml
@@ -0,0 +1,116 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="duration" value="600" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="3" />
+
+<!-- start a TCP stream in the same direction -->
+
+ <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="4" />
+
+<!-- kill background processes -->
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml
new file mode 100644
index 0000000..82ae29c
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test1.xml
@@ -0,0 +1,116 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="duration" value="600" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="3" />
+
+<!-- start a TCP stream in the same direction -->
+
+ <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="4" />
+
+<!-- kill background processes -->
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml
new file mode 100644
index 0000000..82ae29c
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-netcat-iperf-test5.xml
@@ -0,0 +1,116 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="duration" value="600" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234 > /dev/null" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="3" />
+
+<!-- start a TCP stream in the same direction -->
+
+ <command type="exec" machine_id="2" value="nc -l 1234 > /dev/null" bg_id="4" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="4" />
+
+<!-- kill background processes -->
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml
new file mode 100644
index 0000000..9ec83ac
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode0.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml
new file mode 100644
index 0000000..6f01eed
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode1.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml
new file mode 100644
index 0000000..36bcfcb
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/bond-tests/bond-sctp-test-mode5.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml
new file mode 100644
index 0000000..e6ee46f
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest1.xml
@@ -0,0 +1,7 @@
+<netmachineconfig>
+ <info hostname="10.34.30.233" rootpass="redhat"/>
+ <netdevice type="eth" phys_id="1" hwaddr="52:54:00:AA:BB:C1"/>
+ <netdevice type="eth" phys_id="2" hwaddr="52:54:00:AA:BB:C2"/>
+ <netdevice type="eth" phys_id="3" hwaddr="52:54:00:CF:1F:A7"/>
+ <netdevice type="eth" phys_id="4" hwaddr="52:54:00:29:66:82"/>
+</netmachineconfig>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml
new file mode 100644
index 0000000..3a2db26
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/rhel58-guest2.xml
@@ -0,0 +1,7 @@
+<netmachineconfig>
+ <info hostname="10.34.30.236" rootpass="redhat"/>
+ <netdevice type="eth" phys_id="1" hwaddr="52:54:00:aa:bb:d1"/>
+ <netdevice type="eth" phys_id="2" hwaddr="52:54:00:aa:bb:d2"/>
+ <netdevice type="eth" phys_id="3" hwaddr="52:54:00:30:d1:a8"/>
+ <netdevice type="eth" phys_id="4" hwaddr="52:54:00:b7:fa:36"/>
+</netmachineconfig>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml
new file mode 100644
index 0000000..7cd7a57
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-iperf-tcp-udp-test1.xml
@@ -0,0 +1,106 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic TCP/UDP stream tests ... -->
+
+ <command machine_id="2" type="exec" value="nc -l 10000 > /dev/null" bg_id="1" />
+ <command type="exec" value="sleep 3" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="600" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="1" />
+
+ <command machine_id="2" type="exec" value="nc -u -l 10000 > /dev/null" bg_id="2" />
+ <command type="exec" value="sleep 3" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="120" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="2" />
+
+<!-- TEST:3 start iperf tests ... -->
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="31">
+ <options>
+ <option name="role" value="server" />
+ <option name="bind" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]" />
+ <option name="install_dir" value="/root" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 5" />
+
+ <command machine_id="2" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]" />
+ <option name="duration" value="120" />
+ <option name="install_dir" value="/root" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="31" />
+
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml
new file mode 100644
index 0000000..7bf126c
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel5/vlan-tests/vlan-sctp-test1.xml
@@ -0,0 +1,71 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml
new file mode 100644
index 0000000..1bce1e8
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-over-vlan/bov-pktgen-sanitycheck.xml
@@ -0,0 +1,77 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ <slave id="2" />
+ </slaves>
+ </netdevice>
+
+ <netdevice id="4" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="3"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1" />
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- do a simple pktgen traffic ... -->
+ <command machine_id="1" type="test" value="PktCounter" bg_id="1">
+ <options>
+ <option name="input_netdev_name" type="recipe_eval" value="['machines'][1]['netconfig'][4]['name']"/>
+ <option name="proto" value="udp"/>
+ <option name="dport" value="9"/>
+ </options>
+ </command>
+
+ <command machine_id="2" type="test" value="PktgenTx" timeout="40">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][4]['addresses'][0]"/>
+ <option name="hwaddr" type="recipe_eval" value="['machines'][1]['netconfig'][1]['hwaddr']"/>
+ <option name="netdev_name" type="recipe_eval" value="['machines'][2]['netconfig'][2]['name']"/>
+ </options>
+ </command>
+
+ <command machine_id="1" type="intr" value="1"/>
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml
new file mode 100644
index 0000000..0baa10e
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode0.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml
new file mode 100644
index 0000000..2b9ece0
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode1.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml
new file mode 100644
index 0000000..9bb0497
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-iperf-test-mode5.xml
@@ -0,0 +1,84 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf">
+ <options>
+ <option name="role" value="client" />
+ <option name="duration" value="600"/>
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml
new file mode 100644
index 0000000..b3486d6
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test0.xml
@@ -0,0 +1,117 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="3" />
+
+<!-- start a TCP stream in the same direction -->
+
+ <command type="exec" machine_id="2" value="nc -l 1234" bg_id="4" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ <option name="duration" value="300" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="2" value="4" />
+
+<!-- kill background processes -->
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml
new file mode 100644
index 0000000..3b0c9c7
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test1.xml
@@ -0,0 +1,97 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat" bg_id="4">
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ </command>
+
+ <command type="exec" value="sleep 60" />
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+ <command type="kill" machine_id="1" value="3" />
+ <command type="kill" machine_id="2" value="4" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml
new file mode 100644
index 0000000..3535138
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-netcat-iperf-test5.xml
@@ -0,0 +1,97 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start iperf tests ... -->
+
+ <command machine_id="2" type="test" value="Iperf" bg_id="1">
+ <options>
+ <option name="role" value="server" />
+ <option name="install_dir" value="/root" />
+ <option name="bind" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="2">
+ <options>
+ <option name="role" value="client" />
+ <option name="install_dir" value="/root" />
+ <option name="iperf_server" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+
+<!-- start a TCP stream in opposite direction -->
+
+ <command type="exec" machine_id="1" value="nc -l 1234" bg_id="3" />
+ <command type="exec" value="sleep 1" />
+
+ <command machine_id="2" type="test" value="NetCat" bg_id="4">
+ <option name="addr" type="recipe_eval" value="['machines'][1]['netconfig'][3]['addresses'][0]"/>
+ <option name="port" value="1234" />
+ </command>
+
+ <command type="exec" value="sleep 60" />
+
+ <command type="kill" machine_id="1" value="2" />
+ <command type="kill" machine_id="2" value="1" />
+ <command type="kill" machine_id="1" value="3" />
+ <command type="kill" machine_id="2" value="4" />
+
+ </command_sequence>
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml
new file mode 100644
index 0000000..f7a9002
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode0.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="0" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml
new file mode 100644
index 0000000..0810d66
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode1.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="1" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml
new file mode 100644
index 0000000..7528199
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/bond-tests/bond-sctp-test-mode5.xml
@@ -0,0 +1,75 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="../rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="../rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="bond">
+ <options>
+ <option name="mode" value="5" />
+ <option name="miimon" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ <slave id="2"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml
new file mode 100644
index 0000000..b3d2638
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest1.xml
@@ -0,0 +1,5 @@
+<netmachineconfig>
+ <info hostname="10.34.30.180" rootpass="redhat"/>
+ <netdevice type="eth" phys_id="1" hwaddr="52:54:00:AB:CD:E1"/>
+ <netdevice type="eth" phys_id="2" hwaddr="52:54:00:AB:CD:E2"/>
+</netmachineconfig>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml
new file mode 100644
index 0000000..fca113a
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/rhel62-guest2.xml
@@ -0,0 +1,5 @@
+<netmachineconfig>
+ <info hostname="10.34.30.181" rootpass="redhat"/>
+ <netdevice type="eth" phys_id="1" hwaddr="52:54:00:ab:cd:f1"/>
+ <netdevice type="eth" phys_id="2" hwaddr="52:54:00:ab:cd:f2"/>
+</netmachineconfig>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml
new file mode 100644
index 0000000..658a2a9
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-sctp-test1.xml
@@ -0,0 +1,71 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="rhel58-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="rhel58-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic SCTP stream tests ... -->
+
+ <command machine_id="1" type="exec" value="sctp_test -H 192.168.100.2 -P 5679 -l" bg_id="1" dont_stop="true" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 1" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 2" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 3" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 4" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 5" />
+ <command machine_id="2" type="exec" value="sctp_test -H 192.168.100.3 -P 1235 -h 192.168.100.2 -p 5679 -s -x 50 -c 6" />
+
+ <command type="exec" value="sleep 3" />
+
+ <command machine_id="1" type="kill" value="1" />
+ </command_sequence>
+
+</nettestrecipe>
diff --git a/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml
new file mode 100644
index 0000000..f96a55d
--- /dev/null
+++ b/example_recipes/jtluka_test/network-stack-tests/rhel6/vlan-tests/vlan-test1.xml
@@ -0,0 +1,104 @@
+<nettestrecipe>
+
+ <machines>
+ <machine id="1">
+ <netmachineconfig source="rhel62-guest1.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.2/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+
+ <machine id="2">
+ <netmachineconfig source="rhel62-guest2.xml"/>
+ <netconfig>
+ <netdevice id="1" phys_id="1" type="eth"/>
+ <netdevice id="2" phys_id="2" type="eth"/>
+ <netdevice id="3" type="vlan">
+ <options>
+ <option name="vlan_tci" value="100" />
+ </options>
+ <slaves>
+ <slave id="1"/>
+ </slaves>
+ <addresses>
+ <address value="192.168.100.3/24" />
+ </addresses>
+ </netdevice>
+ </netconfig>
+ </machine>
+ </machines>
+
+
+ <command_sequence>
+
+<!-- just a ping check ... -->
+
+ <command machine_id="1" type="test" value="IcmpPing">
+ <options>
+ <option type="recipe_eval" name="addr" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="count" value="3"/>
+ </options>
+ </command>
+
+<!-- start basic TCP/UDP stream tests ... -->
+
+ <command machine_id="2" type="exec" value="nc -l 10000" bg_id="1" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="600" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="1" />
+
+ <command machine_id="2" type="exec" value="nc -u -l 10000" bg_id="2" />
+ <command machine_id="1" type="test" value="NetCat">
+ <options>
+ <option name="port" value="10000" />
+ <option name="duration" value="600" />
+ <option name="addr" type="recipe_eval" value="['machines'][2]['netconfig'][3]['addresses'][0]" />
+ <option name="stream" value="udp" />
+ </options>
+ </command>
+ <command type="kill" machine_id="2" value="2" />
+
+<!-- TEST:3 start iperf tests ... -->
+
+ <command machine_id="1" type="test" value="Iperf" bg_id="31">
+ <options>
+ <option name="install_dir" value="/opt" />
+ <option name="role" value="server" />
+ <option name="bind" value="192.168.100.2" />
+ </options>
+ </command>
+
+ <command type="exec" value="sleep 5" />
+
+ <command machine_id="2" type="test" value="Iperf">
+ <options>
+ <option name="install_dir" value="/opt" />
+ <option name="role" value="client" />
+ <option name="iperf_server" value="192.168.100.2" />
+ <option name="duration" value="600" />
+ </options>
+ </command>
+
+ <command type="kill" machine_id="1" value="31" />
+
+
+ </command_sequence>
+
+</nettestrecipe>
--
1.7.4.4
11 years, 10 months
[PATCH] Keep iperf server running unless duration option is set
by Jan Tluka
---
Tests/TestIperf.py | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/Tests/TestIperf.py b/Tests/TestIperf.py
index 8b84484..c65ed2d 100644
--- a/Tests/TestIperf.py
+++ b/Tests/TestIperf.py
@@ -13,7 +13,6 @@ from Common.ShellProcess import ShellProcess
import time
class TestIperf(TestGeneric):
-
def _install_iperf(self):
# by default dies on failure
logging.info("trace: _install_iperf")
@@ -43,18 +42,25 @@ class TestIperf(TestGeneric):
def run_server(self, cmd):
server = ShellProcess(cmd)
- time.sleep(float(self.duration))
- server.read_nonblocking()
- server.kill()
+
+ if not self._keep_server_running:
+ time.sleep(float(self.duration))
+ server.read_nonblocking()
+ server.kill()
+ else:
+ server.wait()
def run(self):
+ self._keep_server_running = True
self._harness = "iperf-2.0.5"
self._harness_archive = self._harness + ".tar.gz"
self._harness_url = "http://sourceforge.net/projects/iperf/files/%s/download" % self._harness_archive
self.duration = self.get_opt("duration")
if self.duration is None:
- self.duration = 60
+ self.duration = 60 # for client purposes
+ else:
+ self._keep_server_running = False # for server purposes
# same for client and server
installed = self.get_opt("install_dir")
--
1.7.4.4
11 years, 11 months
[PATCH] Ignore failures produced by 'kill' and 'intr' commands.
by Jan Tluka
---
NetTest/NetTestCommand.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/NetTest/NetTestCommand.py b/NetTest/NetTestCommand.py
index aefd173..ca28abf 100644
--- a/NetTest/NetTestCommand.py
+++ b/NetTest/NetTestCommand.py
@@ -105,7 +105,11 @@ class NetTestCommandExec(NetTestCommandGeneric):
exec_cmd(self._command["value"])
self.set_pass()
except ExecCmdFail:
- self.set_fail("Command failed to execute")
+ if "bg_id" in self._command:
+ logging.info("Command probably intentionally killed. Passing.")
+ self.set_pass()
+ else:
+ self.set_fail("Command failed to execute")
class BgProcessException(Exception):
"""Base class for client errors."""
--
1.7.4.4
11 years, 11 months
[PATCH] TestIperf installed option
by Jan Tluka
The option helps with consequent runs of the test.
---
Tests/TestIperf.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Tests/TestIperf.py b/Tests/TestIperf.py
index 45eda95..8b84484 100644
--- a/Tests/TestIperf.py
+++ b/Tests/TestIperf.py
@@ -17,7 +17,6 @@ class TestIperf(TestGeneric):
def _install_iperf(self):
# by default dies on failure
logging.info("trace: _install_iperf")
- self._temp_dir = (exec_cmd("mktemp -d")[0]).strip()
exec_cmd("wget -P %s/ %s" % (self._temp_dir, self._harness_url) )
exec_cmd("cd %s; tar -xvzf %s" % (self._temp_dir, self._harness_archive))
exec_cmd("cd %s/%s; ./configure; make; " % (self._temp_dir, self._harness))
@@ -58,7 +57,12 @@ class TestIperf(TestGeneric):
self.duration = 60
# same for client and server
- self._install_iperf()
+ installed = self.get_opt("install_dir")
+ if installed is None:
+ self._temp_dir = (exec_cmd("mktemp -d")[0]).strip()
+ self._install_iperf()
+ else:
+ self._temp_dir = installed
role = self.get_mopt("role")
cmd = self._compose_iperf_cmd(role)
--
1.7.4.4
11 years, 11 months
[lnst] Keep iperf server running unless duration option is set
by Jiří Pírko
commit c256475aace8944c2fbf37f22ab849d570d21ca0
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Fri Dec 16 19:09:04 2011 +0100
Keep iperf server running unless duration option is set
Tests/TestIperf.py | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/Tests/TestIperf.py b/Tests/TestIperf.py
index 8b84484..c65ed2d 100644
--- a/Tests/TestIperf.py
+++ b/Tests/TestIperf.py
@@ -13,7 +13,6 @@ from Common.ShellProcess import ShellProcess
import time
class TestIperf(TestGeneric):
-
def _install_iperf(self):
# by default dies on failure
logging.info("trace: _install_iperf")
@@ -43,18 +42,25 @@ class TestIperf(TestGeneric):
def run_server(self, cmd):
server = ShellProcess(cmd)
- time.sleep(float(self.duration))
- server.read_nonblocking()
- server.kill()
+
+ if not self._keep_server_running:
+ time.sleep(float(self.duration))
+ server.read_nonblocking()
+ server.kill()
+ else:
+ server.wait()
def run(self):
+ self._keep_server_running = True
self._harness = "iperf-2.0.5"
self._harness_archive = self._harness + ".tar.gz"
self._harness_url = "http://sourceforge.net/projects/iperf/files/%s/download" % self._harness_archive
self.duration = self.get_opt("duration")
if self.duration is None:
- self.duration = 60
+ self.duration = 60 # for client purposes
+ else:
+ self._keep_server_running = False # for server purposes
# same for client and server
installed = self.get_opt("install_dir")
11 years, 11 months
[lnst] Ignore failures produced by 'kill' and 'intr' commands.
by Jiří Pírko
commit 0771ca01b613d011df7cdc9e29ce2124f529419a
Author: Jan Tluka <jtluka(a)redhat.com>
Date: Tue Dec 13 15:50:38 2011 +0100
Ignore failures produced by 'kill' and 'intr' commands.
NetTest/NetTestCommand.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/NetTest/NetTestCommand.py b/NetTest/NetTestCommand.py
index aefd173..ca28abf 100644
--- a/NetTest/NetTestCommand.py
+++ b/NetTest/NetTestCommand.py
@@ -105,7 +105,11 @@ class NetTestCommandExec(NetTestCommandGeneric):
exec_cmd(self._command["value"])
self.set_pass()
except ExecCmdFail:
- self.set_fail("Command failed to execute")
+ if "bg_id" in self._command:
+ logging.info("Command probably intentionally killed. Passing.")
+ self.set_pass()
+ else:
+ self.set_fail("Command failed to execute")
class BgProcessException(Exception):
"""Base class for client errors."""
11 years, 11 months