# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1219102467 25200
# Node ID 909aac508b6834be6272aab635b991ca892e969d
# Parent 0ffa5529fe3bc599cba875ac3927efe9e56b8626
[TEST] #2 Add support for refconf to cim_define()
Updates:
-Remove support for passing in VSSD / RASD params.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r 0ffa5529fe3b -r 909aac508b68 suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Mon Aug 18 14:08:49 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Mon Aug 18 16:34:27 2008 -0700
@@ -513,15 +513,20 @@
mallocunits=mem_allocunits,
name=dom_name)
- def cim_define(self, ip):
+
+ def cim_define(self, ip, ref_conf=None):
service = vsms.get_vsms_class(self.virt)(ip)
sys_settings = str(self.vssd)
res_settings = [str(self.dasd), str(self.nasd),
str(self.pasd), str(self.masd)]
+
+ if ref_conf is None:
+ ref_conf = ' '
+
try:
service.DefineSystem(SystemSettings=sys_settings,
ResourceSettings=res_settings,
- ReferenceConfiguration=' ')
+ ReferenceConfiguration=ref_conf)
except pywbem.CIMError, (rc, desc):
logger.error('Got CIM error %s with return code %s' % (desc, rc))
return False