From: Alessandro Boch Date: Sat, 17 May 2014 20:40:14 +0000 (-0700) Subject: Change in sal.connectionservice.notifyNodeDisconnectFromMaster X-Git-Tag: autorelease-tag-v20140601202136_82eb3f9~79 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=8baeda4ab8d240f847cd530ef6af7c7c1c2d4d13 Change in sal.connectionservice.notifyNodeDisconnectFromMaster - On node disconnect from Master, notify the respective protocol plugin, not all of them Change-Id: I2bfb30d2f649a1bc3f07be60150a814bcd1b8a45 Signed-off-by: Alessandro Boch --- diff --git a/opendaylight/sal/connection/implementation/src/main/java/org/opendaylight/controller/sal/connection/implementation/internal/ConnectionService.java b/opendaylight/sal/connection/implementation/src/main/java/org/opendaylight/controller/sal/connection/implementation/internal/ConnectionService.java index a995bf8609..b2cb414303 100644 --- a/opendaylight/sal/connection/implementation/src/main/java/org/opendaylight/controller/sal/connection/implementation/internal/ConnectionService.java +++ b/opendaylight/sal/connection/implementation/src/main/java/org/opendaylight/controller/sal/connection/implementation/internal/ConnectionService.java @@ -150,9 +150,9 @@ public class ConnectionService implements IPluginOutConnectionService, IConnecti */ @Override public void notifyNodeDisconnectFromMaster(Node node) { - for (String pluginType : this.pluginService.keySet()) { - IPluginInConnectionService s = pluginService.get(pluginType); - s.notifyNodeDisconnectFromMaster(node); + IPluginInConnectionService s = pluginService.get(node.getType()); + if (s != null) { + s.notifyNodeDisconnectFromMaster(node); } } -} \ No newline at end of file +}