
# HG changeset patch # User Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> # Date 1242128012 25200 # Node ID bbea7924536083ce35de6ec8b680a7e873591d82 # Parent 92caf252c2fa8c8a7a9b70548d12b03c52f3935c [TEST] Adding InputRASD to vsms.py. Tested on F10 with KVM and current sources. Signed-off-by: Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> diff -r 92caf252c2fa -r bbea79245360 suites/libvirt-cim/lib/XenKvmLib/vsms.py --- a/suites/libvirt-cim/lib/XenKvmLib/vsms.py Mon May 04 03:49:32 2009 -0700 +++ b/suites/libvirt-cim/lib/XenKvmLib/vsms.py Tue May 12 04:33:32 2009 -0700 @@ -34,6 +34,7 @@ RASD_TYPE_NET_OTHER = 11 RASD_TYPE_DISK = 17 RASD_TYPE_GRAPHICS = 24 +RASD_TYPE_INPUT = 13 VSSD_RECOVERY_NONE = 2 VSSD_RECOVERY_RESTART = 3 @@ -266,6 +267,32 @@ def get_gasd_class(virt): pass +class CIM_InputResourceAllocationSettingData(CIMClassMOF): + def __init__(self, name, res_sub_type=None, bus_type=None): + self.InstanceID = '%s' % name + self.ResourceType = RASD_TYPE_INPUT + + if res_sub_type != None: + self.ResourceSubType = res_sub_type + self.InstanceID += '/%s' % res_sub_type + + if bus_type != None: + self.BusType = bus_type + self.InstanceID += ':%s' % bus_type + +class Xen_InputResourceAllocationSettingData(CIM_InputResourceAllocationSettingData): + pass + +class KVM_InputResourceAllocationSettingData(CIM_InputResourceAllocationSettingData): + pass + +class LXC_InputResourceAllocationSettingData(CIM_InputResourceAllocationSettingData): + pass + +@eval_cls('InputResourceAllocationSettingData') +def get_iasd_class(virt): + pass + def default_vssd_rasd_str(dom_name='test_domain', disk_dev='xvda', disk_source=const.Xen_disk_path,