]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: align gw info, gw version, spdk_log_level get with old cli
authorTomer Haskalovitch <il033030@Tomers-MBP.lan>
Sun, 18 May 2025 18:58:37 +0000 (21:58 +0300)
committerTomer Haskalovitch <tomer.haska@ibm.com>
Tue, 1 Jul 2025 09:34:56 +0000 (12:34 +0300)
Signed-off-by: Tomer Haskalovitch <tomer.haska@ibm.com>
(cherry picked from commit 443e50af1f34caebe6d03c0c20e43a03d8a17e5a)

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

index 49b175a02e1ec06dd43291f35fc0f34935801eb2..bc2ee35cf23a5707b444f3e51cbd8b657127ca78 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):