Merge "Bug-590: Packet loss on first time ping test"
authorGiovanni Meo <gmeo@cisco.com>
Thu, 24 Apr 2014 13:06:05 +0000 (13:06 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 24 Apr 2014 13:06:05 +0000 (13:06 +0000)
opendaylight/samples/simpleforwarding/src/main/java/org/opendaylight/controller/samples/simpleforwarding/internal/SimpleForwardingImpl.java

index d3cefd41b3dcaa49ca0062c51c4787c9ad84714f..94e67247c8eaa44696f83d2950bea6650732f89a 100644 (file)
@@ -1010,12 +1010,10 @@ public class SimpleForwardingImpl implements IfNewHostNotify,
                     routing.getRoute(incomingNodeConnector.getNode(), destHost.getnodeconnectorNode()) != null)) {
 
             log.trace("Host {} is at {}", dIP, destHost.getnodeConnector());
-            HostNodePair key = new HostNodePair(destHost, destHost.getnodeconnectorNode());
 
             // If SimpleForwarding is aware of this host, it will try to install
             // a path. Forward packet until it's done.
-            if (dataPacketService != null && this.rulesDB.containsKey(key)) {
-
+            if (dataPacketService != null) {
 
                 /*
                  * if we know where the host is and there's a path from where this