Package org.onosproject.net.behaviour
Interface Pipeliner
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
public interface Pipeliner extends HandlerBehaviour
Behaviour for handling various pipelines.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACCUMULATOR_ENABLED
Accumulator enabled property.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
cleanUp()
Clean up internal state of the pipeliner.void
filter(FilteringObjective filterObjective)
Installs the filtering rules onto the device.void
forward(ForwardingObjective forwardObjective)
Installs the forwarding rules onto the device.java.util.List<java.lang.String>
getNextMappings(NextGroup nextGroup)
Retrieves a mapping of the nextObjective to the groups in the dataplane, and returns it in a form that can be displayed on the CLI.void
init(DeviceId deviceId, PipelinerContext context)
Initializes the driver with context required for its operation.default boolean
isReady()
Returns pipeliner status.void
next(NextObjective nextObjective)
Installs the next hop elements into the device.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Field Detail
-
ACCUMULATOR_ENABLED
static final java.lang.String ACCUMULATOR_ENABLED
Accumulator enabled property. Determines whether the accumulator is enabled. The accumulator is assumed to be disabled if this property is undefined. If enabled, the pipeliner will try to accumulate objectives and create batches of flow rules when possible.- See Also:
- Constant Field Values
-
-
Method Detail
-
init
void init(DeviceId deviceId, PipelinerContext context)
Initializes the driver with context required for its operation.- Parameters:
deviceId
- the deviceIdcontext
- processing context
-
filter
void filter(FilteringObjective filterObjective)
Installs the filtering rules onto the device.- Parameters:
filterObjective
- a filtering objective
-
forward
void forward(ForwardingObjective forwardObjective)
Installs the forwarding rules onto the device.- Parameters:
forwardObjective
- a forwarding objective
-
next
void next(NextObjective nextObjective)
Installs the next hop elements into the device.- Parameters:
nextObjective
- a next objectives
-
getNextMappings
java.util.List<java.lang.String> getNextMappings(NextGroup nextGroup)
Retrieves a mapping of the nextObjective to the groups in the dataplane, and returns it in a form that can be displayed on the CLI. Typically group-ids are returned for groups with multiple buckets, where each list element represents a bucket. For nextObjectives that are converted to flow-actions, an empty list is returned.- Parameters:
nextGroup
- representation of the nextObjective. This representation is stored in the distributed group store- Returns:
- a list of preformatted strings representing group information, or an empty list if no groups were created
-
isReady
default boolean isReady()
Returns pipeliner status.- Returns:
- true if pipeliner is ready to accept objectives. False otherwise.
-
cleanUp
default void cleanUp()
Clean up internal state of the pipeliner. Implementation is pipeliner specific.
-
-