# HG changeset patch
# User Deepti B.Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1249381865 25200
# Node ID 041ca9e51d68b680d8d647f322040d297ba7a1c0
# Parent c1d8168e6ff0a7883fac582d19af5e68ad979bbc
[TEST] Fixing VSMS/08_modifyresource.py
Verified changes on SLES11 and F10 with KVM and current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r c1d8168e6ff0 -r 041ca9e51d68
suites/libvirt-cim/cimtest/VirtualSystemManagementService/08_modifyresource.py
--- a/suites/libvirt-cim/cimtest/VirtualSystemManagementService/08_modifyresource.py Thu
Jul 30 22:40:39 2009 -0700
+++ b/suites/libvirt-cim/cimtest/VirtualSystemManagementService/08_modifyresource.py Tue
Aug 04 03:31:05 2009 -0700
@@ -24,6 +24,7 @@
import sys
import pywbem
+from random import randint
from pywbem.cim_obj import CIMInstanceName
from VirtLib import utils
from XenKvmLib.xm_virt_util import network_by_bridge
@@ -41,6 +42,8 @@
cpu = 2
ncpu = 1
nmem = 256
+new_int = randint(10, 99)
+new_mac = "11:%s:22:%s:33:%s" % (new_int, new_int, new_int)
def cleanup_env(ip, virt, cxml):
cxml.destroy(ip)
@@ -104,6 +107,7 @@
if status != PASS:
break
+ nasd.Address = new_mac
status = vsms_util.mod_net_res(options.ip, service, options.virt, cxml,
nasd, ntype, default_network_name)
if status != PASS:
Show replies by date