# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1227670060 28800
# Node ID 37f619827b03342cd42e0a45855aa59e0b9cd09b
# Parent 8807a94aa58a411d8596e717674c91c937881247
[TEST]Set InstanceID of InputRASD to work for all virt types in rasd_init_list()
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 8807a94aa58a -r 37f619827b03 suites/libvirt-cim/lib/XenKvmLib/rasd.py
--- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py Mon Nov 24 22:08:51 2008 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py Tue Nov 25 19:27:40 2008 -0800
@@ -67,7 +67,10 @@
disk_path = vsxml.xml_get_disk_source()
if virt == 'LXC':
disk_path = '/tmp/lxc_files'
-
+ if virt == 'LXC' or virt == 'XenFV':
+ point_device = "%s/%s" %(t_dom, "mouse:usb")
+ else:
+ point_device = "%s/%s" %(t_dom, "mouse:ps2")
rasd_values = {
proc_cn : {
"InstanceID" : '%s/%s' %(t_dom,
"proc"),
@@ -94,7 +97,7 @@
"InstanceID" : "%s/%s" %(t_dom,
"graphics")
},
pd_cn : {
- "InstanceID" : "%s/%s" %(t_dom,
"mouse:ps2")
+ "InstanceID" : point_device,
}
}
except Exception, details: