ia64/xen-unstable
changeset 11089:9900884577de
[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@us.ibm.com>
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@us.ibm.com>
author | kaf24@localhost.localdomain |
---|---|
date | Sat Aug 12 15:58:52 2006 +0100 (2006-08-12) |
parents | 41399e5fdc9e |
children | 0340e579f065 |
files | tools/xm-test/lib/XmTestLib/XenDevice.py |
line diff
1.1 --- a/tools/xm-test/lib/XmTestLib/XenDevice.py Sat Aug 12 15:56:00 2006 +0100 1.2 +++ b/tools/xm-test/lib/XmTestLib/XenDevice.py Sat Aug 12 15:58:52 2006 +0100 1.3 @@ -265,6 +265,7 @@ class XenNetDevice(XenDevice): 1.4 self.ip = xmtest_netconf.getIP(self.domain.getName(), self.id) 1.5 1.6 self.addIfconfigCmd() 1.7 + self.config["ip"] = str(self.ip) 1.8 1.9 # Setup an alias for Dom0 1.10 self.dom0_alias_ip = xmtest_netconf.getIP("domain0", self.domain.getName())