Source:
<code>public void onAddCluster() { ClusterModel model = (ClusterModel) getWindow(); Cluster cluster = new Cluster(); if (model.getProgress() != null) { return; } if (!model.validate(model.getEnableOvirtService().getEntity())) { return; } Version version = model.getVersion().getSelectedItem(); cluster.setName(model.getName().getEntity()); cluster.setDescription(model.getDescription().getEntity()); cluster.setComment(model.getComment().getEntity()); cluster.setStoragePoolId(model.getDataCenter().getSelectedItem().getId()); if (model.getCPU().getSelectedItem() != null) { cluster.setCpuName(model.getCPU().getSelectedItem().getCpuName()); } cluster.setMaxVdsMemoryOverCommit(model.getMemoryOverCommit()); cluster.setTransparentHugepages(true); cluster.setCompatibilityVersion(version); cluster.setMigrateOnError(model.getMigrateOnErrorOption()); cluster.setVirtService(model.getEnableOvirtService().getEntity()); cluster.setGlusterService(model.getEnableGlusterService().getEntity()); cluster.setOptionalReasonRequired(model.getEnableOptionalReason().getEntity()); cluster.setMaintenanceReasonRequired(model.getEnableHostMaintenanceReason().getEntity()); if (model.getClusterPolicy().getSelectedItem() != null) { ClusterPolicy selectedPolicy = model.getClusterPolicy().getSelectedItem(); cluster.setClusterPolicyId(selectedPolicy.getId()); cluster.setClusterPolicyProperties(KeyValueModel.convertProperties(model.getCustomPropertySheet() .serialize())); } if (version.less(AsyncDataProvider.getInstance().multiFirewallSupportSince())) { <START> cluster.setFirewallType(FirewallType.IPTABLES); <END> } model.startProgress(); Frontend.getInstance().runAction(ActionType.AddCluster, new ManagementNetworkOnClusterOperationParameters(cluster), result -> { DataCenterGuideModel localModel = (DataCenterGuideModel) result.getState(); localModel.postOnAddCluster(result.getReturnValue()); }, this); }</code><technical_language>read model.getFirewallType().getSelectedItem() for ClusterListModel? - I guess a similar issue for API if send for firewall, ClusterMapper touch this property stay default FIREWALLD</technical_language>

Target:
public void onAddCluster() { ClusterModel model = (ClusterModel) getWindow(); Cluster cluster = new Cluster(); if (model.getProgress() != null) { return; } if (!model.validate(model.getEnableOvirtService().getEntity())) { return; } Version version = model.getVersion().getSelectedItem(); cluster.setName(model.getName().getEntity()); cluster.setDescription(model.getDescription().getEntity()); cluster.setComment(model.getComment().getEntity()); cluster.setStoragePoolId(model.getDataCenter().getSelectedItem().getId()); if (model.getCPU().getSelectedItem() != null) { cluster.setCpuName(model.getCPU().getSelectedItem().getCpuName()); } cluster.setMaxVdsMemoryOverCommit(model.getMemoryOverCommit()); cluster.setTransparentHugepages(true); cluster.setCompatibilityVersion(version); cluster.setMigrateOnError(model.getMigrateOnErrorOption()); cluster.setVirtService(model.getEnableOvirtService().getEntity()); cluster.setGlusterService(model.getEnableGlusterService().getEntity()); cluster.setOptionalReasonRequired(model.getEnableOptionalReason().getEntity()); cluster.setMaintenanceReasonRequired(model.getEnableHostMaintenanceReason().getEntity()); cluster.setFirewallType(model.getFirewallType().getSelectedItem()); if (model.getClusterPolicy().getSelectedItem() != null) { ClusterPolicy selectedPolicy = model.getClusterPolicy().getSelectedItem(); cluster.setClusterPolicyId(selectedPolicy.getId()); cluster.setClusterPolicyProperties(KeyValueModel.convertProperties(model.getCustomPropertySheet() .serialize())); } model.startProgress(); Frontend.getInstance().runAction(ActionType.AddCluster, new ManagementNetworkOnClusterOperationParameters(cluster), result -> { DataCenterGuideModel localModel = (DataCenterGuideModel) result.getState(); localModel.postOnAddCluster(result.getReturnValue()); }, this); }