Search in sources :

Example 1 with DefaultSwitchType

use of org.ovirt.engine.core.common.network.DefaultSwitchType in project ovirt-engine by oVirt.

the class ClusterOperationCommandBase method setDefaultSwitchTypeIfNeeded.

protected void setDefaultSwitchTypeIfNeeded() {
    Cluster cluster = getCluster();
    if (!cluster.isSetRequiredSwitchType()) {
        SwitchType defaultSwitchType = DefaultSwitchType.getDefaultSwitchType(cluster.getCompatibilityVersion());
        cluster.setRequiredSwitchTypeForCluster(defaultSwitchType);
    }
}
Also used : SwitchType(org.ovirt.engine.core.common.network.SwitchType) DefaultSwitchType(org.ovirt.engine.core.common.network.DefaultSwitchType) Cluster(org.ovirt.engine.core.common.businessentities.Cluster) NetworkCluster(org.ovirt.engine.core.common.businessentities.network.NetworkCluster)

Aggregations

Cluster (org.ovirt.engine.core.common.businessentities.Cluster)1 NetworkCluster (org.ovirt.engine.core.common.businessentities.network.NetworkCluster)1 DefaultSwitchType (org.ovirt.engine.core.common.network.DefaultSwitchType)1 SwitchType (org.ovirt.engine.core.common.network.SwitchType)1