Skip to content

Commit 4713b19

Browse files
Tomer HaskalovitchTomer Haskalovitch
authored andcommitted
mgr/dashboard: migrate nvmeof pr ceph#1327 to new cli
Signed-off-by: Tomer Haskalovitch <[email protected]>
1 parent 9b1a24b commit 4713b19

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ def create(
397397
force: Optional[bool] = False,
398398
no_auto_visible: Optional[bool] = False,
399399
disable_auto_resize: Optional[bool] = False,
400+
read_only: Optional[bool] = False,
400401
gw_group: Optional[str] = None,
401402
traddr: Optional[str] = None,
402403
):
@@ -412,7 +413,8 @@ def create(
412413
anagrpid=load_balancing_group,
413414
force=force,
414415
no_auto_visible=no_auto_visible,
415-
disable_auto_resize=disable_auto_resize
416+
disable_auto_resize=disable_auto_resize,
417+
read_only=read_only
416418
)
417419
)
418420

@@ -537,8 +539,11 @@ def resize(
537539
"nqn": Param(str, "NVMeoF subsystem NQN"),
538540
"nsid": Param(str, "NVMeoF Namespace ID"),
539541
"host_nqn": Param(str, 'NVMeoF host NQN. Use "*" to allow any host.'),
540-
"force": Param(bool, "Allow adding the host to the namespace even if the host "
541-
"has no access to the subsystem"),
542+
"force": Param(
543+
bool,
544+
"Allow adding the host to the namespace even if the host "
545+
"has no access to the subsystem"
546+
),
542547
"gw_group": Param(str, "NVMeoF gateway group", True, None),
543548
"traddr": Param(str, "NVMeoF gateway address", True, None),
544549
},

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class Namespace(NamedTuple):
128128
ns_subsystem_nqn: Optional[str]
129129
trash_image: Optional[bool]
130130
disable_auto_resize: Optional[bool]
131+
read_only: Optional[bool]
131132

132133

133134
class NamespaceList(NamedTuple):

0 commit comments

Comments
 (0)