[Libvirt-cim] [PATCH] [TEST] Update get_exp_template_rasd_len() based on template RASD additions

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Jul 1 19:52:55 UTC 2009


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1246477946 25200
# Node ID 857398f2e66069d7a8421c3229d821b8e82467ea
# Parent  a8b01b9726bf386defc29540e33f81e0850ac3a6
[TEST] Update get_exp_template_rasd_len() based on template RASD additions

The providers now return template RASDs for both "bridge" and "network"
interface types.  In addition to that, the providers now return template
DiskPoolRASDs for iSCSI pools

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r a8b01b9726bf -r 857398f2e660 suites/libvirt-cim/lib/XenKvmLib/rasd.py
--- a/suites/libvirt-cim/lib/XenKvmLib/rasd.py	Wed Jul 01 11:23:00 2009 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/rasd.py	Wed Jul 01 12:52:26 2009 -0700
@@ -320,7 +320,7 @@
     exp_len = exp_base_num 
 
     if id == "DiskPool/0":
-        pool_types = 5
+        pool_types = 6
         return exp_base_num * pool_types 
     
     if virt == 'Xen' or virt == 'XenFV':
@@ -363,8 +363,9 @@
     
     if rev >= net_rasd_template_changes:
         dev_types = 2
+        net_types = 2
 
-        return exp_base_num * dev_types
+        return exp_base_num * dev_types * net_types
 
 def get_exp_template_rasd_len(virt, ip, id):
     curr_cim_rev, changeset = get_provider_version(virt, ip)




More information about the Libvirt-cim mailing list