This patch adds virsh_version API to libvirt_vm.py file.

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

diff --git a/client/virt/libvirt_vm.py b/client/virt/libvirt_vm.py
index 4b391c1..4b46eb7 100644
--- a/client/virt/libvirt_vm.py
+++ b/client/virt/libvirt_vm.py
@@ -89,6 +89,13 @@ def virsh_hostname(uri = ""):
     return virsh_cmd("hostname", uri)


+def virsh_version(uri = ""):
+    """
+    Return the major version info about what this built from.
+    """
+    return virsh_cmd("version", uri)
+
+
 def virsh_driver(uri = ""):
     """
     return the driver by asking libvirt
--
1.7.1






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

Reply via email to