dddd6aac4cd4c8ffd318c26160c978fcdae1d97b
[netvirt.git] /
1 /*
2  * Copyright (c) 2016 Red Hat, Inc. and others. All rights reserved.
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 package org.opendaylight.netvirt.aclservice;
9
10 import java.math.BigInteger;
11 import java.util.List;
12
13 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
14 import org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager;
15 import org.opendaylight.netvirt.aclservice.api.AclServiceManager.Action;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.Ace;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.interfaces._interface.AllowedAddressPairs;
18 import org.slf4j.Logger;
19 import org.slf4j.LoggerFactory;
20
21 /**
22  * Provides the transparent implementation for ingress (w.r.t VM) ACL service.
23  *
24  * <p>
25  * Note: Table names used are w.r.t switch. Hence, switch ingress is VM egress
26  * and vice versa.
27  */
28 public class TransparentIngressAclServiceImpl extends IngressAclServiceImpl {
29
30     private static final Logger LOG = LoggerFactory.getLogger(TransparentIngressAclServiceImpl.class);
31
32     public TransparentIngressAclServiceImpl(DataBroker dataBroker, IMdsalApiManager mdsalManager) {
33         super(dataBroker, mdsalManager);
34     }
35
36     @Override
37     protected void programSpecificFixedRules(BigInteger dpid, String dhcpMacAddress,
38             List<AllowedAddressPairs> allowedAddresses, int lportTag, String portId, Action action, int addOrRemove) {
39     }
40
41     @Override
42     protected void programAceRule(BigInteger dpId, int lportTag, int addOrRemove, Ace ace, String portId,
43             List<AllowedAddressPairs> syncAllowedAddresses) {
44         LOG.debug("Transparent ingress acl service - do nothing");
45     }
46 }