Added fixed DHCP security rules, which will be added on a VM create.
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / api / IngressAclProvider.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  *
8  */
9
10 package org.opendaylight.ovsdb.openstack.netvirt.api;
11
12 import org.opendaylight.neutron.spi.NeutronSecurityGroup;
13
14 /**
15  *  This interface allows ingress Port Security flows to be written to devices
16  */
17 public interface IngressAclProvider {
18
19     /**
20      * Program port security ACL.
21      *
22      * @param dpid the dpid
23      * @param segmentationId the segmentation id
24      * @param attachedMac the attached mac
25      * @param localPort the local port
26      * @param securityGroup the security group
27      */
28     public void programPortSecurityACL(Long dpid, String segmentationId, String attachedMac,
29             long localPort, NeutronSecurityGroup securityGroup);
30     /**
31      * Program fixed ingress ACL rules that will be associated with the VM port when a vm is spawned.
32      * *
33      * @param dpid the dpid
34      * @param segmentationId the segmentation id
35      * @param attachedMac the attached mac
36      * @param localPort the local port
37      * @param isLastPortinSubnet is this the last port in the subnet
38      * @param isComputePort indicates whether this port is a compute port or not
39      * @param write is this flow writing or deleting
40      */
41     public void programFixedSecurityACL(Long dpid, String segmentationId,
42             String attachedMac, long localPort, boolean isLastPortinSubnet, boolean isComputePort, boolean write);
43 }