[Libvirt-cim] [PATCH] [TEST] Add PoolXML class for creating a virtual pool in vxml.py
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Tue May 13 18:25:56 UTC 2008
Deepti B Kalakeri wrote:
>
>
> yunguol at cn.ibm.com wrote:
>> # HG changeset patch
>> # User Guolian Yun <yunguol at cn.ibm.com>
>> # Date 1210779243 -28800
>> # Node ID dcb1f04780e641973d1070440bc6f50fac2e9831
>> # Parent cdcf642c493a548d2deb499f223bb9a1f414cb3c
>> [TEST] Add PoolXML class for creating a virtual pool in vxml.py
>>
>> Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>
Please sign with your DCO, not mine.
>> +
>> + pool = self.add_sub_node(self.xdoc, 'pool', type='dir')
>> + self.add_sub_node(pool, 'name', self.pool_name)
>> + source = self.add_sub_node(pool, 'source')
>> + self.add_sub_node(source, 'device', path='/tmp')
>>
> Also , creation of the pool works fine without the source tags.
I source is needed for some kind of pools, such as iscsi pools.
However, for dir type storage pools, agreed: you don't need the source
tag.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list