# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1245155432 25200
# Node ID f5e5d4436bff6320c18bb59b0d307969cd5c4545
# Parent 9a2db4596db33348b860a0e2337e377f237b0692
Modifying vxml.py to include netfs related info.
Tested on F10 with KVM and current sources.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 9a2db4596db3 -r f5e5d4436bff 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 Tue Jun 16 05:30:32 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