James Dykman
2006-Aug-11 18:30 UTC
[Xen-devel] [PATCH] [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.
Jim
-----
Fix network tests for -route and -nat
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
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())
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel