samuel
Committed by Gerrit Code Review

[ONOS-2374]Add getter method in IpTunnelEndPoint

Change-Id: Ieef1c27dad859fcdef93c9fc28f271c5043c8641
......@@ -48,6 +48,14 @@ public final class IpTunnelEndPoint implements TunnelEndPoint {
return new IpTunnelEndPoint(ip);
}
/**
* Returns IP address.
* @return IP address
*/
public IpAddress ip() {
return ip;
}
@Override
public int hashCode() {
return Objects.hash(ip);
......