Class GtpTunnel.GtpTunnelBuilder
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.GtpTunnel.GtpTunnelBuilder
-
-
Constructor Summary
Constructors Constructor Description GtpTunnelBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GtpTunnelbuild()GtpTunnel.GtpTunnelBuildersetDst(org.onlab.packet.Ip4Address dst)Set the destination IP address of the unidirectional GTP tunnel.GtpTunnel.GtpTunnelBuildersetSrc(org.onlab.packet.Ip4Address src)Set the source IP address of the unidirectional GTP tunnel.GtpTunnel.GtpTunnelBuildersetSrcPort(short srcPort)Set the source port of this unidirectional GTP tunnel.GtpTunnel.GtpTunnelBuildersetTeid(long teid)Set the identifier of this unidirectional GTP tunnel.GtpTunnel.GtpTunnelBuildersetTeid(org.onlab.util.ImmutableByteSequence teid)Set the identifier of this unidirectional GTP tunnel.
-
-
-
Method Detail
-
setSrc
public GtpTunnel.GtpTunnelBuilder setSrc(org.onlab.packet.Ip4Address src)
Set the source IP address of the unidirectional GTP tunnel.- Parameters:
src- GTP tunnel source IP- Returns:
- This builder object
-
setDst
public GtpTunnel.GtpTunnelBuilder setDst(org.onlab.packet.Ip4Address dst)
Set the destination IP address of the unidirectional GTP tunnel.- Parameters:
dst- GTP tunnel destination IP- Returns:
- This builder object
-
setTeid
public GtpTunnel.GtpTunnelBuilder setTeid(org.onlab.util.ImmutableByteSequence teid)
Set the identifier of this unidirectional GTP tunnel.- Parameters:
teid- tunnel ID- Returns:
- This builder object
-
setTeid
public GtpTunnel.GtpTunnelBuilder setTeid(long teid)
Set the identifier of this unidirectional GTP tunnel.- Parameters:
teid- tunnel ID- Returns:
- This builder object
-
setSrcPort
public GtpTunnel.GtpTunnelBuilder setSrcPort(short srcPort)
Set the source port of this unidirectional GTP tunnel.- Parameters:
srcPort- tunnel source port- Returns:
- this builder object
-
build
public GtpTunnel build()
-
-