From: John Mulligan Date: Mon, 29 Aug 2022 17:53:13 +0000 (-0400) Subject: mgr/nfs: add sectype argument to nfs export management funcs X-Git-Tag: v16.2.13~177^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b3e6e5910d783567efd3e1e72586d363ed9c3c9f;p=ceph.git mgr/nfs: add sectype argument to nfs export management funcs If the caller has supplied a sectype argument, pass it along to the ganesha configuration functions. Signed-off-by: John Mulligan (cherry picked from commit 5cdb1dd961800a2a40b81549c70ab31779dd05a8) --- diff --git a/src/pybind/mgr/nfs/export.py b/src/pybind/mgr/nfs/export.py index 3c4ce862576d..1e71684eedeb 100644 --- a/src/pybind/mgr/nfs/export.py +++ b/src/pybind/mgr/nfs/export.py @@ -629,7 +629,8 @@ class ExportMgr: path: str, squash: str, access_type: str, - clients: list = []) -> Tuple[int, str, str]: + clients: list = [], + sectype: Optional[List[str]] = None) -> Tuple[int, str, str]: pseudo_path = normalize_path(pseudo_path) if not self._fetch_export(cluster_id, pseudo_path): @@ -646,6 +647,7 @@ class ExportMgr: "fs_name": fs_name, }, "clients": clients, + "sectype": sectype, } ) log.debug("creating cephfs export %s", export) @@ -669,7 +671,8 @@ class ExportMgr: squash: str, bucket: Optional[str] = None, user_id: Optional[str] = None, - clients: list = []) -> Tuple[int, str, str]: + clients: list = [], + sectype: Optional[List[str]] = None) -> Tuple[int, str, str]: pseudo_path = normalize_path(pseudo_path) if not bucket and not user_id: @@ -689,6 +692,7 @@ class ExportMgr: "user_id": user_id, }, "clients": clients, + "sectype": sectype, } ) log.debug("creating rgw export %s", export)