Merge branch 'topic/master/neutron-yang-migration' to branch 'master'
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / EgressAclProvider.java
index 1a933d60b1573ad58a2de3a3a85c910698cc5179..7438ce28c981656a096bf02bad1bf41ea659f266 100644 (file)
@@ -5,15 +5,16 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
+
 package org.opendaylight.ovsdb.openstack.netvirt.api;
 
 import java.util.List;
 
-import org.opendaylight.neutron.spi.NeutronSecurityGroup;
-import org.opendaylight.neutron.spi.Neutron_IPs;
+import org.opendaylight.ovsdb.openstack.netvirt.translator.NeutronSecurityGroup;
+import org.opendaylight.ovsdb.openstack.netvirt.translator.Neutron_IPs;
 
 /**
- *  This interface allows egress Port Security flows to be written to devices
+ *  This interface allows egress Port Security flows to be written to devices.
  */
 public interface EgressAclProvider {
 
@@ -25,9 +26,12 @@ public interface EgressAclProvider {
      * @param attachedMac the attached mac
      * @param localPort the local port
      * @param securityGroup the security group
+     * @param srcAddressList the src address associated with the vm port
+     * @param write  is this flow write or delete
      */
-    void programPortSecurityACL(Long dpid, String segmentationId, String attachedMac,
-                                long localPort, NeutronSecurityGroup securityGroup);
+    void programPortSecurityAcl(Long dpid, String segmentationId, String attachedMac,
+                                       long localPort, NeutronSecurityGroup securityGroup,
+                                       List<Neutron_IPs> srcAddressList, boolean write);
     /**
      *  Program fixed egress ACL rules that will be associated with the VM port when a vm is spawned.
      *
@@ -40,6 +44,7 @@ public interface EgressAclProvider {
      * @param isComputePort indicates whether this port is a compute port or not
      * @param write is this flow writing or deleting
      */
-    void programFixedSecurityACL(Long dpid, String segmentationId, String attachedMac,
-                                 long localPort, List<Neutron_IPs> srcAddressList, boolean isLastPortinBridge, boolean isComputePort, boolean write);
-}
+    void programFixedSecurityAcl(Long dpid, String segmentationId,String attachedMac, long localPort,
+                                  List<Neutron_IPs> srcAddressList, boolean isLastPortinBridge,
+                                  boolean isComputePort, boolean write);
+}
\ No newline at end of file