Repository: cloudstack Updated Branches: refs/heads/4.5 25e5d00f6 -> 5f9991799
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/19781e09 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/19781e09 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/19781e09 Branch: refs/heads/4.5 Commit: 19781e094b987cf65d05d890cd3cd86fc22cb873 Parents: 25e5d00 Author: Chandan Purushothama <[email protected]> Authored: Thu Nov 13 22:56:01 2014 -0800 Committer: SrikanteswaraRao Talluri <[email protected]> Committed: Mon Nov 17 15:10:08 2014 +0530 ---------------------------------------------------------------------- tools/marvin/marvin/lib/base.py | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/19781e09/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)"""
