Class UpfInterface
- java.lang.Object
-
- org.onosproject.net.behaviour.upf.UpfInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpfInterface.Builderstatic classUpfInterface.Type
-
Field Summary
-
Fields inherited from interface org.onosproject.net.behaviour.upf.UpfEntity
DEFAULT_APP_ID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpfInterface.Builderbuilder()static UpfInterfacecreateDbufReceiverFrom(Ip4Address address)Create a dbuf-receiving UPF interface from the given IP address.static UpfInterfacecreateS1uFrom(Ip4Address address)Create a core-facing UPF Interface from the given address, which will be treated as a /32 prefix.static UpfInterfacecreateUePoolFrom(Ip4Prefix prefix)Create a core-facing UPF Interface from the given IP prefix.booleanequals(Object obj)Ip4PrefixgetPrefix()Get the IPv4 prefix of this UPF interface.inthashCode()booleanisAccess()Check if this UPF interface is for packets traveling from UEs.booleanisCore()Check if this UPF interface is for packets traveling towards UEs.booleanisDbufReceiver()Check if this UPF interface is for receiving buffered packets as they are released from the dbuf buffering device.Ip4Prefixprefix()Get the IP prefix of this interface.StringtoString()UpfEntityTypetype()Returns the type of this entity.
-
-
-
Method Detail
-
builder
public static UpfInterface.Builder builder()
-
createS1uFrom
public static UpfInterface createS1uFrom(Ip4Address address)
Create a core-facing UPF Interface from the given address, which will be treated as a /32 prefix.- Parameters:
address- the address of the new core-facing interface- Returns:
- a new UPF interface
-
createUePoolFrom
public static UpfInterface createUePoolFrom(Ip4Prefix prefix)
Create a core-facing UPF Interface from the given IP prefix.- Parameters:
prefix- the prefix of the new core-facing interface- Returns:
- a new UPF interface
-
createDbufReceiverFrom
public static UpfInterface createDbufReceiverFrom(Ip4Address address)
Create a dbuf-receiving UPF interface from the given IP address.- Parameters:
address- the address of the dbuf-receiving interface- Returns:
- a new UPF interface
-
prefix
public Ip4Prefix prefix()
Get the IP prefix of this interface.- Returns:
- the interface prefix
-
isAccess
public boolean isAccess()
Check if this UPF interface is for packets traveling from UEs. This will be true for S1U interface table entries.- Returns:
- true if interface receives from access
-
isCore
public boolean isCore()
Check if this UPF interface is for packets traveling towards UEs. This will be true for UE IP address pool table entries.- Returns:
- true if interface receives from core
-
isDbufReceiver
public boolean isDbufReceiver()
Check if this UPF interface is for receiving buffered packets as they are released from the dbuf buffering device.- Returns:
- true if interface receives from dbuf
-
getPrefix
public Ip4Prefix getPrefix()
Get the IPv4 prefix of this UPF interface.- Returns:
- the interface prefix
-
type
public UpfEntityType type()
Description copied from interface:UpfEntityReturns the type of this entity.
-
-