mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
mgr/dashboard: Add --keep-connections parameter to NVMEoF CLI
Fixes: https://tracker.ceph.com/issues/78833 Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
This commit is contained in:
parent
6beaf71d96
commit
fd39161c7f
@ -2337,6 +2337,10 @@ else:
|
||||
"gw_group": Param(str, "NVMeoF gateway group", True, None),
|
||||
"server_address": Param(str, "NVMeoF gateway address", True, None),
|
||||
"traddr": Param(str, "NVMeoF gateway address (deprecated)", True, None),
|
||||
"keep_connections": Param(
|
||||
bool,
|
||||
"Do not disconnect existing connections from that host",
|
||||
True, False),
|
||||
},
|
||||
)
|
||||
@convert_to_model(model.RequestStatus)
|
||||
@ -2344,7 +2348,8 @@ else:
|
||||
def delete(self, nqn: str, host_nqn: str, force: Optional[bool] = False,
|
||||
gw_group: Optional[str] = None,
|
||||
server_address: Optional[str] = None,
|
||||
traddr: Optional[str] = None):
|
||||
traddr: Optional[str] = None,
|
||||
keep_connections: Optional[bool] = False):
|
||||
server_address = resolve_nvmeof_server_address(
|
||||
server_address=server_address,
|
||||
traddr=traddr
|
||||
@ -2353,7 +2358,8 @@ else:
|
||||
gw_group=gw_group,
|
||||
server_address=server_address
|
||||
).stub.remove_host(
|
||||
NVMeoFClient.pb2.remove_host_req(subsystem_nqn=nqn, host_nqn=host_nqn, force=force)
|
||||
NVMeoFClient.pb2.remove_host_req(subsystem_nqn=nqn, host_nqn=host_nqn, force=force,
|
||||
keep_connections=keep_connections)
|
||||
)
|
||||
|
||||
@empty_response
|
||||
|
||||
@ -13822,6 +13822,12 @@ paths:
|
||||
name: traddr
|
||||
schema:
|
||||
type: string
|
||||
- default: false
|
||||
description: Do not disconnect existing connections from that host
|
||||
in: query
|
||||
name: keep_connections
|
||||
schema:
|
||||
type: boolean
|
||||
responses:
|
||||
'202':
|
||||
content:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user