From: John Mulligan Date: Wed, 11 Jun 2025 18:58:12 +0000 (-0400) Subject: mgr/smb: update the cluster resource with a new custom_ports field X-Git-Tag: v20.1.0~42^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac196e4d8eeee0c09040a862bc7bbddb600bb0c6;p=ceph.git mgr/smb: update the cluster resource with a new custom_ports field Signed-off-by: John Mulligan (cherry picked from commit cec3bc6a7155286e9a36cd66cbb039b3de025953) --- diff --git a/src/pybind/mgr/smb/resources.py b/src/pybind/mgr/smb/resources.py index f342b53d6ba..e93822b188a 100644 --- a/src/pybind/mgr/smb/resources.py +++ b/src/pybind/mgr/smb/resources.py @@ -412,6 +412,7 @@ class Cluster(_RBase): # control if the cluster is really a cluster clustering: Optional[SMBClustering] = None public_addrs: Optional[List[ClusterPublicIPAssignment]] = None + custom_ports: Optional[Dict[str, int]] = None def validate(self) -> None: if not self.cluster_id: @@ -438,6 +439,7 @@ class Cluster(_RBase): 'domain settings not supported for user auth mode' ) validation.check_custom_options(self.custom_smb_global_options) + validation.check_custom_ports(self.custom_ports) @resourcelib.customize def _customize_resource(rc: resourcelib.Resource) -> resourcelib.Resource: