From 19781e094b987cf65d05d890cd3cd86fc22cb873 Mon Sep 17 00:00:00 2001 From: Chandan Purushothama Date: Thu, 13 Nov 2014 22:56:01 -0800 Subject: [PATCH] CLOUDSTACK-7913 : Added reconnect functionality to Host class in base.py Signed-off-by: SrikanteswaraRao Talluri --- tools/marvin/marvin/lib/base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py index 580d0ab77b4..e38c39430f8 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)"""