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: v21.0.0~256^2~276^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cec3bc6a7155286e9a36cd66cbb039b3de025953;p=ceph.git mgr/smb: update the cluster resource with a new custom_ports field Signed-off-by: John Mulligan --- diff --git a/src/pybind/mgr/smb/resources.py b/src/pybind/mgr/smb/resources.py index f342b53d6ba6..e93822b188ab 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: