Committed by
Gerrit Code Review
[ONOS-2374]Add getter method in IpTunnelEndPoint
Change-Id: Ieef1c27dad859fcdef93c9fc28f271c5043c8641
Showing
1 changed file
with
8 additions
and
0 deletions
| ... | @@ -48,6 +48,14 @@ public final class IpTunnelEndPoint implements TunnelEndPoint { | ... | @@ -48,6 +48,14 @@ public final class IpTunnelEndPoint implements TunnelEndPoint { |
| 48 | return new IpTunnelEndPoint(ip); | 48 | return new IpTunnelEndPoint(ip); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | + /** | ||
| 52 | + * Returns IP address. | ||
| 53 | + * @return IP address | ||
| 54 | + */ | ||
| 55 | + public IpAddress ip() { | ||
| 56 | + return ip; | ||
| 57 | + } | ||
| 58 | + | ||
| 51 | @Override | 59 | @Override |
| 52 | public int hashCode() { | 60 | public int hashCode() { |
| 53 | return Objects.hash(ip); | 61 | return Objects.hash(ip); | ... | ... |
-
Please register or login to post a comment