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 void
addAcl(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl acl)
Adds the acl.void
addAclTag(java.lang.String aclName, java.lang.Integer aclTag)
Adds the ACL tag to the cache.void
addOrUpdateAclInterfaceMap(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> aclList, AclInterface port)
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)
boolean
doesDpnHaveAclInterface(java.math.BigInteger dpnId)
Checks if DPN has acl interface associated with it.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl
getAcl(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,org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl>
getAclMap()
java.lang.Integer
getAclTag(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.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl
removeAcl(java.lang.String aclName)
Removes the acl.void
removeAclInterfaceMap(java.util.List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> aclList, AclInterface port)
void
removeAclInterfaceMap(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid acl, AclInterface port)
java.lang.Integer
removeAclTag(java.lang.String aclName)
Removes the acl tag from the cache.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)
-
-
-
Method Detail
-
addAcl
public void addAcl(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl acl)
Adds the acl.- Parameters:
acl
- the acl
-
removeAcl
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl removeAcl(java.lang.String aclName)
Removes the acl.- Parameters:
aclName
- the acl name- Returns:
- the acl
-
getAcl
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl getAcl(java.lang.String aclName)
Gets the acl.- Specified by:
getAcl
in 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:
getInterfaceList
in 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:
getRemoteAcl
in 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:
getAclTag
in 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:
getAclInterfaceMap
in 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:
getEgressRemoteAclIdMap
in 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:
getIngressRemoteAclIdMap
in interfaceAclDataCache
-
getAclTagMap
public java.util.Map<java.lang.String,java.lang.Integer> getAclTagMap()
- Specified by:
getAclTagMap
in interfaceAclDataCache
-
getAclMap
public java.util.Map<java.lang.String,org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.Acl> getAclMap()
- Specified by:
getAclMap
in interfaceAclDataCache
-
-