commit eba218de46fcc1d23fe1fe0a2aae17833255da52
Author: Jiri Pirko <jiri(a)resnulli.us>
Date: Thu Aug 23 15:34:56 2012 +0200
recipes: team: add couple recipes
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
recipes/team/netconfig-simple.xml | 7 +++++++
recipes/team/netconfig-team_ab_002.xml | 8 +++++++-
recipes/team/recipe_003.xml | 19 +++++++++++++++++++
3 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/recipes/team/netconfig-simple.xml b/recipes/team/netconfig-simple.xml
new file mode 100644
index 0000000..b0473e5
--- /dev/null
+++ b/recipes/team/netconfig-simple.xml
@@ -0,0 +1,7 @@
+<netconfig>
+ <interface id="1" phys_id="1" type="eth">
+ <addresses>
+ <address value="{$testip}"/>
+ </addresses>
+ </interface>
+</netconfig>
diff --git a/recipes/team/netconfig-team_ab_002.xml
b/recipes/team/netconfig-team_ab_002.xml
index d3ed392..e77e560 100644
--- a/recipes/team/netconfig-team_ab_002.xml
+++ b/recipes/team/netconfig-team_ab_002.xml
@@ -23,7 +23,13 @@
<option name="teamd_config">
{
"runner": {"name": "activebackup"},
- "link_watch": {"name": "ethtool"}
+ "link_watch": {
+ "name": "arp_ping",
+ "interval": 100,
+ "missed_max": 30,
+ "source_host": "192.168.23.2",
+ "target_host": "192.168.23.1"
+ }
}
</option>
</options>
diff --git a/recipes/team/recipe_003.xml b/recipes/team/recipe_003.xml
new file mode 100644
index 0000000..77fa51c
--- /dev/null
+++ b/recipes/team/recipe_003.xml
@@ -0,0 +1,19 @@
+<nettestrecipe>
+ <machines>
+ <define>
+ <alias name="testip" value="192.168.111.1/24"/>
+ </define>
+ <machine id="1">
+ <machineconfig source="machineconfig-test1.xml"/>
+ <netconfig source="netconfig-simple.xml"/>
+ </machine>
+ <define>
+ <alias name="testip" value="192.168.111.2/24"/>
+ </define>
+ <machine id="2">
+ <machineconfig source="machineconfig-test2.xml"/>
+ <netconfig source="netconfig-team_rr.xml"/>
+ </machine>
+ </machines>
+ <command_sequence source="sequence_ping_simple.xml"/>
+</nettestrecipe>