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 d97ac0c..e13fb0d 100644
--- a/client/virt/libvirt_vm.py
+++ b/client/virt/libvirt_vm.py
@@ -111,6 +111,13 @@ def virsh_nodeinfo(uri = "", ignore_status=False, extra =
""):
cmd_nodeinfo = "nodeinfo %s" % extra
return virsh_cmd(cmd_nodeinfo, uri, ignore_status)
+def virsh_freecell(uri = "", ignore_status=False, extra = ""):
+ """
+ Prints the available amount of memory on the machine or within a NUMA cell.
+ """
+ cmd_freecell = "freecell %s" % extra
+ return virsh_cmd(cmd_freecell, uri, ignore_status)
+
def virsh_uri(uri=""):
"""
Return the hypervisor canonical URI.
--
1.7.1
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest