
# HG changeset patch # User Deepti B. Kalakeri<deeptik@linux.vnet.com> # Date 1245324295 25200 # Node ID b475307a2b5511de4d795a27377a40618eafa188 # Parent 9a2db4596db33348b860a0e2337e377f237b0692 [TEST] Modifying vxml.py to include netfs related info. Tested on F10 with KVM and current sources. Signed-off-by: Deepti B. Kalakeri <deeptik@linux.vnet.ibm.com> diff -r 9a2db4596db3 -r b475307a2b55 suites/libvirt-cim/lib/XenKvmLib/vxml.py --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Wed Jun 03 13:00:09 2009 -0700 +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Thu Jun 18 04:24:55 2009 -0700 @@ -331,10 +331,15 @@ dpoolname = self.get_value_xpath('/pool/name') return dpoolname - def xml_get_pool_attr_list(self): + def xml_get_pool_attr_list(self, mode_type=1): pool_attr_list = [] poolpath = self.get_value_xpath('/pool/target/path') pool_attr_list.append(poolpath) + if mode_type == 3: #Netfs + host = self.get_value_xpath('/pool/source/host/@name') + pool_attr_list.append(host) + src_dir = self.get_value_xpath('/pool/source/dir/@path') + pool_attr_list.append(src_dir) return pool_attr_list