Merge "Fix for bug 3357, handled update on vpn interface"
authorVivek Srivastava <vivek.v.srivastava@ericsson.com>
Wed, 27 May 2015 07:14:37 +0000 (07:14 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 27 May 2015 07:14:37 +0000 (07:14 +0000)
nexthopmgr/nexthopmgr-impl/src/main/java/org/opendaylight/vpnservice/nexthopmgr/NexthopManager.java

index bd767cbe3e38577cf60dffba333008361a279f85..052ed98f4e3998d82ad45f8325a82f1a2f4c8d1e 100644 (file)
@@ -417,7 +417,7 @@ public class NexthopManager implements L3nexthopService, AutoCloseable {
 
         String endpointIp = interfaceManager.getEndpointIpForDpn(input.getDpnId());
         LOG.trace("getEgressPointer: input {}, endpointIp {}", input, endpointIp);
-        if (input.getNexthopIp().equals(endpointIp)) {
+        if (input.getNexthopIp() == null || input.getNexthopIp().equals(endpointIp)) {
             VpnNexthop vpnNextHop = getVpnNexthop(input.getVpnId(), input.getIpPrefix(), 5);
             output.setEgressPointer(vpnNextHop.getEgressPointer());
             output.setLocalDestination(true);