Added netperf test recipes for each test variation.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
recipes/examples/quick_guides/netperf.xml | 39 --------------------
.../quick_guides/netperf/netperf_sctp_rr.xml | 41 ++++++++++++++++++++++
.../quick_guides/netperf/netperf_sctp_stream.xml | 41 ++++++++++++++++++++++
.../netperf/netperf_sctp_stream_many.xml | 41 ++++++++++++++++++++++
.../quick_guides/netperf/netperf_tcp_rr.xml | 41 ++++++++++++++++++++++
.../quick_guides/netperf/netperf_tcp_stream.xml | 41 ++++++++++++++++++++++
.../quick_guides/netperf/netperf_udp_rr.xml | 41 ++++++++++++++++++++++
.../quick_guides/netperf/netperf_udp_stream.xml | 41 ++++++++++++++++++++++
8 files changed, 287 insertions(+), 39 deletions(-)
delete mode 100644 recipes/examples/quick_guides/netperf.xml
create mode 100644 recipes/examples/quick_guides/netperf/netperf_sctp_rr.xml
create mode 100644 recipes/examples/quick_guides/netperf/netperf_sctp_stream.xml
create mode 100644 recipes/examples/quick_guides/netperf/netperf_sctp_stream_many.xml
create mode 100644 recipes/examples/quick_guides/netperf/netperf_tcp_rr.xml
create mode 100644 recipes/examples/quick_guides/netperf/netperf_tcp_stream.xml
create mode 100644 recipes/examples/quick_guides/netperf/netperf_udp_rr.xml
create mode 100644 recipes/examples/quick_guides/netperf/netperf_udp_stream.xml
diff --git a/recipes/examples/quick_guides/netperf.xml
b/recipes/examples/quick_guides/netperf.xml
deleted file mode 100644
index dd339a5..0000000
--- a/recipes/examples/quick_guides/netperf.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<lnstrecipe>
- <network>
- <host id="testmachine1">
- <interfaces>
- <eth label="tnet" id="testifc1">
- <addresses>
- <address value="192.168.200.2/24"/>
- </addresses>
- </eth>
- </interfaces>
- </host>
- <host id="testmachine2">
- <interfaces>
- <eth label="tnet" id="testifc2">
- <addresses>
- <address value="192.168.200.3/24"/>
- </addresses>
- </eth>
- </interfaces>
- </host>
- </network>
- <task>
- <run module="Netperf" host="testmachine2"
bg_id="server">
- <options>
- <option name="role" value="server"/>
- <option name="bind" value="{ip(testmachine2,
testifc2)}"/>
- </options>
- </run>
- <run module="Netperf" host="testmachine1">
- <options>
- <option name="role" value="client"/>
- <option name="netperf_server" value="{ip(testmachine2,
testifc2)}"/>
- </options>
- </run>
-
- <kill host="testmachine2" bg_id="server"/>
-
- </task>
-</lnstrecipe>
diff --git a/recipes/examples/quick_guides/netperf/netperf_sctp_rr.xml
b/recipes/examples/quick_guides/netperf/netperf_sctp_rr.xml
new file mode 100644
index 0000000..06c2607
--- /dev/null
+++ b/recipes/examples/quick_guides/netperf/netperf_sctp_rr.xml
@@ -0,0 +1,41 @@
+<lnstrecipe>
+ <network>
+ <host id="testmachine1">
+ <interfaces>
+ <eth label="tnet" id="testifc1">
+ <addresses>
+ <address value="192.168.200.2/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ <host id="testmachine2">
+ <interfaces>
+ <eth label="tnet" id="testifc2">
+ <addresses>
+ <address value="192.168.200.3/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ </network>
+ <task>
+ <run module="Netperf" host="testmachine2"
bg_id="server">
+ <options>
+ <option name="role" value="server"/>
+ <option name="bind" value="{ip(testmachine2,
testifc2)}"/>
+ </options>
+ </run>
+ <run module="Netperf" host="testmachine1">
+ <options>
+ <option name="role" value="client"/>
+ <option name="netperf_server" value="{ip(testmachine2,
testifc2)}"/>
+ <option name="testname" value="SCTP_RR" />
+ <option name="threshold" value="0 Trans./sec"
/>
+ </options>
+ </run>
+
+ <kill host="testmachine2" bg_id="server"/>
+
+ </task>
+</lnstrecipe>
diff --git a/recipes/examples/quick_guides/netperf/netperf_sctp_stream.xml
b/recipes/examples/quick_guides/netperf/netperf_sctp_stream.xml
new file mode 100644
index 0000000..3e53843
--- /dev/null
+++ b/recipes/examples/quick_guides/netperf/netperf_sctp_stream.xml
@@ -0,0 +1,41 @@
+<lnstrecipe>
+ <network>
+ <host id="testmachine1">
+ <interfaces>
+ <eth label="tnet" id="testifc1">
+ <addresses>
+ <address value="192.168.200.2/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ <host id="testmachine2">
+ <interfaces>
+ <eth label="tnet" id="testifc2">
+ <addresses>
+ <address value="192.168.200.3/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ </network>
+ <task>
+ <run module="Netperf" host="testmachine2"
bg_id="server">
+ <options>
+ <option name="role" value="server"/>
+ <option name="bind" value="{ip(testmachine2,
testifc2)}"/>
+ </options>
+ </run>
+ <run module="Netperf" host="testmachine1">
+ <options>
+ <option name="role" value="client"/>
+ <option name="netperf_server" value="{ip(testmachine2,
testifc2)}"/>
+ <option name="testname" value="SCTP_STREAM" />
+ <option name="threshold" value="0 Mbits/sec"
/>
+ </options>
+ </run>
+
+ <kill host="testmachine2" bg_id="server"/>
+
+ </task>
+</lnstrecipe>
diff --git a/recipes/examples/quick_guides/netperf/netperf_sctp_stream_many.xml
b/recipes/examples/quick_guides/netperf/netperf_sctp_stream_many.xml
new file mode 100644
index 0000000..175cb36
--- /dev/null
+++ b/recipes/examples/quick_guides/netperf/netperf_sctp_stream_many.xml
@@ -0,0 +1,41 @@
+<lnstrecipe>
+ <network>
+ <host id="testmachine1">
+ <interfaces>
+ <eth label="tnet" id="testifc1">
+ <addresses>
+ <address value="192.168.200.2/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ <host id="testmachine2">
+ <interfaces>
+ <eth label="tnet" id="testifc2">
+ <addresses>
+ <address value="192.168.200.3/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ </network>
+ <task>
+ <run module="Netperf" host="testmachine2"
bg_id="server">
+ <options>
+ <option name="role" value="server"/>
+ <option name="bind" value="{ip(testmachine2,
testifc2)}"/>
+ </options>
+ </run>
+ <run module="Netperf" host="testmachine1">
+ <options>
+ <option name="role" value="client"/>
+ <option name="netperf_server" value="{ip(testmachine2,
testifc2)}"/>
+ <option name="testname" value="SCTP_STREAM_MANY"
/>
+ <option name="threshold" value="0 Mbits/sec"
/>
+ </options>
+ </run>
+
+ <kill host="testmachine2" bg_id="server"/>
+
+ </task>
+</lnstrecipe>
diff --git a/recipes/examples/quick_guides/netperf/netperf_tcp_rr.xml
b/recipes/examples/quick_guides/netperf/netperf_tcp_rr.xml
new file mode 100644
index 0000000..98bd279
--- /dev/null
+++ b/recipes/examples/quick_guides/netperf/netperf_tcp_rr.xml
@@ -0,0 +1,41 @@
+<lnstrecipe>
+ <network>
+ <host id="testmachine1">
+ <interfaces>
+ <eth label="tnet" id="testifc1">
+ <addresses>
+ <address value="192.168.200.2/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ <host id="testmachine2">
+ <interfaces>
+ <eth label="tnet" id="testifc2">
+ <addresses>
+ <address value="192.168.200.3/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ </network>
+ <task>
+ <run module="Netperf" host="testmachine2"
bg_id="server">
+ <options>
+ <option name="role" value="server"/>
+ <option name="bind" value="{ip(testmachine2,
testifc2)}"/>
+ </options>
+ </run>
+ <run module="Netperf" host="testmachine1">
+ <options>
+ <option name="role" value="client"/>
+ <option name="netperf_server" value="{ip(testmachine2,
testifc2)}"/>
+ <option name="testname" value="TCP_RR" />
+ <option name="threshold" value="0 Trans./sec"
/>
+ </options>
+ </run>
+
+ <kill host="testmachine2" bg_id="server"/>
+
+ </task>
+</lnstrecipe>
diff --git a/recipes/examples/quick_guides/netperf/netperf_tcp_stream.xml
b/recipes/examples/quick_guides/netperf/netperf_tcp_stream.xml
new file mode 100644
index 0000000..bcbfdcd
--- /dev/null
+++ b/recipes/examples/quick_guides/netperf/netperf_tcp_stream.xml
@@ -0,0 +1,41 @@
+<lnstrecipe>
+ <network>
+ <host id="testmachine1">
+ <interfaces>
+ <eth label="tnet" id="testifc1">
+ <addresses>
+ <address value="192.168.200.2/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ <host id="testmachine2">
+ <interfaces>
+ <eth label="tnet" id="testifc2">
+ <addresses>
+ <address value="192.168.200.3/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ </network>
+ <task>
+ <run module="Netperf" host="testmachine2"
bg_id="server">
+ <options>
+ <option name="role" value="server"/>
+ <option name="bind" value="{ip(testmachine2,
testifc2)}"/>
+ </options>
+ </run>
+ <run module="Netperf" host="testmachine1">
+ <options>
+ <option name="role" value="client"/>
+ <option name="netperf_server" value="{ip(testmachine2,
testifc2)}"/>
+ <option name="testname" value="TCP_STREAM" />
+ <option name="threshold" value="0 Mbits/sec"
/>
+ </options>
+ </run>
+
+ <kill host="testmachine2" bg_id="server"/>
+
+ </task>
+</lnstrecipe>
diff --git a/recipes/examples/quick_guides/netperf/netperf_udp_rr.xml
b/recipes/examples/quick_guides/netperf/netperf_udp_rr.xml
new file mode 100644
index 0000000..0c6621d
--- /dev/null
+++ b/recipes/examples/quick_guides/netperf/netperf_udp_rr.xml
@@ -0,0 +1,41 @@
+<lnstrecipe>
+ <network>
+ <host id="testmachine1">
+ <interfaces>
+ <eth label="tnet" id="testifc1">
+ <addresses>
+ <address value="192.168.200.2/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ <host id="testmachine2">
+ <interfaces>
+ <eth label="tnet" id="testifc2">
+ <addresses>
+ <address value="192.168.200.3/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ </network>
+ <task>
+ <run module="Netperf" host="testmachine2"
bg_id="server">
+ <options>
+ <option name="role" value="server"/>
+ <option name="bind" value="{ip(testmachine2,
testifc2)}"/>
+ </options>
+ </run>
+ <run module="Netperf" host="testmachine1">
+ <options>
+ <option name="role" value="client"/>
+ <option name="netperf_server" value="{ip(testmachine2,
testifc2)}"/>
+ <option name="testname" value="UDP_RR" />
+ <option name="threshold" value="0 Trans./sec"
/>
+ </options>
+ </run>
+
+ <kill host="testmachine2" bg_id="server"/>
+
+ </task>
+</lnstrecipe>
diff --git a/recipes/examples/quick_guides/netperf/netperf_udp_stream.xml
b/recipes/examples/quick_guides/netperf/netperf_udp_stream.xml
new file mode 100644
index 0000000..aa1964c
--- /dev/null
+++ b/recipes/examples/quick_guides/netperf/netperf_udp_stream.xml
@@ -0,0 +1,41 @@
+<lnstrecipe>
+ <network>
+ <host id="testmachine1">
+ <interfaces>
+ <eth label="tnet" id="testifc1">
+ <addresses>
+ <address value="192.168.200.2/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ <host id="testmachine2">
+ <interfaces>
+ <eth label="tnet" id="testifc2">
+ <addresses>
+ <address value="192.168.200.3/24"/>
+ </addresses>
+ </eth>
+ </interfaces>
+ </host>
+ </network>
+ <task>
+ <run module="Netperf" host="testmachine2"
bg_id="server">
+ <options>
+ <option name="role" value="server"/>
+ <option name="bind" value="{ip(testmachine2,
testifc2)}"/>
+ </options>
+ </run>
+ <run module="Netperf" host="testmachine1">
+ <options>
+ <option name="role" value="client"/>
+ <option name="netperf_server" value="{ip(testmachine2,
testifc2)}"/>
+ <option name="testname" value="UDP_STREAM" />
+ <option name="threshold" value="0 Mbits/sec"
/>
+ </options>
+ </run>
+
+ <kill host="testmachine2" bg_id="server"/>
+
+ </task>
+</lnstrecipe>
--
2.1.0