]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/nfs: add --addr to 'nfs export create'
authorSage Weil <sage@newdream.net>
Wed, 26 May 2021 18:37:34 +0000 (14:37 -0400)
committerSage Weil <sage@newdream.net>
Thu, 17 Jun 2021 20:18:06 +0000 (16:18 -0400)
commit137090dac07f95c3af0b09afc19da210b085019b
tree3367313679a926bb401d0b9224fce3c01a9260a7
parent2450447b45110ea98237618eda777e4e9285c6bd
mgr/nfs: add --addr to 'nfs export create'

Ganesha exports can have multiple client blocks with addresses and
access modes/squash behavior.  This cannot easily be exposed via a CLI.
However, providing no client address restriction is pretty useful to users
since it allows full access to the mount point with no restrictions.

Add an --addr argument that creates a single client block.  Set the top
export-level access_type to 'none' and squash to 'none' in this case.

Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/nfs/export.py
src/pybind/mgr/nfs/module.py