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>
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;