public HostSetupNetworksParameters(HostSetupNetworksParameters other) { super(other.getVdsId()); setNetworkAttachments(other.networkAttachments); setRemovedNetworkAttachments(other.removedNetworkAttachments); setCreateOrUpdateBonds(other.createOrUpdateBonds); setRemovedBonds(other.removedBonds); setRemovedUnmanagedNetworks(other.removedUnmanagedNetworks); setLabels(other.labels); setRemovedLabels(other.removedLabels); setRollbackOnFailure(other.rollbackOnFailure); setConectivityTimeout(other.conectivityTimeout); setCommitOnSuccess(other.commitOnSuccess); }
public HostSetupNetworksParameters createHostSetupNetworksParameters() { HostSetupNetworksParameters result = new HostSetupNetworksParameters(getEntity().getId()); for (NetworkAttachment attachment : hostSetupNetworksParametersData.getNetworkAttachments()) { attachment.setOverrideConfiguration(shouldSyncNetwork(attachment.getNetworkName())); } result.setNetworkAttachments( new ArrayList<NetworkAttachment>(hostSetupNetworksParametersData.getNetworkAttachments())); result.setRemovedNetworkAttachments(hostSetupNetworksParametersData.getRemovedNetworkAttachments()); result.setCreateOrUpdateBonds(new ArrayList<CreateOrUpdateBond>(hostSetupNetworksParametersData.getBonds())); result.setRemovedBonds(new HashSet<>(hostSetupNetworksParametersData.getRemovedBonds())); result.setRemovedUnmanagedNetworks(hostSetupNetworksParametersData.getRemovedUnmanagedNetworks()); result.setLabels(hostSetupNetworksParametersData.getLabels()); result.setRemovedLabels(hostSetupNetworksParametersData.getRemovedLabels()); result.setCommitOnSuccess(commitChanges.getEntity()); return result; }
parameters.setCommitOnSuccess(action.isSetCommitOnSuccess() && action.isCommitOnSuccess());