Class PacketDetectionRule.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.PacketDetectionRule.Builder
-
- Enclosing class:
- PacketDetectionRule
public static class PacketDetectionRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PacketDetectionRule
build()
PacketDetectionRule.Builder
withCounterId(int ctrId)
Set the dataplane PDR counter cell ID that this PDR is assigned.PacketDetectionRule.Builder
withLocalFarId(int localFarId)
Set the PFCP session-local ID of the far that should apply to packets that this PDR matches.PacketDetectionRule.Builder
withQfi(byte qfi)
Set the QoS Flow Identifier for this PDR.PacketDetectionRule.Builder
withQfiMatch()
The QoS Flow Identifier should be matched to the packet.PacketDetectionRule.Builder
withQfiPush()
The QoS Flow Identifier should be pushed to the packet.PacketDetectionRule.Builder
withSessionId(long sessionId)
Set the ID of the PFCP session that produced this PDR.PacketDetectionRule.Builder
withSessionId(ImmutableByteSequence sessionId)
Set the ID of the PFCP session that produced this PDR.PacketDetectionRule.Builder
withTeid(int teid)
Set the identifier of the GTP tunnel that this PDR matches on.PacketDetectionRule.Builder
withTeid(ImmutableByteSequence teid)
Set the identifier of the GTP tunnel that this PDR matches on.PacketDetectionRule.Builder
withTunnel(ImmutableByteSequence teid, Ip4Address tunnelDst)
Set the tunnel ID and destination IP of the GTP tunnel that this PDR matches on.PacketDetectionRule.Builder
withTunnel(ImmutableByteSequence teid, Ip4Address tunnelDst, byte qfi)
Set the tunnel ID, destination IP and QFI of the GTP tunnel that this PDR matches on.PacketDetectionRule.Builder
withTunnelDst(Ip4Address tunnelDst)
Set the destination IP of the GTP tunnel that this PDR matches on.PacketDetectionRule.Builder
withUeAddr(Ip4Address ueAddr)
Set the UE IP address that this PDR matches on.
-
-
-
Method Detail
-
withSessionId
public PacketDetectionRule.Builder withSessionId(ImmutableByteSequence sessionId)
Set the ID of the PFCP session that produced this PDR.- Parameters:
sessionId
- PFCP session ID- Returns:
- This builder object
-
withSessionId
public PacketDetectionRule.Builder withSessionId(long sessionId)
Set the ID of the PFCP session that produced this PDR.- Parameters:
sessionId
- PFCP session ID- Returns:
- This builder object
-
withUeAddr
public PacketDetectionRule.Builder withUeAddr(Ip4Address ueAddr)
Set the UE IP address that this PDR matches on.- Parameters:
ueAddr
- UE IP address- Returns:
- This builder object
-
withCounterId
public PacketDetectionRule.Builder withCounterId(int ctrId)
Set the dataplane PDR counter cell ID that this PDR is assigned.- Parameters:
ctrId
- PDR counter cell ID- Returns:
- This builder object
-
withLocalFarId
public PacketDetectionRule.Builder withLocalFarId(int localFarId)
Set the PFCP session-local ID of the far that should apply to packets that this PDR matches.- Parameters:
localFarId
- PFCP session-local FAR ID- Returns:
- This builder object
-
withQfi
public PacketDetectionRule.Builder withQfi(byte qfi)
Set the QoS Flow Identifier for this PDR.- Parameters:
qfi
- GTP Tunnel QFI- Returns:
- This builder object
-
withQfiPush
public PacketDetectionRule.Builder withQfiPush()
The QoS Flow Identifier should be pushed to the packet. This is valid for downstream packets and for 5G traffic only.- Returns:
- This builder object
-
withQfiMatch
public PacketDetectionRule.Builder withQfiMatch()
The QoS Flow Identifier should be matched to the packet. This is valid for upstream packets and for 5G traffic only.- Returns:
- This builder object
-
withTeid
public PacketDetectionRule.Builder withTeid(int teid)
Set the identifier of the GTP tunnel that this PDR matches on.- Parameters:
teid
- GTP tunnel ID- Returns:
- This builder object
-
withTeid
public PacketDetectionRule.Builder withTeid(ImmutableByteSequence teid)
Set the identifier of the GTP tunnel that this PDR matches on.- Parameters:
teid
- GTP tunnel ID- Returns:
- This builder object
-
withTunnelDst
public PacketDetectionRule.Builder withTunnelDst(Ip4Address tunnelDst)
Set the destination IP of the GTP tunnel that this PDR matches on.- Parameters:
tunnelDst
- GTP tunnel destination IP- Returns:
- This builder object
-
withTunnel
public PacketDetectionRule.Builder withTunnel(ImmutableByteSequence teid, Ip4Address tunnelDst)
Set the tunnel ID and destination IP of the GTP tunnel that this PDR matches on.- Parameters:
teid
- GTP tunnel IDtunnelDst
- GTP tunnel destination IP- Returns:
- This builder object
-
withTunnel
public PacketDetectionRule.Builder withTunnel(ImmutableByteSequence teid, Ip4Address tunnelDst, byte qfi)
Set the tunnel ID, destination IP and QFI of the GTP tunnel that this PDR matches on.- Parameters:
teid
- GTP tunnel IDtunnelDst
- GTP tunnel destination IPqfi
- GTP QoS Flow Identifier- Returns:
- This builder object
-
build
public PacketDetectionRule build()
-
-