Moti Asayag has uploaded a new change for review.

Change subject: core: Introduce HostSetupNetworksParameters parameters
......................................................................

core: Introduce HostSetupNetworksParameters parameters

The HostSetupNetworksParameters are the api for the new
HostSetupNetworks commands, for configuring networks and bonds
on hosts.

Change-Id: If353c08a8db257333d7696df0c7c887d179bc41a
Signed-off-by: Moti Asayag <[email protected]>
---
A 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/HostSetupNetworksParameters.java
1 file changed, 90 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/76/32776/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/HostSetupNetworksParameters.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/HostSetupNetworksParameters.java
new file mode 100644
index 0000000..aa8569a
--- /dev/null
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/HostSetupNetworksParameters.java
@@ -0,0 +1,90 @@
+package org.ovirt.engine.core.common.action;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.ovirt.engine.core.common.businessentities.network.Bond;
+import org.ovirt.engine.core.common.businessentities.network.NetworkAttachment;
+import org.ovirt.engine.core.common.config.ConfigValues;
+import org.ovirt.engine.core.common.validation.annotation.ConfiguredRange;
+
+
+public class HostSetupNetworksParameters extends VdsActionParameters {
+
+    private static final long serialVersionUID = 6819278948636850828L;
+
+    // TODO @Valid
+    // TODO @NoRepetitiveStaticIpInList(message = 
"VALIDATION.REPETITIVE.IP.IN.VDS")
+    private List<NetworkAttachment> networkAttachments;
+
+    private List<NetworkAttachment> removedNetworkAttachments;
+
+    private List<Bond> bonds;
+
+    private List<Bond> removedBonds;
+
+    private boolean checkConnectivity = true;
+
+    @ConfiguredRange(min = 1, maxConfigValue = 
ConfigValues.NetworkConnectivityCheckTimeoutInSeconds,
+            message = "VALIDATION.CONNECTIVITY.TIMEOUT.INVALID")
+    private Integer conectivityTimeout;
+
+    /**
+     * @param interfaces Interfaces that are connected to a network or bond
+     */
+    public HostSetupNetworksParameters() {
+        setNetworkAttachments(new ArrayList<NetworkAttachment>());
+        setRemovedNetworkAttachments(new ArrayList<NetworkAttachment>());
+        setBonds(new ArrayList<Bond>());
+        setRemovedBonds(new ArrayList<Bond>());
+    }
+
+    public boolean isCheckConnectivity() {
+        return checkConnectivity;
+    }
+
+    public void setCheckConnectivity(boolean checkConnectivity) {
+        this.checkConnectivity = checkConnectivity;
+    }
+
+    public Integer getConectivityTimeout() {
+        return conectivityTimeout;
+    }
+
+    public void setConectivityTimeout(Integer conectivityTimeout) {
+        this.conectivityTimeout = conectivityTimeout;
+    }
+
+    public List<NetworkAttachment> getNetworkAttachments() {
+        return networkAttachments;
+    }
+
+    public void setNetworkAttachments(List<NetworkAttachment> 
networkAttachments) {
+        this.networkAttachments = networkAttachments;
+    }
+
+    public List<NetworkAttachment> getRemovedNetworkAttachments() {
+        return removedNetworkAttachments;
+    }
+
+    public void setRemovedNetworkAttachments(List<NetworkAttachment> 
removedNetworkAttachments) {
+        this.removedNetworkAttachments = removedNetworkAttachments;
+    }
+
+    public List<Bond> getBonds() {
+        return bonds;
+    }
+
+    public void setBonds(List<Bond> bonds) {
+        this.bonds = bonds;
+    }
+
+    public List<Bond> getRemovedBonds() {
+        return removedBonds;
+    }
+
+    public void setRemovedBonds(List<Bond> removedBonds) {
+        this.removedBonds = removedBonds;
+    }
+}
+


-- 
To view, visit http://gerrit.ovirt.org/32776
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If353c08a8db257333d7696df0c7c887d179bc41a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to