[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [Patch] xm-test NetConfig.py error


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 06 Mar 2009 08:56:52 +0100
  • Delivery-date: Thu, 05 Mar 2009 23:57:30 -0800
  • Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:Subject:X-Enigmail-Version: Content-Type; b=NVOdCyszHu7t2zuuBNMtOD/vm9Y5Dsy/L2po+oN4kXfMEurdMfcelyix +HZAIYwHdU0GzS/kaUydX9eW6T6GCn5THNU4Kl9+Jv4bp4qP2uLvjazPW 0gE/W4/I6n5IVDR;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

Identifying the network env specified in xend config fails, if an
additional parameter is given for the network-bridge (e.g. netdev=eth1)
The patch splits the network command into the command name and its
parameters to determine the netenv (bridge, route, nat)

Juergen

-- 
Juergen Gross                             Principal Developer
IP SW OS6                      Telephone: +49 (0) 89 636 47950
Fujitsu Siemens Computers         e-mail: juergen.gross@xxxxxxxxxxxxxxxxxxx
Otto-Hahn-Ring 6                Internet: www.fujitsu-siemens.com
D-81739 Muenchen         Company details: www.fujitsu-siemens.com/imprint.html
Identifying the network env specified in xend config fails, if an
additional parameter is given for the network-bridge (e.g. netdev=eth1)
The patch splits the network command into the command name and its
parameters to determine the netenv (bridge, route, nat)

Signed-off-by: juergen.gross@xxxxxxxxxxxxxxxxxxx

# HG changeset patch
# User juergen.gross@xxxxxxxxxxxxxxxxxxx
# Date 1236325568 -3600
# Node ID 6315b66fbd5b25597ad2aa766aeda68d6852205d
# Parent  7f573cb76db41a9fc46052867b02e9e0c107aa86

diff -r 7f573cb76db4 -r 6315b66fbd5b tools/xm-test/lib/XmTestLib/NetConfig.py
--- a/tools/xm-test/lib/XmTestLib/NetConfig.py  Tue Mar 03 13:22:28 2009 +0000
+++ b/tools/xm-test/lib/XmTestLib/NetConfig.py  Fri Mar 06 08:46:08 2009 +0100
@@ -57,11 +57,13 @@
     while val[0] != 'network-script':
         val = pin.get_val()
 
-    if val[1] == "network-bridge":
+    # split network command into script name and its parameters
+    sub_val = val[1].split()
+    if sub_val[0] == "network-bridge":
         netenv = "bridge"
-    elif val[1] == "network-route":
+    elif sub_val[0] == "network-route":
         netenv = "route"
-    elif val[1] == "network-nat":
+    elif sub_val[0] == "network-nat":
         netenv = "nat"
     else:
         raise NetworkError("Failed to get network env from xend config")
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.