activate deleteMapping function in Renderer 49/73549/7
authorGilles Thouenon <gilles.thouenon@orange.com>
Tue, 13 Feb 2018 09:53:57 +0000 (10:53 +0100)
committerguillaume.lambert <guillaume.lambert@orange.com>
Wed, 18 Jul 2018 13:27:29 +0000 (15:27 +0200)
the deleteMapping data function was added in a previous commit
dcc4c10093436dbb7692c50c210daf86fd5b124a

more details in Gerrit change 74091
https://git.opendaylight.org/gerrit/#/c/74091/

Co-authored-by: Christophe Betoule <christophe.betoule@orange.com>
Change-Id: I5392512a0b3323178aef6275de0d938cdb74a7e3
Signed-off-by: Martial COULIBALY <martial.coulibaly@gfi.fr>
renderer/src/main/java/org/opendaylight/transportpce/renderer/RendererNotificationsImpl.java

index 49778f900226361d98bcab190882754283907120..c0dd38ebdb2f94345dc0506976c125c991c30158 100644 (file)
@@ -185,7 +185,7 @@ public class RendererNotificationsImpl implements DataTreeChangeListener<Node> {
             if (rootNode.getModificationType() == ModificationType.DELETE) {
                 String nodeid = rootNode.getDataBefore().getKey().getNodeId().getValue();
                 LOG.info("Node {} removed...", nodeid);
-                this.currentMountedDevice.remove(nodeid);
+                this.portMapping.deleteMappingData(nodeid);
             }
 
             if (nnode != null) {