Fix issue in natservice with IPv6 VxLAN tunnels 37/75237/3
authorSridhar Gaddam <sgaddam@redhat.com>
Thu, 16 Aug 2018 11:46:13 +0000 (17:16 +0530)
committerSam Hague <shague@redhat.com>
Thu, 23 Aug 2018 14:23:55 +0000 (14:23 +0000)
When using IPv6 VxLAN tunnels along with SNAT Conntrack mode,
we have seen that use-cases like SNAT and FIP are not working
due to an exception in natservice leading to some missing flows.
This patch fixes this issue.

Issue: NETVIRT-1401

Change-Id: I2c9ced7290ef488ecbfc485245a384fd95071dd6
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/internal/NatUtil.java

index 9b7dfcfcd009afab098f33af16b62f157bb13830..a181be8a401627582af7026be4b601b10436ffe5 100644 (file)
@@ -569,7 +569,7 @@ public final class NatUtil {
         if (tunnelInfo.isPresent()) {
             List<TunnelEndPoints> nexthopIpList = tunnelInfo.get().getTunnelEndPoints();
             if (nexthopIpList != null && !nexthopIpList.isEmpty()) {
-                nextHopIp = nexthopIpList.get(0).getIpAddress().getIpv4Address().getValue();
+                nextHopIp = nexthopIpList.get(0).getIpAddress().stringValue();
             }
         }
         return nextHopIp;