[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lnst-developers
Subject:    [lnst] team recipes: add two lacp ones for configuration
From:       jirka () fedoraproject ! org (=?utf-8?b?SmnFmcOtIFDDrXJrbw==?=)
Date:       2012-09-20 14:39:52
Message-ID: 20120920143952.79B66A2966 () fedorahosted ! org
[Download RAW message or body]

commit 07b91594eca3007879b843c71c674d833fc1a738
Author: Jiri Pirko <jiri at resnulli.us>
Date:   Thu Sep 20 16:39:18 2012 +0200

    team recipes: add two lacp ones for configuration
    
    Signed-off-by: Jiri Pirko <jiri at resnulli.us>

 recipes/team/netconfig-team_lacp_passive.xml  |   38 +++++++++++++++++++++++++
 recipes/team/netconfig-team_lacp_slowrate.xml |   38 +++++++++++++++++++++++++
 recipes/team/recipey_lacp_passive.xml         |   21 +++++++++++++
 recipes/team/recipey_lacp_slowrate.xml        |   21 +++++++++++++
 4 files changed, 118 insertions(+), 0 deletions(-)
---
diff --git a/recipes/team/netconfig-team_lacp_passive.xml \
b/recipes/team/netconfig-team_lacp_passive.xml new file mode 100644
index 0000000..ef4cf91
--- /dev/null
+++ b/recipes/team/netconfig-team_lacp_passive.xml
@@ -0,0 +1,38 @@
+<netconfig>
+    <interface id="1" phys_id="1" type="eth">
+        <options>
+            <option name="teamd_port_config">
+                {
+                    "prio": -10
+                }
+            </option>
+        </options>
+    </interface>
+    <interface id="2" phys_id="2" type="eth"/>
+    <interface id="3" phys_id="3" type="eth"/>
+    <interface id="testiface" type="team">
+        <options>
+            <option name="teamd_config">
+                {
+                    "hwaddr": "00:11:22:33:44:55",
+                    "runner": {
+                        "name": "lacp",
+                        "active": false,
+                        "fast_rate": true,
+                        "tx_hash": ["eth", "ipv4", "ipv6"]
+                    },
+                    "link_watch": {"name": "ethtool"}
+                }
+            </option>
+        </options>
+        <slaves>
+            <slave id="1"/>
+            <slave id="2"/>
+            <slave id="3"/>
+        </slaves>
+        <addresses>
+             <address value="{$testip}"/>
+             <address value="{$testip6}"/>
+        </addresses>
+    </interface>
+</netconfig>
diff --git a/recipes/team/netconfig-team_lacp_slowrate.xml \
b/recipes/team/netconfig-team_lacp_slowrate.xml new file mode 100644
index 0000000..c90fece
--- /dev/null
+++ b/recipes/team/netconfig-team_lacp_slowrate.xml
@@ -0,0 +1,38 @@
+<netconfig>
+    <interface id="1" phys_id="1" type="eth">
+        <options>
+            <option name="teamd_port_config">
+                {
+                    "prio": -10
+                }
+            </option>
+        </options>
+    </interface>
+    <interface id="2" phys_id="2" type="eth"/>
+    <interface id="3" phys_id="3" type="eth"/>
+    <interface id="testiface" type="team">
+        <options>
+            <option name="teamd_config">
+                {
+                    "hwaddr": "00:11:22:33:44:55",
+                    "runner": {
+                        "name": "lacp",
+                        "active": true,
+                        "fast_rate": false,
+                        "tx_hash": ["eth", "ipv4", "ipv6"]
+                    },
+                    "link_watch": {"name": "ethtool"}
+                }
+            </option>
+        </options>
+        <slaves>
+            <slave id="1"/>
+            <slave id="2"/>
+            <slave id="3"/>
+        </slaves>
+        <addresses>
+             <address value="{$testip}"/>
+             <address value="{$testip6}"/>
+        </addresses>
+    </interface>
+</netconfig>
diff --git a/recipes/team/recipey_lacp_passive.xml \
b/recipes/team/recipey_lacp_passive.xml new file mode 100644
index 0000000..5e88fdf
--- /dev/null
+++ b/recipes/team/recipey_lacp_passive.xml
@@ -0,0 +1,21 @@
+<nettestrecipe>
+    <machines>
+        <define>
+            <alias name="testip" value="192.168.111.1/24"/>
+            <alias name="testip6" value="fe01::1/64"/>
+        </define>
+        <machine id="1">
+            <machineconfig source="machineconfig-peanut.xml"/>
+            <netconfig source="netconfig-team_lacp_passive.xml"/>
+        </machine>
+        <define>
+            <alias name="testip" value="192.168.111.2/24"/>
+            <alias name="testip6" value="fe01::2/64"/>
+        </define>
+        <machine id="2">
+            <machineconfig source="machineconfig-dhcp-37-128.xml"/>
+            <netconfig source="netconfig-bond_lacp.xml"/>
+        </machine>
+    </machines>
+    <command_sequence source="sequence_ping_simple.xml"/>
+</nettestrecipe>
diff --git a/recipes/team/recipey_lacp_slowrate.xml \
b/recipes/team/recipey_lacp_slowrate.xml new file mode 100644
index 0000000..1daead2
--- /dev/null
+++ b/recipes/team/recipey_lacp_slowrate.xml
@@ -0,0 +1,21 @@
+<nettestrecipe>
+    <machines>
+        <define>
+            <alias name="testip" value="192.168.111.1/24"/>
+            <alias name="testip6" value="fe01::1/64"/>
+        </define>
+        <machine id="1">
+            <machineconfig source="machineconfig-peanut.xml"/>
+            <netconfig source="netconfig-team_lacp_slowrate.xml"/>
+        </machine>
+        <define>
+            <alias name="testip" value="192.168.111.2/24"/>
+            <alias name="testip6" value="fe01::2/64"/>
+        </define>
+        <machine id="2">
+            <machineconfig source="machineconfig-dhcp-37-128.xml"/>
+            <netconfig source="netconfig-bond_lacp.xml"/>
+        </machine>
+    </machines>
+    <command_sequence source="sequence_ping_simple.xml"/>
+</nettestrecipe>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic