Interface UpfProgrammable
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
,UpfDevice
@Beta public interface UpfProgrammable extends HandlerBehaviour, UpfDevice
Provides means to update the device forwarding state to implement a 3GPP User Plane Function. An implementation of this API should not write state directly to the device, but instead, always rely on core ONOS subsystems (e.g., FlowRuleService, GroupService, etc).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
fromThisUpf(FlowRule flowRule)
Checks if the given flow rule has been generated by this UPF behaviour.boolean
init()
Apps are expected to call this method as the first one when they are ready to install any UPF entity.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
Methods inherited from interface org.onosproject.net.behaviour.upf.UpfDevice
apply, cleanUp, delete, deleteAll, disablePscEncap, enablePscEncap, readAll, readCounter, readCounters, sendPacketOut, tableSize
-
-
-
-
Method Detail
-
init
boolean init()
Apps are expected to call this method as the first one when they are ready to install any UPF entity.- Returns:
- True if initialized, false otherwise.
-
fromThisUpf
boolean fromThisUpf(FlowRule flowRule)
Checks if the given flow rule has been generated by this UPF behaviour.- Parameters:
flowRule
- the flow rule to check- Returns:
- True if the given flow rule has been created by this UPF behaviour, False otherwise.
-
-