forked from TrueCloudLab/frostfs-testlib
[#320] Added shards detach function
Signed-off-by: Dmitry Anurin <danurin@yadro.com>
This commit is contained in:
parent
f24bfc06fd
commit
451de5e07e
1 changed files with 18 additions and 0 deletions
|
@ -241,3 +241,21 @@ class FrostfsCliShards(CliCommand):
|
||||||
"control shards evacuation status",
|
"control shards evacuation status",
|
||||||
**{param: value for param, value in locals().items() if param not in ["self"]},
|
**{param: value for param, value in locals().items() if param not in ["self"]},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def detach(self, endpoint: str, address: Optional[str] = None, id: Optional[str] = None, timeout: Optional[str] = None):
|
||||||
|
"""
|
||||||
|
Detach and close the shards
|
||||||
|
|
||||||
|
Args:
|
||||||
|
address: Address of wallet account
|
||||||
|
endpoint: Remote node control address (as 'multiaddr' or '<host>:<port>')
|
||||||
|
id: List of shard IDs in base58 encoding
|
||||||
|
timeout: Timeout for an operation (default 15s)
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Command's result.
|
||||||
|
"""
|
||||||
|
return self._execute(
|
||||||
|
"control shards detach",
|
||||||
|
**{param: value for param, value in locals().items() if param not in ["self"]},
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue