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
withSchedulingPriority(int schedulingPriority)
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
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
-
withSchedulingPriority
public PacketDetectionRule.Builder withSchedulingPriority(int schedulingPriority)
-
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
-
build
public PacketDetectionRule build()
-
-