Signed-off-by: yangdongsheng <[email protected]>
---
 virttest/virsh.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/virttest/virsh.py b/virttest/virsh.py
index 2a77ff0..2ecd463 100644
--- a/virttest/virsh.py
+++ b/virttest/virsh.py
@@ -557,6 +557,17 @@ def reboot(name, options="", **dargs):
     return command("reboot --domain %s %s" % (name, options), **dargs)


+def connect(uri="",options="", **dargs):
+    """
+    Run a connect command to the uri.
+
+    @param uri: target uri connect to.
+    @param: options: options to pass to connect command
+    @return: CmdResult object.
+    """
+    return command("connect %s %s" % (uri, options), **dargs)
+
+
 def managedsave(name, options="", **dargs):
     """
     Managed save of a domain state.
--
1.7.1



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

Reply via email to