Class GtpTunnelPeer
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.GtpTunnelPeer
-
- All Implemented Interfaces:
UpfEntity
@Beta public final class GtpTunnelPeer extends Object implements UpfEntity
A structure representing a GTP tunnel peer. The GTP Tunnel Peer is used by UPF to identify a second end of a GTP tunnel. The source and destination tunnel IPv4 addresses, and source UDP port are set based on the information from this structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GtpTunnelPeer.Builder
-
Field Summary
-
Fields inherited from interface org.onosproject.net.behaviour.upf.UpfEntity
DEFAULT_APP_ID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GtpTunnelPeer.Builder
builder()
Ip4Address
dst()
Get the destination address of this unidirectional GTP tunnel.boolean
equals(Object object)
int
hashCode()
Ip4Address
src()
Get the source IP address of this unidirectional GTP tunnel.short
srcPort()
Get the source L4 port of this unidirectional GTP tunnel.String
toString()
byte
tunPeerId()
Get the ID of the GTP tunnel peer.UpfEntityType
type()
Returns the type of this entity.
-
-
-
Method Detail
-
builder
public static GtpTunnelPeer.Builder builder()
-
tunPeerId
public byte tunPeerId()
Get the ID of the GTP tunnel peer.- Returns:
- GTP tunnel peer ID
-
src
public Ip4Address src()
Get the source IP address of this unidirectional GTP tunnel.- Returns:
- tunnel source IP
-
dst
public Ip4Address dst()
Get the destination address of this unidirectional GTP tunnel.- Returns:
- tunnel destination IP
-
srcPort
public short srcPort()
Get the source L4 port of this unidirectional GTP tunnel.- Returns:
- tunnel source port
-
type
public UpfEntityType type()
Description copied from interface:UpfEntity
Returns the type of this entity.
-
-