Remove xtr id mappings on mapping overwrite 09/50909/5
authorShakib Ahmed <sheikahm@cisco.com>
Mon, 23 Jan 2017 21:43:29 +0000 (13:43 -0800)
committerShakib Ahmed <sheikahm@cisco.com>
Fri, 27 Jan 2017 23:48:27 +0000 (15:48 -0800)
commit6ec42de95dcece7f20ea7a134eccf03f36e50f16
tree2f9178f109b46ae17a4fddbfc93f91f6b6182654
parentd0e0d6b8bcc2156f2e22a532342ac664149b3761
Remove xtr id mappings on mapping overwrite

If there are 2 xtrs with different merge mapping configuration
registers same eid, we may or may not have merged mapping for
the eid in Map Cache but we will have xtr id specific mapping
in XTRID_RECORDS all the time. When we have xtr id specific
mapping from the xtr with merge configuration, but overwritten
mapping record in RECORD, then the xtr id specific mappings
may become untracked and hence not removed ever.

This patch removes previous xtrid specific mappings too when
mapping records are being overwritten.

Change-Id: Iaf8686367fb881b5794a3bf232e6c2e12d5ec6f8
Signed-off-by: Shakib Ahmed <sheikahm@cisco.com>
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/MappingSystem.java