Bug 8398 - communication between two tenant network failed while using
[netvirt.git] / vpnservice / aclservice / api / src / main / java / org / opendaylight / netvirt / aclservice / api / utils / AclInterface.java
index b12e14a9a566e5327174bcc633cb81ad16d2b4b6..d71347efc7ab302ace524677b1feaeb933619a45 100644 (file)
@@ -30,12 +30,21 @@ public class AclInterface {
     /** The dp id. */
     BigInteger dpId;
 
+    /** Elan tag of the interface. */
+    Long elanId;
+
+    /** VPN Id of the interface. */
+    Long vpnId;
+
     /** The security groups. */
     List<Uuid> securityGroups;
 
     /** The allowed address pairs. */
     List<AllowedAddressPairs> allowedAddressPairs;
 
+    /** The port is marked for delete. */
+    Boolean isMarkedForDelete = false;
+
     /**
      * Checks if is port security enabled.
      *
@@ -117,6 +126,42 @@ public class AclInterface {
         this.dpId = dpId;
     }
 
+    /**
+     * Gets elan id.
+     *
+     * @return elan id of the interface
+     */
+    public Long getElanId() {
+        return elanId;
+    }
+
+    /**
+     * Sets elan id of the interface.
+     *
+     * @param elanId elan id of the interface
+     */
+    public void setElanId(Long elanId) {
+        this.elanId = elanId;
+    }
+
+    /**
+     * Gets vpn id.
+     *
+     * @return VPN Id of the interface
+     */
+    public Long getVpnId() {
+        return vpnId;
+    }
+
+    /**
+     * Sets VPN Id of the interface.
+     *
+     * @param vpnId VPN Id of the interface
+     */
+    public void setVpnId(Long vpnId) {
+        this.vpnId = vpnId;
+    }
+
     /**
      * Gets the security groups.
      *
@@ -153,6 +198,22 @@ public class AclInterface {
         this.allowedAddressPairs = allowedAddressPairs;
     }
 
+    /**
+     * Retrieve isMarkedForDelete.
+     * @return the whether it is marked for delete
+     */
+    public Boolean isMarkedForDelete() {
+        return isMarkedForDelete;
+    }
+
+    /**
+     * Sets isMarkedForDelete.
+     * @param isMarkedForDelete boolean value
+     */
+    public void setIsMarkedForDelete(Boolean isMarkedForDelete) {
+        this.isMarkedForDelete = isMarkedForDelete;
+    }
+
     /* (non-Javadoc)
      * @see java.lang.Object#hashCode()
      */
@@ -166,6 +227,7 @@ public class AclInterface {
         result = prime * result + ((lportTag == null) ? 0 : lportTag.hashCode());
         result = prime * result + ((securityGroups == null) ? 0 : securityGroups.hashCode());
         result = prime * result + ((allowedAddressPairs == null) ? 0 : allowedAddressPairs.hashCode());
+        result = prime * result + ((isMarkedForDelete == null) ? 0 : isMarkedForDelete.hashCode());
         return result;
     }
 
@@ -226,6 +288,13 @@ public class AclInterface {
         } else if (!allowedAddressPairs.equals(other.allowedAddressPairs)) {
             return false;
         }
+        if (isMarkedForDelete == null) {
+            if (other.isMarkedForDelete != null) {
+                return false;
+            }
+        } else if (!isMarkedForDelete.equals(other.isMarkedForDelete)) {
+            return false;
+        }
         return true;
     }
 
@@ -236,6 +305,6 @@ public class AclInterface {
     public String toString() {
         return "AclInterface [portSecurityEnabled=" + portSecurityEnabled + ", interfaceId=" + interfaceId
                 + ", lportTag=" + lportTag + ", dpId=" + dpId + ", securityGroups=" + securityGroups
-                + ", allowedAddressPairs=" + allowedAddressPairs + "]";
+                + ", allowedAddressPairs=" + allowedAddressPairs + ", isMarkedForDelete=" + isMarkedForDelete + "]";
     }
 }