16b9536fba1baac2652181b40a3e22ed0f659d36
[netvirt.git] / aclservice / api / src / main / java / org / opendaylight / netvirt / aclservice / api / utils / AclDataCache.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. 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
9 package org.opendaylight.netvirt.aclservice.api.utils;
10
11 import java.util.Collection;
12 import java.util.Map;
13 import javax.annotation.Nonnull;
14 import javax.annotation.Nullable;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.DirectionBase;
18
19 public interface AclDataCache {
20
21     @Nullable
22     Acl getAcl(String aclName);
23
24     @Nullable
25     Collection<AclInterface> getInterfaceList(Uuid acl);
26
27     @Nullable
28     Collection<Uuid> getRemoteAcl(Uuid remoteAclId, Class<? extends DirectionBase> direction);
29
30     @Nullable
31     Integer getAclTag(String aclId);
32
33     @Nonnull
34     Map<Uuid, Collection<AclInterface>> getAclInterfaceMap();
35
36     @Nonnull
37     Map<Uuid, Collection<Uuid>> getEgressRemoteAclIdMap();
38
39     @Nonnull
40     Map<Uuid, Collection<Uuid>> getIngressRemoteAclIdMap();
41
42     @Nonnull
43     Map<String, Integer> getAclTagMap();
44
45     @Nonnull
46     Map<String, Acl> getAclMap();
47
48 }