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);
}
}
Aggregations