Class PacketDetectionRule.Builder
- java.lang.Object
- 
- org.onosproject.net.behaviour.upf.PacketDetectionRule.Builder
 
- 
- Enclosing class:
- PacketDetectionRule
 
 public static class PacketDetectionRule.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PacketDetectionRulebuild()PacketDetectionRule.BuilderwithCounterId(int ctrId)Set the dataplane PDR counter cell ID that this PDR is assigned.PacketDetectionRule.BuilderwithLocalFarId(int localFarId)Set the PFCP session-local ID of the far that should apply to packets that this PDR matches.PacketDetectionRule.BuilderwithQfi(byte qfi)Set the QoS Flow Identifier for this PDR.PacketDetectionRule.BuilderwithQfiMatch()The QoS Flow Identifier should be matched to the packet.PacketDetectionRule.BuilderwithQfiPush()The QoS Flow Identifier should be pushed to the packet.PacketDetectionRule.BuilderwithSessionId(long sessionId)Set the ID of the PFCP session that produced this PDR.PacketDetectionRule.BuilderwithSessionId(ImmutableByteSequence sessionId)Set the ID of the PFCP session that produced this PDR.PacketDetectionRule.BuilderwithTeid(int teid)Set the identifier of the GTP tunnel that this PDR matches on.PacketDetectionRule.BuilderwithTeid(ImmutableByteSequence teid)Set the identifier of the GTP tunnel that this PDR matches on.PacketDetectionRule.BuilderwithTunnel(ImmutableByteSequence teid, Ip4Address tunnelDst)Set the tunnel ID and destination IP of the GTP tunnel that this PDR matches on.PacketDetectionRule.BuilderwithTunnel(ImmutableByteSequence teid, Ip4Address tunnelDst, byte qfi)Set the tunnel ID, destination IP and QFI of the GTP tunnel that this PDR matches on.PacketDetectionRule.BuilderwithTunnelDst(Ip4Address tunnelDst)Set the destination IP of the GTP tunnel that this PDR matches on.PacketDetectionRule.BuilderwithUeAddr(Ip4Address ueAddr)Set the UE IP address that this PDR matches on.
 
- 
- 
- 
Method Detail- 
withSessionIdpublic 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
 
 - 
withSessionIdpublic 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
 
 - 
withUeAddrpublic PacketDetectionRule.Builder withUeAddr(Ip4Address ueAddr) Set the UE IP address that this PDR matches on.- Parameters:
- ueAddr- UE IP address
- Returns:
- This builder object
 
 - 
withCounterIdpublic 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
 
 - 
withLocalFarIdpublic 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
 
 - 
withQfipublic PacketDetectionRule.Builder withQfi(byte qfi) Set the QoS Flow Identifier for this PDR.- Parameters:
- qfi- GTP Tunnel QFI
- Returns:
- This builder object
 
 - 
withQfiPushpublic 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
 
 - 
withQfiMatchpublic 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
 
 - 
withTeidpublic 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
 
 - 
withTeidpublic 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
 
 - 
withTunnelDstpublic 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
 
 - 
withTunnelpublic 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 ID
- tunnelDst- GTP tunnel destination IP
- Returns:
- This builder object
 
 - 
withTunnelpublic 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 ID
- tunnelDst- GTP tunnel destination IP
- qfi- GTP QoS Flow Identifier
- Returns:
- This builder object
 
 - 
buildpublic PacketDetectionRule build() 
 
- 
 
-