Skip to content

Commit 0e9c69a

Browse files
Tomer HaskalovitchTomer Haskalovitch
authored andcommitted
mgr/dashboard: align cli commands listener list, ns list, host list
Signed-off-by: Tomer Haskalovitch <[email protected]>
1 parent a6174b7 commit 0e9c69a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/pybind/mgr/dashboard/model/nvmeof.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ class NamespaceCreation(NamedTuple):
7474

7575

7676
class Namespace(NamedTuple):
77-
nsid: Optional[int]
78-
uuid: Optional[str]
7977
bdev_name: str
8078
rbd_image_name: str
8179
rbd_pool_name: str
@@ -86,7 +84,12 @@ class Namespace(NamedTuple):
8684
rw_mbytes_per_second: int
8785
r_mbytes_per_second: int
8886
w_mbytes_per_second: int
89-
trash_image: bool
87+
auto_visible: bool
88+
hosts: List[str]
89+
nsid: Optional[int]
90+
uuid: Optional[str]
91+
ns_subsystem_nqn: Optional[str]
92+
trash_image: Optional[bool]
9093

9194

9295
class NamespaceList(NamedTuple):
@@ -129,6 +132,7 @@ class Listener(NamedTuple):
129132
host_name: str
130133
trtype: str
131134
traddr: str
135+
secure: bool
132136
adrfam: int = 0 # 0: IPv4, 1: IPv6
133137
trsvcid: int = 4420
134138

@@ -141,6 +145,8 @@ class ListenerList(NamedTuple):
141145

142146
class Host(NamedTuple):
143147
nqn: str
148+
use_psk: Optional[bool]
149+
use_dhchap: Optional[bool]
144150

145151

146152
class HostsInfo(NamedTuple):

0 commit comments

Comments
 (0)