@@ -0,0 +1,3004 @@
+package org.ovirt.engine.core.common.action;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashSet;%0Aimport java.util.List;%0Aimport java.util.Set;%0A%0Aimport org.ovirt.engine.core.common.businessentities.network.Bond;%0Aimport org.ovirt.engine.core.common.businessentities.network.NetworkAttachment;%0Aimport org.ovirt.engine.core.common.config.ConfigValues;%0Aimport org.ovirt.engine.core.common.validation.annotation.ConfiguredRange;%0Aimport org.ovirt.engine.core.compat.Guid;%0A%0A%0Apublic class HostSetupNetworksParameters extends VdsActionParameters %7B%0A%0A    private static final long serialVersionUID = 6819278948636850828L;%0A%0A    /*This field cannot be validated via bean validation due to validation conflict:%0A    %7B@link NetworkAttachment%7D in this class is present as new entity and entity to be removed, both requiring different%0A    conflicting validations. So %7B@link NetworkAttachment%7D will be validated manually in%0A     %7B@link org.ovirt.engine.core.bll.CommandBase#canDoAction%7D*/%0A    private List%3CNetworkAttachment%3E networkAttachments;%0A%0A    private Set%3CGuid%3E removedNetworkAttachments;%0A%0A    private List%3CBond%3E bonds;%0A%0A    private Set%3CGuid%3E removedBonds;%0A%0A    private boolean rollbackOnFailure = true;%0A%0A    @ConfiguredRange(min = 1, maxConfigValue = ConfigValues.NetworkConnectivityCheckTimeoutInSeconds,%0A            message = %22VALIDATION.CONNECTIVITY.TIMEOUT.INVALID%22)%0A    private Integer conectivityTimeout;%0A%0A    HostSetupNetworksParameters() %7B%0A    %7D%0A%0A    public HostSetupNetworksParameters(Guid hostId) %7B%0A        super(hostId);%0A        setNetworkAttachments(new ArrayList%3CNetworkAttachment%3E());%0A        setRemovedNetworkAttachments(new HashSet%3CGuid%3E());%0A        setBonds(new ArrayList%3CBond%3E());%0A        setRemovedBonds(new HashSet%3CGuid%3E());%0A    %7D%0A%0A    public boolean rollbackOnFailure() %7B%0A        return rollbackOnFailure;%0A    %7D%0A%0A    public void setRollbackOnFailure(boolean rollbackOnFailure) %7B%0A        this.rollbackOnFailure = rollbackOnFailure;%0A    %7D%0A%0A    public Integer getConectivityTimeout() %7B%0A        return conectivityTimeout;%0A    %7D%0A%0A    public void setConectivityTimeout(Integer conectivityTimeout) %7B%0A        this.conectivityTimeout = conectivityTimeout;%0A    %7D%0A%0A    public List%3CNetworkAttachment%3E getNetworkAttachments() %7B%0A        return networkAttachments;%0A    %7D%0A%0A    public void setNetworkAttachments(List%3CNetworkAttachment%3E networkAttachments) %7B%0A        this.networkAttachments = networkAttachments;%0A    %7D%0A%0A    public Set%3CGuid%3E getRemovedNetworkAttachments() %7B%0A        return removedNetworkAttachments;%0A    %7D%0A%0A    public void setRemovedNetworkAttachments(Set%3CGuid%3E removedNetworkAttachments) %7B%0A        this.removedNetworkAttachments = removedNetworkAttachments;%0A    %7D%0A%0A    public List%3CBond%3E getBonds() %7B%0A        return bonds;%0A    %7D%0A%0A    public void setBonds(List%3CBond%3E bonds) %7B%0A        this.bonds = bonds;%0A    %7D%0A%0A    public Set%3CGuid%3E getRemovedBonds() %7B%0A        return removedBonds;%0A    %7D%0A%0A    public void setRemovedBonds(Set%3CGuid%3E removedBonds) %7B%0A        this.removedBonds = removedBonds;%0A    %7D%0A%7D%0A%0A

Introduce HostSetupNetworksParameters parameters