Sorry for auth confusion, please ignore this patch.
Thanks!
libvirt-cim-bounces@redhat.com wrote on 2008-04-29 16:42:59:
> # HG changeset patch
> # User Zhengang Li <lizg@cn.ibm.com>
> # Date 1209458574 25200
> # Node ID a5411ba6b4b3b92c2a447f575e895ebf6ea6fccc
> # Parent 2b83c1992dfc44573ba0c00729e36311355807ad
> [TEST] create a virtual storage pool in vxml.py
>
> libvirt-cim@redhat.com
>
> diff -r 2b83c1992dfc -r a5411ba6b4b3 suites/libvirt-cim/lib/XenKvmLib/vxml.py
> --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Sun Apr 27 19:22:032008 -0700
> +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Tue Apr 29 01:42:542008 -0700
> @@ -44,6 +44,7 @@
> from CimTest.Globals import logger, CIM_IP, CIM_PORT, CIM_NS,
> CIM_USER, CIM_PASS
> from CimTest.ReturnCodes import SKIP
> from XenKvmLib.classes import virt_types, get_typed_class
> +from XenKvmLib.const import CIM_REV
>
> class XMLClass:
> xml_string = ""
> @@ -536,6 +537,15 @@
> self.add_sub_node(interface, 'mac', address=net_mac)
> if net_type == 'bridge':
> self.set_vbridge(CIM_IP)
> +
> + if CIM_REV > 496:
> + pool = self.add_sub_node(devices, 'pool', type='disk')
> + self.add_sub_node(pool, 'name', 'test')
> + source = self.add_sub_node(pool, 'source')
> + self.add_sub_node(source, 'device', path='/dev/sda')
> + self.add_sub_node(source, 'dir', path='/dev')
> + target = self.add_sub_node(pool, 'target')
> + self.add_sub_node(target, 'path', '/dev')
>
> def set_emulator(self, emu):
> return self._set_emulator(emu)
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim@redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim