]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Add port and secure-listeners to subsystem add NVMeoF CLI command 68363/head
authorGil Bregman <gbregman@il.ibm.com>
Mon, 13 Apr 2026 21:41:25 +0000 (00:41 +0300)
committerGil Bregman <gbregman@il.ibm.com>
Mon, 13 Apr 2026 21:41:25 +0000 (00:41 +0300)
Fixes: https://tracker.ceph.com/issues/75998
Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
src/pybind/mgr/dashboard/controllers/nvmeof.py
src/pybind/mgr/dashboard/openapi.yaml

index 839484138dbff99725c98697cd3cb524252f2eaf..9ee489295f297e311c18eacfa4e43617909a0c6f 100644 (file)
@@ -340,6 +340,10 @@ else:
                 "network_mask": Param([str],
                                       "Network mask to automatically create listeners",
                                       True, None),
+                "port": Param(int, "Port to use for the created listeners", True, None),
+                "secure_listeners": Param(bool,
+                                          "Make all the auto-listeners for this subsystem secure",
+                                          True, False),
             },
         )
         @convert_to_model(model.SubsystemStatus)
@@ -348,7 +352,8 @@ else:
                    max_namespaces: Optional[int] = None, no_group_append: Optional[bool] = False,
                    serial_number: Optional[str] = None, dhchap_key: Optional[str] = None,
                    gw_group: Optional[str] = None, server_address: Optional[str] = None,
-                   network_mask: Optional[List[str]] = None):
+                   network_mask: Optional[List[str]] = None,
+                   port: Optional[int] = None, secure_listeners: Optional[bool] = False):
             return NVMeoFClient(
                 gw_group=gw_group,
                 server_address=server_address
@@ -358,6 +363,7 @@ else:
                     max_namespaces=max_namespaces, enable_ha=True,
                     no_group_append=no_group_append,
                     dhchap_key=dhchap_key, network_mask=network_mask,
+                    port=port, secure_listeners=secure_listeners
                 )
             )
 
index 44a7d20c9c5d391b1d4c3aa4741eb962327ffe04..7e0b76dd2873cc141b97ad556fb6fb9e0c2b1923 100644 (file)
@@ -13078,6 +13078,13 @@ paths:
                 nqn:
                   description: NVMeoF subsystem NQN
                   type: string
+                port:
+                  description: Port to use for the created listeners
+                  type: integer
+                secure_listeners:
+                  default: false
+                  description: Make all the auto-listeners for this subsystem secure
+                  type: boolean
                 serial_number:
                   description: Subsystem serial number
                   type: string