use of org.ovirt.engine.core.common.network.DefaultFirewallType in project ovirt-engine by oVirt.
the class ClusterOperationCommandBase method setDefaultFirewallTypeIfNeeded.
protected void setDefaultFirewallTypeIfNeeded() {
Cluster cluster = getCluster();
if (cluster.getFirewallType() == null) {
FirewallType defaultFirewallType = DefaultFirewallType.getDefaultFirewallType(cluster.getCompatibilityVersion());
cluster.setFirewallType(defaultFirewallType);
}
}
Aggregations