Interface ILispMapCache
- All Superinterfaces:
IMapCache
- All Known Implementing Classes:
SimpleMapCache
LISP southbound control protocol specific additions to the map-cache
interface.
- Author:
- Lorand Jakab
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(Eid key, Object value, Set<IpAddressBinary> sourceRlocs) Add mapping.void
addMapping
(Eid key, XtrId xtrId, Object value) Add mapping.getAllXtrIdMappings
(Eid key) Retrieve all xTR-ID sub-mappings for an EID.Look up the covering prefix for the argument, but exclude the argument itself, so the result is always less specific than the lookup key.getMapping
(Eid key, XtrId xtrId) Retrieves mapping for the provided srcKey, dstKey and a XtrId.getParentPrefix
(Eid key) Returns the parent prefix for given key.getSiblingPrefix
(Eid key) Returns the sibling prefix for given key.Returns the virtual parent sibling prefix for given key.void
removeMapping
(Eid key, XtrId xtrId) Remove mapping.void
removeXtrIdMappings
(Eid key, List<XtrId> xtrIds) Batch remove several xTR-ID sub-mappings under a certain key.Methods inherited from interface org.opendaylight.lispflowmapping.interfaces.mapcache.IMapCache
addData, addMapping, getData, getMapping, getSubtree, getWidestNegativeMapping, prettyPrintMappings, printMappings, removeData, removeMapping
-
Method Details
-
addMapping
Add mapping.- Parameters:
key
- Key of the mappingvalue
- Mapping to be storedsourceRlocs
- The set of RLOCs from all registrations. Used for merging
-
addMapping
Add mapping.- Parameters:
key
- Key of the mappingxtrId
- xTR-ID of the mappingvalue
- Mapping to be stored
-
getMapping
Retrieves mapping for the provided srcKey, dstKey and a XtrId.- Parameters:
key
- Key to be looked upxtrId
- xTR-ID for which look-up to be done- Returns:
- Returns the mapping found in the cache
-
removeMapping
Remove mapping.- Parameters:
key
- Key to be removedxtrId
- xTR-ID of the mapping to be removed
-
getAllXtrIdMappings
Retrieve all xTR-ID sub-mappings for an EID. Used for merging logic.- Parameters:
key
- Key to be looked up- Returns:
- The list of Objects which should be mappings
-
removeXtrIdMappings
Batch remove several xTR-ID sub-mappings under a certain key.This is a performance optimization, since interactive calls to removeMapping() would result in LPM lookups of the key for each call. With this method, only one such lookup is performed.
- Parameters:
key
- Key to be looked upxtrIds
- List of xTR-IDs that need to be removed
-
getCoveringLessSpecific
Look up the covering prefix for the argument, but exclude the argument itself, so the result is always less specific than the lookup key.- Parameters:
key
- The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.- Returns:
- The covering prefix.
-
getParentPrefix
Returns the parent prefix for given key.- Parameters:
key
- The key for which parent is to be returned.- Returns:
- The parent prefix of a specific key.
-
getSiblingPrefix
Returns the sibling prefix for given key.- Parameters:
key
- The key for which sibling is to be returned.- Returns:
- The sibling prefix of a specific key.
-
getVirtualParentSiblingPrefix
Returns the virtual parent sibling prefix for given key.- Parameters:
key
- The key for which virtual parent sibling is to be returned.- Returns:
- The virtual parent sibling prefix of a specific key.
-