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:
@@ -498,6 +498,11 @@ def get_lab_type(lab_config: LabConfig) -> str:
|
|||||||
Returns: the lab type
|
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()
|
nodes = lab_config.get_nodes()
|
||||||
|
|
||||||
controller_nodes = list(filter(lambda node: node.get_type() == 'controller', nodes))
|
controller_nodes = list(filter(lambda node: node.get_type() == 'controller', nodes))
|
||||||
|
|||||||
Reference in New Issue
Block a user