From: Sage Weil Date: Mon, 7 Jun 2021 20:45:29 +0000 (-0400) Subject: mgr/nfs: allow multiple addrs for new exports X-Git-Tag: v17.1.0~1551^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aaa57afd2930b6dafcf4dde4e2d939c428d290f4;p=ceph.git mgr/nfs: allow multiple addrs for new exports Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/nfs/module.py b/src/pybind/mgr/nfs/module.py index aa4ae6385c3..c4cda93214a 100644 --- a/src/pybind/mgr/nfs/module.py +++ b/src/pybind/mgr/nfs/module.py @@ -32,14 +32,14 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): binding: str, path: Optional[str] = '/', readonly: Optional[bool] = False, - addr: Optional[str] = None, + addr: Optional[List[str]] = None, squash: str = 'none', ) -> Tuple[int, str, str]: """Create a cephfs export""" clients = [] if addr: clients = [{ - 'addresses': [addr], + 'addresses': addr, 'access_type': 'ro' if readonly else 'rw', 'squash': squash, }] @@ -56,7 +56,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): cluster_id: str, binding: str, readonly: Optional[bool] = False, - addr: Optional[str] = None, + addr: Optional[List[str]] = None, realm: Optional[str] = None, ) -> Tuple[int, str, str]: """Create an RGW export""" @@ -64,7 +64,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): squash = 'none' if addr: clients = [{ - 'addresses': [addr], + 'addresses': addr, 'access_type': 'ro' if readonly else 'rw', 'squash': squash, }]