# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1227755218 28800
# Node ID 5fb94ae83ed121d3b0ce54bde7e30175c2df6f70
# Parent 8807a94aa58a411d8596e717674c91c937881247
[TEST] #2 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 5fb94ae83ed1 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 Wed Nov 26 19:06:58 2008 -0800
@@ -68,6 +68,12 @@
if virt == 'LXC':
disk_path = '/tmp/lxc_files'
+ if virt == 'LXC' or virt == 'XenFV':
+ point_device = "%s/%s" %(t_dom, "mouse:usb")
+ elif virt == 'XenPV':
+ point_device = "%s/%s" %(t_dom, "mouse:xen")
+ else:
+ point_device = "%s/%s" %(t_dom, "mouse:ps2")
rasd_values = {
proc_cn : {
"InstanceID" : '%s/%s' %(t_dom,
"proc"),
@@ -94,7 +100,7 @@
"InstanceID" : "%s/%s" %(t_dom,
"graphics")
},
pd_cn : {
- "InstanceID" : "%s/%s" %(t_dom,
"mouse:ps2")
+ "InstanceID" : point_device
}
}
except Exception, details:
Show replies by date