[Libvirt-cim] [PATCH] [TEST] #2 Modifying devices.py to fix tc 01_netport.py which was failing on F9 libvirt-cim rpm

Deepti B. Kalakeri deeptik at linux.vnet.ibm.com
Fri Jun 20 05:50:02 UTC 2008


# HG changeset patch
# User Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>
# Date 1213940983 25200
# Node ID 2384eeff23be0643b12d908640bef054622c6a41
# Parent  93dbca94a762bb2ba443025db96d43977484c40d
[TEST] #2 Modifying devices.py to fix tc 01_netport.py which was failing on F9 libvirt-cim rpm.

Change in Patch 2
-----------------
Modified the changeset no from 598 to 599.


Signed-off-by: Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>

diff -r 93dbca94a762 -r 2384eeff23be suites/libvirt-cim/lib/XenKvmLib/devices.py
--- a/suites/libvirt-cim/lib/XenKvmLib/devices.py	Thu Jun 19 01:42:12 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/devices.py	Thu Jun 19 22:49:43 2008 -0700
@@ -26,9 +26,19 @@ from CimTest import CimExt
 from CimTest import CimExt
 from CimTest import Globals
 from XenKvmLib import assoc
+from XenKvmLib.const import CIM_REV
 from XenKvmLib.classes import get_typed_class
 
-LinkTechnology_Ethernet = 2
+net_rev = 599
+
+# The branch has to be removed once the new rpm
+# including the changes in revision 599 is available.
+# The value of LinkTechnology should be set to 2 for
+# network, bridge and ethernet type interfaces.
+if net_rev > CIM_REV:
+    LinkTechnology_Ethernet = 0
+else:
+    LinkTechnology_Ethernet = 2
 
 class CIM_Instance:
     def __init__(self, inst):




More information about the Libvirt-cim mailing list