From: John Mulligan Date: Mon, 22 Sep 2025 18:43:29 +0000 (-0400) Subject: mgr/smb: add a new host access enum X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1546d4463c6d22026e6c3e61bd585286ce802996;p=ceph.git mgr/smb: add a new host access enum This will be used in a future change to build up an access control in the share config that translates to 'hosts allow'/'hosts deny' in smb.conf. Signed-off-by: John Mulligan --- diff --git a/src/pybind/mgr/smb/enums.py b/src/pybind/mgr/smb/enums.py index 645858dbfd5..718f29a32e0 100644 --- a/src/pybind/mgr/smb/enums.py +++ b/src/pybind/mgr/smb/enums.py @@ -105,6 +105,13 @@ class LoginAccess(_StrEnum): return self +class HostAccess(_StrEnum): + """Determines if a host should be allowed or denied access to a share.""" + + ALLOW = 'allow' + DENY = 'deny' + + class SMBClustering(_StrEnum): DEFAULT = 'default' ALWAYS = 'always'