Repository: cloudstack
Updated Branches:
  refs/heads/master 3996b402a -> 91ffaaa5a


CLOUDSTACK-7913 : Added reconnect functionality to Host class in base.py

Signed-off-by: SrikanteswaraRao Talluri <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d8d60f01
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d8d60f01
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d8d60f01

Branch: refs/heads/master
Commit: d8d60f017250cc1acb98c8d5b3064c55b348ae56
Parents: 3996b40
Author: Chandan Purushothama <[email protected]>
Authored: Thu Nov 13 22:56:01 2014 -0800
Committer: SrikanteswaraRao Talluri <[email protected]>
Committed: Mon Nov 17 15:30:12 2014 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/lib/base.py | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d8d60f01/tools/marvin/marvin/lib/base.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py
index 580d0ab..e38c394 100755
--- a/tools/marvin/marvin/lib/base.py
+++ b/tools/marvin/marvin/lib/base.py
@@ -2462,6 +2462,13 @@ class Host:
         [setattr(cmd, k, v) for k, v in kwargs.items()]
         return(apiclient.updateHost(cmd))
 
+    @classmethod
+    def reconnect(cls, apiclient, **kwargs):
+        """Reconnect the Host"""
+        
+        cmd = reconnectHost.reconnectHostCmd()
+        [setattr(cmd, k, v) for k, v in kwargs.items()]
+        return(apiclient.reconnectHost(cmd))
 
 class StoragePool:
     """Manage Storage pools (Primary Storage)"""

Reply via email to