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

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Chandan Purushothama 2014-11-13 22:56:01 -08:00 committed by SrikanteswaraRao Talluri
parent 25e5d00f60
commit 19781e094b
1 changed files with 7 additions and 0 deletions

View File

@ -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)"""