Bug 9171: Fix lookup when first result is expired 01/66001/3
authorLorand Jakab <lojakab@cisco.com>
Tue, 28 Nov 2017 10:36:08 +0000 (12:36 +0200)
committerLorand Jakab <lojakab@cisco.com>
Thu, 7 Dec 2017 15:57:44 +0000 (17:57 +0200)
commit02186956943bb7932c75f1d7fde7a2adafec0df0
tree6fc0df638aeb8ab0dab5a63b17a740827265a696
parentc21a95c086d81e26aee48a624c8b44dc8c726522
Bug 9171: Fix lookup when first result is expired

When looking up southbound mappings, we check if they are expired, in
which case we remove them and return null. This patch keeps looking up
mappings after deletion, since a valid non-expired mapping matching the
lookup key may still exist.

JIRA: LISPMAP-168

Change-Id: I73550275cc27215296dd7b51c1708e6c7a5f8791
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/MappingSystem.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/MappingSystemTest.java