WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 3/4] xenserver: Allow bond_mode configuration in xen.

To: <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH 3/4] xenserver: Allow bond_mode configuration in xen.
From: Dominic Curran <dominic.curran@xxxxxxxxxx>
Date: Mon, 14 Feb 2011 12:35:21 +0000
Cc: dominic.curran@xxxxxxxxxx
Delivery-date: Tue, 15 Feb 2011 08:41:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.24 (X11/20100411)
From d3aace693916be687b7e741139a051e24b469618 Mon Sep 17 00:00:00 2001
From: Ethan Jackson <ethan@xxxxxxxxxx>
Date: Mon, 10 Jan 2011 12:18:50 -0800
Subject: [PATCH 3/4] xenserver: Allow bond_mode configuration in xen.

This commit adds bond_mode configuration to Interface Reconfigure
so that it may be changed using standard XenServer commands.

Signed-off-by: Ethan Jackson <ethan@xxxxxxxxxx>
Signed-off-by: Dominic Curran <dominic.curran@xxxxxxxxxx>
---
scripts/InterfaceReconfigureVswitch.py |    6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/scripts/InterfaceReconfigureVswitch.py b/scripts/InterfaceReconfigureVswitch.py
index 1a845ff..61385b2 100644
--- a/scripts/InterfaceReconfigureVswitch.py
+++ b/scripts/InterfaceReconfigureVswitch.py
@@ -171,6 +171,12 @@ def datapath_configure_bond(pif,slaves):
                argv += ['bond_%s=%d' % (name, value)]
            except ValueError:
log("bridge %s has invalid %s '%s'" % (bridge, name, value))
+        elif name == "mode":
+
+            if val in ['balance-slb', 'active-backup']:
+                argv += ['bond_%s=%s' % (name, val)]
+            else:
+                log("bridge %s has invalid %s '%s'" % (bridge, name, val))
        else:
            # Pass other bond options into other_config.
argv += ["other-config:%s=%s" % (vsctl_escape("bond-%s" % name),
--
1.6.3.3


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH 3/4] xenserver: Allow bond_mode configuration in xen., Dominic Curran <=