- // check if the incoming VM is within the same DC. If so, retrieve the local tunnel group pointer.
- // Else retrieve the tunnel to DC gateway group pointer.
-
- if (localDpnId == null || BigInteger.ZERO.equals(localDpnId)) {
- VpnNexthop vpnNexthop = getVpnNexthop(vpnId, prefixIp);
- //If the vrf entry is a static/extra route, the nexthop of the entry would be a adjacency in the vpn
- if(vpnNexthop == null) {
- vpnNexthop = getVpnNexthop(vpnId, nextHopIp + "/32");
- }
- localDpnId = (vpnNexthop == null) ? null : vpnNexthop.getDpnId();
- }