Bug 7272: Fix prefix removal in MultiTableMapCache 50/49050/2
authorLorand Jakab <lojakab@cisco.com>
Tue, 6 Dec 2016 18:22:13 +0000 (20:22 +0200)
committerLorand Jakab <lojakab@cisco.com>
Tue, 6 Dec 2016 19:16:00 +0000 (21:16 +0200)
commit0241b00bf9dddb826ae71904341de30e7f0b19a1
treecabd860a874d8cd7b4a4ddb90063cca745fad1ac
parent5e308699a9364cfb35e4bdde21248c4be33e8dd8
Bug 7272: Fix prefix removal in MultiTableMapCache

This fix is a bit of a brute-force, since it removes authentication keys
and all data, when removing a mapping, but for the MultiTableMapCache in
lispflowmapping as-is currently it is OK, since authentication keys are
stored in SimpleMapCache. So this is just a band-aid for the particular
use case reported in the bug, but a proper fix will require more
changes, which need to be discussed.

Change-Id: I295d2921f6b81505271887fbde2078ec38dbca0d
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
mappingservice/mapcache/src/main/java/org/opendaylight/lispflowmapping/mapcache/MultiTableMapCache.java
mappingservice/mapcache/src/test/java/org/opendaylight/lispflowmapping/mapcache/MultiTableMapCacheTest.java