Class UpfGtpTunnelPeer
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.UpfGtpTunnelPeer
-
- All Implemented Interfaces:
UpfEntity
@Beta public final class UpfGtpTunnelPeer extends Object implements UpfEntity
A structure representing a UPF 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
UpfGtpTunnelPeer.Builder
-
Field Summary
-
Fields inherited from interface org.onosproject.net.behaviour.upf.UpfEntity
DEFAULT_APP_ID, DEFAULT_APP_INDEX, DEFAULT_SESSION_INDEX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpfGtpTunnelPeer.Builder
builder()
Ip4Address
dst()
Get the destination address of this unidirectional UPF GTP tunnel.boolean
equals(Object object)
int
hashCode()
Ip4Address
src()
Get the source IP address of this unidirectional UPF GTP tunnel.short
srcPort()
Get the source L4 port of this unidirectional UPF GTP tunnel.String
toString()
byte
tunPeerId()
Get the ID of the UPF GTP tunnel peer.UpfEntityType
type()
Returns the type of this entity.
-
-
-
Method Detail
-
builder
public static UpfGtpTunnelPeer.Builder builder()
-
tunPeerId
public byte tunPeerId()
Get the ID of the UPF GTP tunnel peer.- Returns:
- GTP tunnel peer ID
-
src
public Ip4Address src()
Get the source IP address of this unidirectional UPF GTP tunnel.- Returns:
- tunnel source IP
-
dst
public Ip4Address dst()
Get the destination address of this unidirectional UPF GTP tunnel.- Returns:
- tunnel destination IP
-
srcPort
public short srcPort()
Get the source L4 port of this unidirectional UPF GTP tunnel.- Returns:
- tunnel source port
-
type
public UpfEntityType type()
Description copied from interface:UpfEntity
Returns the type of this entity.
-
-