If a lab has subclouds then it's a DC

Updating to properly select DC as lab type
when we have subclouds

Change-Id: Ia8b903027ba66a12dfd2f4e29002778e765e2b9e
This commit is contained in:
jpike
2025-01-23 10:26:31 -05:00
parent 444fdcc8e0
commit c0be775831

View File

@@ -498,6 +498,11 @@ def get_lab_type(lab_config: LabConfig) -> str:
Returns: the lab type
"""
# if lab has subclouds, then it's a DC
if len(lab_config.get_subclouds()) > 0:
return 'DC'
nodes = lab_config.get_nodes()
controller_nodes = list(filter(lambda node: node.get_type() == 'controller', nodes))