Skip to content

Commit cec3bc6

Browse files
mgr/smb: update the cluster resource with a new custom_ports field
Signed-off-by: John Mulligan <[email protected]>
1 parent e7e13ad commit cec3bc6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pybind/mgr/smb/resources.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ class Cluster(_RBase):
412412
# control if the cluster is really a cluster
413413
clustering: Optional[SMBClustering] = None
414414
public_addrs: Optional[List[ClusterPublicIPAssignment]] = None
415+
custom_ports: Optional[Dict[str, int]] = None
415416

416417
def validate(self) -> None:
417418
if not self.cluster_id:
@@ -438,6 +439,7 @@ def validate(self) -> None:
438439
'domain settings not supported for user auth mode'
439440
)
440441
validation.check_custom_options(self.custom_smb_global_options)
442+
validation.check_custom_ports(self.custom_ports)
441443

442444
@resourcelib.customize
443445
def _customize_resource(rc: resourcelib.Resource) -> resourcelib.Resource:

0 commit comments

Comments
 (0)