mirror of
https://github.com/apache/cloudstack
synced 2026-08-09 16:13:13 +00:00
CLOUDSTACK-7913 : Added reconnect functionality to Host class in base.py
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
parent
25e5d00f60
commit
19781e094b
@ -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)"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user