Bug 9116: SMR children of a prefix too
[lispflowmapping.git] / mappingservice / mapcache / src / main / java / org / opendaylight / lispflowmapping / mapcache / SimpleMapCache.java
index e7a5753d018a416c4cc5d1913178814ee00a6a28..4310e35cbd438c47b3a1ab9fad12bc1c38020965 100644 (file)
@@ -175,6 +175,15 @@ public class SimpleMapCache implements ILispMapCache {
         return table.getWidestNegativePrefix(MaskUtil.normalize(eid));
     }
 
+    @Override
+    public Eid getCoveringLessSpecific(Eid eid) {
+        ILispDAO table = getVniTable(eid);
+        if (table == null) {
+            return null;
+        }
+        return table.getCoveringLessSpecific(MaskUtil.normalize(eid));
+    }
+
     @Override
     public Eid getParentPrefix(Eid eid) {
         ILispDAO table = getVniTable(eid);