Skip to content

Commit b515a50

Browse files
authored
Merge pull request ceph#63335 from Hezko/nvmeof-align-gw-info
mgr/dashboard: align gw info, gw version, spdk_log_level get with old cli
2 parents ddfe6c8 + 443e50a commit b515a50

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,28 @@
22

33

44
class GatewayInfo(NamedTuple):
5+
bool_status: bool
6+
status: int
7+
error_message: str
8+
hostname: str
59
cli_version: str
610
version: str
711
name: str
812
group: str
913
addr: str
1014
port: int
1115
load_balancing_group: int
16+
max_hosts: int
17+
max_hosts_per_subsystem: int
18+
max_namespaces: int
19+
max_namespaces_per_subsystem: int
20+
max_subsystems: int
1221
spdk_version: Optional[str] = ""
1322

1423

1524
class GatewayVersion(NamedTuple):
25+
status: int
26+
error_message: str
1627
version: str
1728

1829

@@ -22,11 +33,17 @@ class GatewayLogLevelInfo(NamedTuple):
2233
log_level: str
2334

2435

36+
class NvmfLogFLag(NamedTuple):
37+
name: str
38+
enabled: bool
39+
40+
2541
class SpdkNvmfLogFlagsAndLevelInfo(NamedTuple):
2642
status: int
2743
error_message: str
2844
log_level: str
2945
log_print_level: str
46+
nvmf_log_flags: List[NvmfLogFLag]
3047

3148

3249
class Subsystem(NamedTuple):

0 commit comments

Comments
 (0)