forked from TrueCloudLab/frostfs-testlib
[#325] Added get nns records method to frostfs-adm
Signed-off-by: Dmitry Anurin <danurin@yadro.com>
This commit is contained in:
parent
3dc7a5bdb0
commit
7d6768c83f
1 changed files with 23 additions and 0 deletions
|
@ -463,3 +463,26 @@ class FrostfsAdmMorph(CliCommand):
|
||||||
"morph ape rm-rule-chain",
|
"morph ape rm-rule-chain",
|
||||||
**{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 get_nns_records(
|
||||||
|
self,
|
||||||
|
name: str,
|
||||||
|
type: Optional[str] = None,
|
||||||
|
rpc_endpoint: Optional[str] = None,
|
||||||
|
alphabet_wallets: Optional[str] = None,
|
||||||
|
) -> CommandResult:
|
||||||
|
"""Returns domain record of the specified type
|
||||||
|
|
||||||
|
Args:
|
||||||
|
name: Domain name
|
||||||
|
type: Domain name service record type(A|CNAME|SOA|TXT)
|
||||||
|
rpc_endpoint: N3 RPC node endpoint
|
||||||
|
alphabet_wallets: path to alphabet wallets dir
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Command's result
|
||||||
|
"""
|
||||||
|
return self._execute(
|
||||||
|
"morph nns get-records",
|
||||||
|
**{param: value for param, value in locals().items() if param not in ["self"]},
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue