General Sonar clean-up
[ovsdb.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / EgressAclProvider.java
1 package org.opendaylight.ovsdb.openstack.netvirt.api;
2
3 import java.util.List;
4
5 import org.opendaylight.neutron.spi.NeutronSecurityGroup;
6 import org.opendaylight.neutron.spi.Neutron_IPs;
7
8 /**
9  *  This interface allows egress Port Security flows to be written to devices
10  */
11 public interface EgressAclProvider {
12
13     /**
14      * Program port security ACL.
15      *
16      * @param dpid the dpid
17      * @param segmentationId the segmentation id
18      * @param attachedMac the attached mac
19      * @param localPort the local port
20      * @param securityGroup the security group
21      */
22     void programPortSecurityACL(Long dpid, String segmentationId, String attachedMac,
23                                 long localPort, NeutronSecurityGroup securityGroup);
24     /**
25      *  Program fixed egress ACL rules that will be associated with the VM port when a vm is spawned.
26      *
27      * @param dpid the dpid
28      * @param segmentationId the segmentation id
29      * @param attachedMac the attached mac
30      * @param localPort the local port
31      * @param srcAddressList the list of source ip address assigned to vm
32      * @param isLastPortinBridge is this the last port in the bridge
33      * @param isComputePort indicates whether this port is a compute port or not
34      * @param write is this flow writing or deleting
35      */
36     void programFixedSecurityACL(Long dpid, String segmentationId, String attachedMac,
37                                  long localPort, List<Neutron_IPs> srcAddressList, boolean isLastPortinBridge, boolean isComputePort, boolean write);
38 }