[Libvirt-cim] [PATCH 1 of 5] [TEST] devices lib changes for XenFV and KVM support

Guo Lian Yun yunguol at cn.ibm.com
Mon Mar 31 08:01:07 UTC 2008


# HG changeset patch
# User Guolian Yun <yunguol at cn.ibm.com>
# Date 1206950073 25200
# Node ID 41d06111a09a3f7542fab1cedfdba5bf0e87f6c8
# Parent  612ccb311e273b091659fe14f0471567abe61d08
[TEST] devices lib changes for XenFV and KVM support

Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>

diff -r 612ccb311e27 -r 41d06111a09a suites/libvirt-cim/lib/XenKvmLib/devices.py
--- a/suites/libvirt-cim/lib/XenKvmLib/devices.py	Fri Mar 28 00:03:41 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/devices.py	Mon Mar 31 00:54:33 2008 -0700
@@ -93,13 +93,13 @@ class KVM_Processor(CIM_Processor):
 class KVM_Processor(CIM_Processor):
     pass
 
-def enumerate(server, devtype, keys):
+def enumerate(server, devtype, keys, virt='Xen'):
     conn = pywbem.WBEMConnection('http://%s' % server,
                                  (Globals.CIM_USER, Globals.CIM_PASS),
                                  Globals.CIM_NS)
 
     list = []
-
+    devtype = eval(get_typed_class(virt, devtype))
     try:
         names = conn.EnumerateInstanceNames(devtype.__name__)
     except pywbem.CIMError, arg:




More information about the Libvirt-cim mailing list