This patch adds a get_uuid() function to libvirt_vm.

Signed-off-by: Tang Chen <[email protected]>
---
 client/virt/libvirt_vm.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/client/virt/libvirt_vm.py b/client/virt/libvirt_vm.py
index 6c0e687..19130ff 100644
--- a/client/virt/libvirt_vm.py
+++ b/client/virt/libvirt_vm.py
@@ -1108,6 +1108,12 @@ class VM(virt_vm.BaseVM):
 
         logging.debug("VM '%s' is removed", self.name)
 
+    def get_uuid(self):
+        """
+        Return VM's UUID.
+        """
+        return virsh_uuid(self.name, self.connect_uri)
+
     def get_address(self, index=0):
         """
         Return the address of a NIC of the guest, in host space.
-- 
1.7.3.1


-- 
Best Regards,
Tang chen
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to