]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/nfs/export.py
import ceph quincy 17.2.6
[ceph.git] / ceph / src / pybind / mgr / nfs / export.py
index 6f129e55c528204944e54772ba5673f163b9a593..8fabb78f247a0edc4341a56579c5a93d24925c98 100644 (file)
@@ -635,7 +635,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):
@@ -652,6 +653,7 @@ class ExportMgr:
                         "fs_name": fs_name,
                     },
                     "clients": clients,
+                    "sectype": sectype,
                 }
             )
             log.debug("creating cephfs export %s", export)
@@ -675,7 +677,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:
@@ -695,6 +698,7 @@ class ExportMgr:
                         "user_id": user_id,
                     },
                     "clients": clients,
+                    "sectype": sectype,
                 }
             )
             log.debug("creating rgw export %s", export)