Signed-off-by: Yu Mingfei <[email protected]>
---
 virttest/virsh.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/virttest/virsh.py b/virttest/virsh.py
index f847d92..89779fa 100644
--- a/virttest/virsh.py
+++ b/virttest/virsh.py
@@ -1514,7 +1514,6 @@ def snapshot_revert(name, snapshot, **dargs):
     return command("snapshot-revert %s %s" % (name, snapshot), **dargs)
 
 
-
 def snapshot_delete(name, snapshot, **dargs):
     """
     Remove domain snapshot
@@ -1557,3 +1556,13 @@ def cpu_stats(name, options, **dargs):
         cmd += " %s" % options
 
     return command(cmd, **dargs)
+
+
+def ttyconsole(name, **dargs):
+    """
+    Print tty console device.
+
+    @param name: name, uuid or id of domain
+    @return: CmdResult instance
+    """
+    return command("ttyconsole %s" % name, **dargs)
-- 
1.7.11.7

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to