# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1207225887 -19800
# Node ID 4ae171df56c92ff442bbd098102779140f3c7ff1
# Parent cbadbbee26c59304d6ef6a46e94eeb9b5dbed26b
[TEST] Adding profile_init_list() in common_util.py to create a default profile list.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r cbadbbee26c5 -r 4ae171df56c9 suites/libvirt-cim/lib/XenKvmLib/common_util.py
--- a/suites/libvirt-cim/lib/XenKvmLib/common_util.py Thu Apr 03 13:17:42 2008 +0530
+++ b/suites/libvirt-cim/lib/XenKvmLib/common_util.py Thu Apr 03 18:01:27 2008 +0530
@@ -187,3 +187,46 @@ def try_getinstance(conn, classname, key
'%s' passed.", classname, field_name)
return XFAIL_RC(bug_no)
+def profile_init_list():
+ sys_prof_info = {
+ "InstanceID" :
"CIM:DSP1042-SystemVirtualization-1.0.0",
+ "RegisteredOrganization" : 2,
+ "RegisteredName" : "System
Virtualization",
+ "RegisteredVersion" : "1.0.0"
+ }
+ vs_prof = {
+ "InstanceID" :
"CIM:DSP1057-VirtualSystem-1.0.0a",
+ "RegisteredOrganization" : 2,
+ "RegisteredName" : "Virtual System
Profile",
+ "RegisteredVersion" : "1.0.0a"
+ }
+ gen_dev_prof = {
+ "InstanceID" :
+
"CIM:DSP1059-GenericDeviceResourceVirtualization-1.0.0",
+ "RegisteredOrganization" : 2,
+ "RegisteredName" : "Generic Device
Resource Virtualization",
+ "RegisteredVersion" : "1.0.0"
+ }
+ mem_res_prof = {
+ "InstanceID" :
"CIM:DSP1045-MemoryResourceVirtualization-1.0.0",
+ "RegisteredOrganization" : 2,
+ "RegisteredName" : "Memory Resource
Virtualization",
+ "RegisteredVersion" : "1.0.0"
+ }
+ vs_mig_prof = {
+ "InstanceID" :
"CIM:DSP1081-VirtualSystemMigration-1.0",
+ "RegisteredOrganization" : 2,
+ "RegisteredName" : "Virtual System
Migration",
+ "RegisteredVersion" : "1.0"
+ }
+
+ profiles = {
+
+ 'DSP1042' : sys_prof_info,
+ 'DSP1045' : mem_res_prof,
+ 'DSP1057' : vs_prof,
+ 'DSP1059' : gen_dev_prof,
+ 'DSP1081' : vs_mig_prof
+ }
+
+ return profiles
Show replies by date
DK> # HG changeset patch
DK> # User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
DK> # Date 1207225887 -19800
DK> # Node ID 4ae171df56c92ff442bbd098102779140f3c7ff1
DK> # Parent cbadbbee26c59304d6ef6a46e94eeb9b5dbed26b
DK> [TEST] Adding profile_init_list() in common_util.py to create a default profile
list.
I like this a lot, thanks!
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms(a)us.ibm.com