Bug 9116: SMR children of a prefix too
[lispflowmapping.git] / mappingservice / api / src / main / java / org / opendaylight / lispflowmapping / interfaces / mapcache / ILispMapCache.java
index 0a745dfeb3c361da2c72e7f5382d82e297da0bd7..68e5c003fb2fa4b7c4b0f91ad6e4d6139166cbe6 100644 (file)
@@ -89,6 +89,16 @@ public interface ILispMapCache extends IMapCache {
      */
     void removeXtrIdMappings(Eid key, List<XtrId> xtrIds);
 
+    /**
+     * Look up the covering prefix for the argument, but exclude the argument itself, so the result is always less
+     * specific than the lookup key.
+     *
+     * @param key
+     *            The eid prefix, IPv4 or IPv6, to be looked up. Key must be normalized.
+     * @return The covering prefix.
+     */
+    Eid getCoveringLessSpecific(Eid key);
+
     /**
      * Returns the parent prefix for given key.
      *