예제 #1
0
def ovs_cluster(system, default_data_center):
    OVS_CLUSTER_NAME = 'ovs-cluster'
    with clusterlib.cluster(system, default_data_center,
                            OVS_CLUSTER_NAME) as ovs_cluster:
        ovs_cluster.network_switch_type = clusterlib.SwitchType.OVS
        yield ovs_cluster
예제 #2
0
def cluster_0(system, default_data_center):
    with clusterlib.cluster(system, default_data_center, 'c0') as c0:
        yield c0
예제 #3
0
def cluster_1(system, default_data_center):
    with clusterlib.cluster(system, default_data_center, 'c1') as c1:
        yield c1
예제 #4
0
def ovs_cluster(system, default_data_center):
    OVS_CLUSTER_NAME = 'ovs-cluster'
    with clusterlib.cluster(
            system, default_data_center, OVS_CLUSTER_NAME) as ovs_cluster:
        ovs_cluster.set_network_switch_type(clusterlib.SwitchType.OVS)
        yield ovs_cluster