]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: align gw info, gw version, spdk_log_level get with old cli 63335/head
authorTomer Haskalovitch <il033030@Tomers-MBP.lan>
Sun, 18 May 2025 18:58:37 +0000 (21:58 +0300)
committerTomer Haskalovitch <il033030@Tomers-MBP.lan>
Mon, 26 May 2025 08:42:07 +0000 (11:42 +0300)
Signed-off-by: Tomer Haskalovitch <il033030@Tomers-MBP.lan>
src/pybind/mgr/dashboard/model/nvmeof.py

index ec5bbc344c947317177f5ba1ea598ebf077d0053..eb8516bf054b4fe7c47db94828e057c2a7211794 100644 (file)
@@ -2,6 +2,10 @@ from typing import List, NamedTuple, Optional
 
 
 class GatewayInfo(NamedTuple):
+    bool_status: bool
+    status: int
+    error_message: str
+    hostname: str
     cli_version: str
     version: str
     name: str
@@ -9,10 +13,17 @@ class GatewayInfo(NamedTuple):
     addr: str
     port: int
     load_balancing_group: int
+    max_hosts: int
+    max_hosts_per_subsystem: int
+    max_namespaces: int
+    max_namespaces_per_subsystem: int
+    max_subsystems: int
     spdk_version: Optional[str] = ""
 
 
 class GatewayVersion(NamedTuple):
+    status: int
+    error_message: str
     version: str
 
 
@@ -22,11 +33,17 @@ class GatewayLogLevelInfo(NamedTuple):
     log_level: str
 
 
+class NvmfLogFLag(NamedTuple):
+    name: str
+    enabled: bool
+
+
 class SpdkNvmfLogFlagsAndLevelInfo(NamedTuple):
     status: int
     error_message: str
     log_level: str
     log_print_level: str
+    nvmf_log_flags: List[NvmfLogFLag]
 
 
 class Subsystem(NamedTuple):