Alona Kaplan has uploaded a new change for review.

Change subject: engine: adding 'paddthrough' property to vnicProfile
......................................................................

engine: adding 'paddthrough' property to vnicProfile

The 'passthrough' property will indicate that a VF should be directly
attached to the VM.

Change-Id: I0c0189a9a9fe76c1c7ca4977407f6d1e7342018c
Signed-off-by: Alona Kaplan <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/VnicProfile.java
1 file changed, 15 insertions(+), 0 deletions(-)


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

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/VnicProfile.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/VnicProfile.java
index 0ef2ed5..72a4053 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/VnicProfile.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/network/VnicProfile.java
@@ -32,6 +32,7 @@
     private boolean portMirroring;
     private String description;
     private Map<String, String> customProperties;
+       private boolean passthrough;
 
     @Override
     public Guid getId() {
@@ -92,6 +93,14 @@
         this.description = description;
     }
 
+       public boolean isPassthrough() {
+               return passthrough;
+       }
+
+       public void setPassthrough(boolean passthrough) {
+               this.passthrough = passthrough;
+       }
+
     public Object getQueryableId() {
         return getId();
     }
@@ -107,6 +116,7 @@
         result = prime * result + ((getNetworkQosId() == null) ? 0 : 
getNetworkQosId().hashCode());
         result = prime * result + (isPortMirroring() ? 1231 : 1237);
         result = prime * result + ((getDescription() == null) ? 0 : 
getDescription().hashCode());
+        result = prime * result + (isPassthrough() ? 1231 : 1237);
         return result;
     }
 
@@ -143,6 +153,9 @@
         if (!ObjectUtils.objectsEqual(getDescription(), 
other.getDescription())) {
             return false;
         }
+               if (isPassthrough() != other.isPassthrough()) {
+                       return false;
+               }
         return true;
     }
 
@@ -162,6 +175,8 @@
                 .append(getCustomProperties())
                 .append(", description=")
                 .append(getDescription())
+                .append(", passthrough=")
+                .append(isPassthrough())
                 .append("}");
         return builder.toString();
     }


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

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

Reply via email to