commit 6272ce8916fbab46189d2d4434ce7241a0b6792e
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Tue Oct 9 15:26:39 2012 +0200
recipes/examples: Adding new directory for example recipes
This commit introduces new directory in recipes/ to keep
example recipes and quick guide recipes.
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
recipes/examples/quick_guides/ping_check.xml | 56 ++++++++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/recipes/examples/quick_guides/ping_check.xml
b/recipes/examples/quick_guides/ping_check.xml
new file mode 100644
index 0000000..8960b63
--- /dev/null
+++ b/recipes/examples/quick_guides/ping_check.xml
@@ -0,0 +1,56 @@
+<!--
+This is a recipe from a quick guide that
+is available on LNST wiki page:
+
+
https://fedorahosted.org/lnst/wiki/QuickGuides/QuickGuidePingCheck
+-->
+<nettestrecipe>
+ <machines>
+ <machine id="testmachine1">
+ <machineconfig>
+ <!-- Change hostname and rootpass bellow -->
+ <info hostname="192.168.1.2" rootpass="r00t"/>
+ <netdevices>
+ <!-- Change hwaddr here -->
+ <netdevice type="eth" network="tnet"
hwaddr="52:54:01:00:00:05"
+ phys_id="1"/>
+ </netdevices>
+ </machineconfig>
+ <netconfig>
+ <interface id="testifc1" phys_id="1"
type="eth"/>
+ <addresses>
+ <address value="192.168.200.2/24"/>
+ </addresses>
+ </interface>
+ </netconfig>
+ </machine>
+
+ <machine id="testmachine2">
+ <machineconfig>
+ <!-- Change hostname and rootpass bellow -->
+ <info hostname="192.168.1.3" rootpass="r00t"/>
+ <netdevices>
+ <!-- Change hwaddr here -->
+ <netdevice type="eth" network="tnet"
hwaddr="52:54:01:00:00:06"
+ phys_id="1"/>
+ </netdevices>
+ </machineconfig>
+ <netconfig>
+ <interface id="testifc2" phys_id="1"
type="eth">
+ <addresses>
+ <address value="192.168.200.3/24"/>
+ </addresses>
+ </interface>
+ </netconfig>
+ </machine>
+ </machines>
+
+ <command_sequence>
+ <command type="test" machine_id="testmachine1"
value="IcmpPing">
+ <options>
+ <option name="addr"
value="{ip(testmachine2,testifc2)}"/>
+ <option name="count" value="3"/>
+ </options>
+ </command>
+ </command_sequence>
+</nettestrecipe>