Merge "Remove incorrect or unnecessary relativePaths"
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / IngressAclProvider.java
index 1589294c1834e34fc48fd5432513ebed713a04f4..23f5c5fb6af11e9214212a7dfcdc25eb8054b24b 100644 (file)
@@ -1,16 +1,14 @@
 /*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * 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 org.opendaylight.controller.networkconfig.neutron.NeutronSecurityGroup;
-import org.opendaylight.controller.sal.core.Node;
+import org.opendaylight.neutron.spi.NeutronSecurityGroup;
 
 /**
  *  This interface allows ingress Port Security flows to be written to devices
@@ -20,13 +18,25 @@ public interface IngressAclProvider {
     /**
      * Program port security ACL.
      *
-     * @param node the node
      * @param dpid the dpid
      * @param segmentationId the segmentation id
      * @param attachedMac the attached mac
      * @param localPort the local port
      * @param securityGroup the security group
      */
-    public void programPortSecurityACL(Node node, Long dpid, String segmentationId, String attachedMac,
-            long localPort, NeutronSecurityGroup securityGroup);
+    void programPortSecurityACL(Long dpid, String segmentationId, String attachedMac,
+                                long localPort, NeutronSecurityGroup securityGroup);
+    /**
+     * Program fixed ingress ACL rules that will be associated with the VM port when a vm is spawned.
+     * *
+     * @param dpid the dpid
+     * @param segmentationId the segmentation id
+     * @param attachedMac the attached mac
+     * @param localPort the local port
+     * @param isLastPortinSubnet is this the last port in the subnet
+     * @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, boolean isLastPortinSubnet, boolean isComputePort, boolean write);
 }