]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: add get_subsystem nvme command
authorTomer Haskalovitch <tomer.haska@ibm.com>
Mon, 8 Dec 2025 11:25:18 +0000 (13:25 +0200)
committerTomer Haskalovitch <tomer.haska@ibm.com>
Sat, 20 Dec 2025 23:53:46 +0000 (01:53 +0200)
Signed-off-by: Tomer Haskalovitch <tomer.haska@ibm.com>
src/pybind/mgr/dashboard/controllers/nvmeof.py

index 27479c40aa1320672606aa6eb3ca51057120075a..89ba821a977a33a4791886b0c4807c7be7705376 100644 (file)
@@ -309,6 +309,14 @@ else:
                     subsystem_nqn=nqn, dhchap_key=None
                 )
             )
+            
+        @NvmeofCLICommand("nvmeof get_subsystems", model.GetSubsystems)
+        @convert_to_model(model.GetSubsystems)
+        @handle_nvmeof_error
+        def get_subsystems(self):
+            return NVMeoFClient(gw_group=gw_group, traddr=traddr).stub.get_subsystems(
+                NVMeoFClient.pb2.get_subsystems_req()
+            )
 
         @NvmeofCLICommand("nvmeof get_subsystems", model.GetSubsystems)
         @convert_to_model(model.GetSubsystems)