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-devel

[Xen-devel] [PATCH] xmtest network script check

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xmtest network script check
From: Michael Hohnbaum <hohnbaum@xxxxxxxxxx>
Date: Fri, 21 Jul 2006 16:26:23 -0700
Delivery-date: Fri, 21 Jul 2006 16:26:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM LTC
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
The network script check in xmtest needs to look for "network" as
a valid script name, and if found set netenv to bridge.  This patch
does that and allows xmtest to run on a normal install.


# HG changeset patch
# User root@xxxxxxxxxxxxxxxxxxxxx
# Node ID 6d7c5675bdd43c44a29d4b043a6bc215e88bda6c
# Parent  bbabdebc54ada9b72889eb6a66dfed1d73801825

"network" is a valid network script, add check for it
Signed-off-by: Michael Hohnbaum <hohnbaum@xxxxxxxxxx>

diff -r bbabdebc54ad -r 6d7c5675bdd4
tools/xm-test/lib/XmTestLib/NetConfig.py
--- a/tools/xm-test/lib/XmTestLib/NetConfig.py  Wed Jul 19 21:13:36 2006
+0100
+++ b/tools/xm-test/lib/XmTestLib/NetConfig.py  Fri Jul 21 16:09:45 2006
-0700
@@ -54,6 +54,8 @@ def getXendNetConfig():
         val = pin.get_val()

     if val[1] == "network-bridge":
+        netenv = "bridge"
+    elif val[1] == "network":
         netenv = "bridge"
     elif val[1] == "network-route":
         netenv = "route"

-- 
Michael Hohnbaum            503-578-5486
hohnbaum@xxxxxxxxxx         T/L 775-5486

Attachment: patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>