2 * Copyright (C) 2014 Red Hat, Inc.
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
10 package org.opendaylight.ovsdb.openstack.netvirt.api;
12 import org.opendaylight.neutron.spi.NeutronSecurityGroup;
15 * This interface allows ingress Port Security flows to be written to devices
17 public interface IngressAclProvider {
20 * Program port security ACL.
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
28 void programPortSecurityACL(Long dpid, String segmentationId, String attachedMac,
29 long localPort, NeutronSecurityGroup securityGroup);
31 * Program fixed ingress ACL rules that will be associated with the VM port when a vm is spawned.
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
41 void programFixedSecurityACL(Long dpid, String segmentationId,
42 String attachedMac, long localPort, boolean isLastPortinSubnet, boolean isComputePort, boolean write);