Search in sources :

Example 1 with DefaultFirewallType

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);
    }
}
Also used : FirewallType(org.ovirt.engine.core.common.network.FirewallType) DefaultFirewallType(org.ovirt.engine.core.common.network.DefaultFirewallType) 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 DefaultFirewallType (org.ovirt.engine.core.common.network.DefaultFirewallType)1 FirewallType (org.ovirt.engine.core.common.network.FirewallType)1