aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/lib
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-08-05 13:38:38 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-08-05 13:38:38 +0100
commit5239cb1be72929e408d645d35783697fa3d8e6e7 (patch)
tree56a22a8b880f5262341e440a26ba900744bcbf3c /tools/xm-test/lib
parentccb359dbfc5d53e1445b0f5ef3c4bb84f21151dc (diff)
downloadxen-5239cb1be72929e408d645d35783697fa3d8e6e7.tar.gz
xen-5239cb1be72929e408d645d35783697fa3d8e6e7.tar.bz2
xen-5239cb1be72929e408d645d35783697fa3d8e6e7.zip
xm-test: fix network13 test (protocol and extensions)
Attached there is a patch that fixes the used protocol (was udp - but nobody was listening...) to icmp echo and added the extension, that the dom0 and the other guest ips are also pinged. Because of the many different scenarios (three nested loops) over packet sizes, two guests and different ip addresses, one run of this test case takes now about 4.5 minutes. Signed-off-by: Andreas Florath <xen@flonatel.org>
Diffstat (limited to 'tools/xm-test/lib')
-rw-r--r--tools/xm-test/lib/XmTestLib/NetConfig.py2
-rw-r--r--tools/xm-test/lib/XmTestLib/XenDevice.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/xm-test/lib/XmTestLib/NetConfig.py b/tools/xm-test/lib/XmTestLib/NetConfig.py
index 857a9a5cca..21be40db48 100644
--- a/tools/xm-test/lib/XmTestLib/NetConfig.py
+++ b/tools/xm-test/lib/XmTestLib/NetConfig.py
@@ -143,7 +143,7 @@ class NetConfig:
for line in lines:
ip = re.search('(\d+\.\d+\.\d+\.\d+)', line)
if ip and self.isIPInRange(ip.group(1)) == True:
- dcmd = 'ip addr del %s dev %s' % (ip.group(1), DOM0_INTF)
+ dcmd = 'ip addr del %s/32 dev %s' % (ip.group(1), DOM0_INTF)
dstatus, doutput = traceCommand(dcmd)
if dstatus:
raise NetworkError("Failed to remove %s aliases: %d" %
diff --git a/tools/xm-test/lib/XmTestLib/XenDevice.py b/tools/xm-test/lib/XmTestLib/XenDevice.py
index 79dfbfc73a..688b39e543 100644
--- a/tools/xm-test/lib/XmTestLib/XenDevice.py
+++ b/tools/xm-test/lib/XmTestLib/XenDevice.py
@@ -217,7 +217,7 @@ class XenNetDevice(XenDevice):
def addDom0AliasCmd(self, dev=DOM0_INTF):
# Method to add start and remove dom0 alias cmds
acmd = 'ip addr add %s dev %s' % (self.dom0_alias_ip, dev)
- rcmd = 'ip addr del %s dev %s' % (self.dom0_alias_ip, dev)
+ rcmd = 'ip addr del %s/32 dev %s' % (self.dom0_alias_ip, dev)
aliascmd = XenNetDevCmd(self, addCmd=acmd, removeCmd=rcmd)
self.dom0_cmds.append(aliascmd)