# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1211170937 -19800
# Node ID 0555fb6ce718280349929a31724301e3b923abf9
# Parent a8dbad0a9854623167932386e4bae8a737b46672
[TEST] Adding missing xml_get_netpool_name() and xml_get_diskpool_name() function.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r a8dbad0a9854 -r 0555fb6ce718 suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Thu May 15 04:51:47 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Mon May 19 09:52:17 2008 +0530
@@ -213,6 +213,11 @@ class NetXML(Virsh, XMLClass):
def create_vnet(self):
return self.run(self.server, 'net-create', self.xml_string)
+ def xml_get_netpool_name(self):
+ npoolname = self.get_value_xpath('/network/name')
+ return npoolname
+
+
class PoolXML(Virsh, XMLClass):
def __init__(self, server, poolname=const.default_pool_name,
@@ -235,6 +240,11 @@ class PoolXML(Virsh, XMLClass):
def destroy_vpool(self):
return self.run(self.server, 'pool-destroy', self.pool_name)
+
+ def xml_get_diskpool_name(self):
+ dpoolname = self.get_value_xpath('/pool/name')
+ return dpoolname
+
class VirtXML(Virsh, XMLClass):
"""Base class for all XML generation &
operation"""
Show replies by date