Class AclDataUtil
- java.lang.Object
-
- org.opendaylight.netvirt.aclservice.utils.AclDataUtil
-
- All Implemented Interfaces:
AclDataCache
@Singleton public class AclDataUtil extends java.lang.Object implements AclDataCache
-
-
Constructor Summary
Constructors Constructor Description AclDataUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAcl(Acl acl)Adds the acl.voidaddAclTag(java.lang.String aclName, java.lang.Integer aclTag)Adds the ACL tag to the cache.voidaddOrUpdateAclInterfaceMap(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> aclList, AclInterface port)voidaddRemoteAclId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid remoteAclId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid aclId, java.lang.Class<? extends DirectionBase> direction)booleandoesDpnHaveAclInterface(java.math.BigInteger dpnId)Checks if DPN has acl interface associated with it.AclgetAcl(java.lang.String aclName)Gets the acl.java.util.Map<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid,java.util.Collection<AclInterface>>getAclInterfaceMap()java.util.Map<java.lang.String,Acl>getAclMap()java.lang.IntegergetAclTag(java.lang.String aclName)Gets the acl tag from the cache.java.util.Map<java.lang.String,java.lang.Integer>getAclTagMap()java.util.Map<java.lang.String,java.util.Set<AclInterface>>getAllRemoteAclInterfaces(java.lang.Class<? extends DirectionBase> direction)Gets the set of ACL interfaces per ACL (in a map) which has remote ACL.java.util.Map<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid,java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid>>getEgressRemoteAclIdMap()java.util.Map<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid,java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid>>getIngressRemoteAclIdMap()@NonNull java.util.Collection<AclInterface>getInterfaceList(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid acl)java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid>getRemoteAcl(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid remoteAclId, java.lang.Class<? extends DirectionBase> direction)java.util.concurrent.ConcurrentMap<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid,java.util.Map<java.lang.String,java.util.Set<AclInterface>>>getRemoteAclInterfaces(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> remoteAclIdList, java.lang.Class<? extends DirectionBase> direction)@Nullable java.util.Map<java.lang.String,java.util.Set<AclInterface>>getRemoteAclInterfaces(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid remoteAclId, java.lang.Class<? extends DirectionBase> direction)Gets the set of ACL interfaces per ACL (in a map) which has specified remote ACL ID.AclremoveAcl(java.lang.String aclName)Removes the acl.voidremoveAclInterfaceMap(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> aclList, AclInterface port)voidremoveAclInterfaceMap(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid acl, AclInterface port)java.lang.IntegerremoveAclTag(java.lang.String aclName)Removes the acl tag from the cache.voidremoveRemoteAclId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid remoteAclId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid aclId, java.lang.Class<? extends DirectionBase> direction)
-
-
-
Method Detail
-
addAcl
public void addAcl(Acl acl)
Adds the acl.- Parameters:
acl- the acl
-
removeAcl
public Acl removeAcl(java.lang.String aclName)
Removes the acl.- Parameters:
aclName- the acl name- Returns:
- the acl
-
getAcl
public Acl getAcl(java.lang.String aclName)
Gets the acl.- Specified by:
getAclin interfaceAclDataCache- Parameters:
aclName- the acl name- Returns:
- the acl
-
addOrUpdateAclInterfaceMap
public void addOrUpdateAclInterfaceMap(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> aclList, AclInterface port)
-
removeAclInterfaceMap
public void removeAclInterfaceMap(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> aclList, AclInterface port)
-
removeAclInterfaceMap
public void removeAclInterfaceMap(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid acl, AclInterface port)
-
getInterfaceList
public @NonNull java.util.Collection<AclInterface> getInterfaceList(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid acl)
- Specified by:
getInterfaceListin interfaceAclDataCache
-
getRemoteAclInterfaces
public java.util.concurrent.ConcurrentMap<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid,java.util.Map<java.lang.String,java.util.Set<AclInterface>>> getRemoteAclInterfaces(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> remoteAclIdList, java.lang.Class<? extends DirectionBase> direction)
-
getRemoteAclInterfaces
public @Nullable java.util.Map<java.lang.String,java.util.Set<AclInterface>> getRemoteAclInterfaces(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid remoteAclId, java.lang.Class<? extends DirectionBase> direction)
Gets the set of ACL interfaces per ACL (in a map) which has specified remote ACL ID.- Parameters:
remoteAclId- the remote acl iddirection- the direction- Returns:
- the set of ACL interfaces per ACL (in a map) which has specified remote ACL ID.
-
addRemoteAclId
public void addRemoteAclId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid remoteAclId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid aclId, java.lang.Class<? extends DirectionBase> direction)
-
removeRemoteAclId
public void removeRemoteAclId(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid remoteAclId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid aclId, java.lang.Class<? extends DirectionBase> direction)
-
getRemoteAcl
public java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getRemoteAcl(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid remoteAclId, java.lang.Class<? extends DirectionBase> direction)- Specified by:
getRemoteAclin interfaceAclDataCache
-
getAllRemoteAclInterfaces
public java.util.Map<java.lang.String,java.util.Set<AclInterface>> getAllRemoteAclInterfaces(java.lang.Class<? extends DirectionBase> direction)
Gets the set of ACL interfaces per ACL (in a map) which has remote ACL.- Parameters:
direction- the direction- Returns:
- the set of ACL interfaces per ACL (in a map) which has remote ACL.
-
addAclTag
public void addAclTag(java.lang.String aclName, java.lang.Integer aclTag)Adds the ACL tag to the cache.- Parameters:
aclName- the ACL nameaclTag- the ACL tag
-
removeAclTag
public java.lang.Integer removeAclTag(java.lang.String aclName)
Removes the acl tag from the cache.- Parameters:
aclName- the acl name- Returns:
- the previous value associated with key, or null if there was no mapping for key.
-
getAclTag
public java.lang.Integer getAclTag(java.lang.String aclName)
Gets the acl tag from the cache.- Specified by:
getAclTagin interfaceAclDataCache- Parameters:
aclName- the acl name- Returns:
- the acl tag
-
doesDpnHaveAclInterface
public boolean doesDpnHaveAclInterface(java.math.BigInteger dpnId)
Checks if DPN has acl interface associated with it.- Parameters:
dpnId- the datapath ID of DPN- Returns:
- true if DPN is associated with Acl interface, else false
-
getAclInterfaceMap
public java.util.Map<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid,java.util.Collection<AclInterface>> getAclInterfaceMap()
- Specified by:
getAclInterfaceMapin interfaceAclDataCache
-
getEgressRemoteAclIdMap
public java.util.Map<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid,java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid>> getEgressRemoteAclIdMap()
- Specified by:
getEgressRemoteAclIdMapin interfaceAclDataCache
-
getIngressRemoteAclIdMap
public java.util.Map<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid,java.util.Collection<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid>> getIngressRemoteAclIdMap()
- Specified by:
getIngressRemoteAclIdMapin interfaceAclDataCache
-
getAclTagMap
public java.util.Map<java.lang.String,java.lang.Integer> getAclTagMap()
- Specified by:
getAclTagMapin interfaceAclDataCache
-
getAclMap
public java.util.Map<java.lang.String,Acl> getAclMap()
- Specified by:
getAclMapin interfaceAclDataCache
-
-