From: guyanhua <[email protected]>

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 5ef476e..9f28379 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.7.6

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

Reply via email to