Esempio n. 1
0
 def _get_data_center(self):
     cluster = clusterlib.Cluster(self._parent_sdk_system)
     cluster.import_by_id(self.get_sdk_type().cluster.id)
     return cluster.get_data_center()
Esempio n. 2
0
def default_cluster(system):
    DEFAULT_NAME = 'Default'
    cluster = clusterlib.Cluster(system)
    cluster.import_by_name(DEFAULT_NAME)
    return cluster
def cluster_0(system, default_data_center):
    CLUSTER_0 = 'Cluster0'
    cluster = clusterlib.Cluster(system)
    cluster.create(default_data_center, CLUSTER_0)
    yield cluster
    cluster.remove()