
Deepti B. Kalakeri wrote:
# HG changeset patch # User Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> # Date 1213188838 25200 # Node ID 9fb67711f2dfe3010d20862f36160b5a91b36c49 # Parent b9100cec9aedb9f9243d753111a9a856e9480335 [TEST] Moving the init_list() to rasd.py
1) Most of the tc use init_list() fn to verify the RASD values, hence moved it to rasd.py. 2) Added the logic to pick up the networktype used by the guest while creating to verify the RASD values.
Signed-off-by: Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com>.
diff -r b9100cec9aed -r 9fb67711f2df suites/libvirt-cim/lib/XenKvmLib/rasd.py
This is a good idea, since this is done is several places. However, this patch conflicts with Daisy's patch to add support for containers. Maybe you can roll her changes into this patch?
+ + + rasd_values = { + proc_cn : { + "InstanceID" : proc_id, + "ResourceType" : 3, + }, + disk_cn : { + "InstanceID" : '%s/%s' %(test_dom, + test_disk), + "ResourceType" : 17, + "Address" : disk_path, + }, + net_cn : { + "InstanceID" : '%s/%s' %(test_dom, + test_mac), + "ResourceType" : 10 , + "ntype" : [ 'bridge', 'user', + 'network', 'ethernet'] + }, + mem_cn : { + "InstanceID" : '%s/%s' %(test_dom, "mem"), + "ResourceType" : 4, + "AllocationUnits" : alloc_units, + "VirtualQuantity" : (test_mem * 1024), + } + }
-- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com