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] [XM-TEST] Fix network tests for -route and -nat

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [XM-TEST] Fix network tests for -route and -nat
From: James Dykman <dykman@xxxxxxxxxx>
Date: Fri, 11 Aug 2006 14:30:53 -0400
Delivery-date: Fri, 11 Aug 2006 11:31:23 -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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
vif-nat and vif-route need to know domU ethX IP addresses in order to set 
up the appropriate routes.The new network test infrastructure is not 
providing the IP address on the vif line in /tmp/xm-test.conf; adding it 
turns out to be a one-liner.

Tested with xm-test running with -bridge, -route, and -nat network 
scripts.

Jim

-----
Fix network tests for -route and -nat

Signed-off-by: Jim Dykman <dykman@xxxxxxxxxx>

diff -r b60ea69932b1 tools/xm-test/lib/XmTestLib/XenDevice.py
--- a/tools/xm-test/lib/XmTestLib/XenDevice.py  Wed Aug  9 17:04:20 2006
+++ b/tools/xm-test/lib/XmTestLib/XenDevice.py  Thu Aug 10 13:35:12 2006
@@ -265,6 +265,7 @@
             self.ip = xmtest_netconf.getIP(self.domain.getName(), 
self.id)

         self.addIfconfigCmd()
+        self.config["ip"] = str(self.ip)

         # Setup an alias for Dom0
         self.dom0_alias_ip = xmtest_netconf.getIP("domain0", 
self.domain.getName())

Attachment: routenat.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [XM-TEST] Fix network tests for -route and -nat, James Dykman <=