Class UpfSessionUplink.Builder
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.UpfSessionUplink.Builder
-
- Enclosing class:
- UpfSessionUplink
public static class UpfSessionUplink.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description intsessionMeterIdx
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpfSessionUplinkbuild()UpfSessionUplink.BuilderneedsDropping(boolean drop)Sets whether to drop uplink UPF UE session traffic or not.UpfSessionUplink.BuilderwithSessionMeterIdx(int sessionMeterIdx)Sets the meter index associated with this UE session.UpfSessionUplink.BuilderwithTeid(Integer teid)Sets the identifier of the GTP tunnel that this UPF UE Session rule matches on.UpfSessionUplink.BuilderwithTunDstAddr(Ip4Address tunDstAddr)Sets the tunnel destination IP address (N3/S1U address) that this UPF UE Session rule matches on.
-
-
-
Method Detail
-
withTunDstAddr
public UpfSessionUplink.Builder withTunDstAddr(Ip4Address tunDstAddr)
Sets the tunnel destination IP address (N3/S1U address) that this UPF UE Session rule matches on.- Parameters:
tunDstAddr- The tunnel destination IP address- Returns:
- This builder object
-
withTeid
public UpfSessionUplink.Builder withTeid(Integer teid)
Sets the identifier of the GTP tunnel that this UPF UE Session rule matches on.- Parameters:
teid- GTP tunnel ID- Returns:
- This builder object
-
needsDropping
public UpfSessionUplink.Builder needsDropping(boolean drop)
Sets whether to drop uplink UPF UE session traffic or not.- Parameters:
drop- True if request to buffer, false otherwise- Returns:
- This builder object
-
withSessionMeterIdx
public UpfSessionUplink.Builder withSessionMeterIdx(int sessionMeterIdx)
Sets the meter index associated with this UE session. If not set, default toUpfEntity.DEFAULT_SESSION_INDEX.- Parameters:
sessionMeterIdx- Session meter index- Returns:
- This builder object
-
build
public UpfSessionUplink build()
-
-