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

[Xen-changelog] [xen-unstable] [XM-TEST] Fix network tests for -route and -nat



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxxx
# Node ID 9900884577de164941fd75fe3d7689c0e8210495
# Parent  41399e5fdc9ed65cfcc5314b491fd0ea3089e75a
[XM-TEST] Fix network tests for -route and -nat

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.

Signed-off-by: Jim Dykman <dykman@xxxxxxxxxx>
---
 tools/xm-test/lib/XmTestLib/XenDevice.py |    1 +
 1 files changed, 1 insertion(+)

diff -r 41399e5fdc9e -r 9900884577de tools/xm-test/lib/XmTestLib/XenDevice.py
--- a/tools/xm-test/lib/XmTestLib/XenDevice.py  Sat Aug 12 15:56:00 2006 +0100
+++ b/tools/xm-test/lib/XmTestLib/XenDevice.py  Sat Aug 12 15:58:52 2006 +0100
@@ -265,6 +265,7 @@ class XenNetDevice(XenDevice):
             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())

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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