Package org.onosproject.net.flow
Interface FlowRuleProgrammable
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
public interface FlowRuleProgrammable extends HandlerBehaviour
Flow rule programmable device behaviour.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<FlowRule>
applyFlowRules(java.util.Collection<FlowRule> rules)
Applies the specified collection of flow rules to the device.java.util.Collection<FlowEntry>
getFlowEntries()
Retrieves the collection of flow rule entries currently installed on the device.java.util.Collection<FlowRule>
removeFlowRules(java.util.Collection<FlowRule> rules)
Removes the specified collection of flow rules from the device.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
getFlowEntries
java.util.Collection<FlowEntry> getFlowEntries()
Retrieves the collection of flow rule entries currently installed on the device.- Returns:
- collection of flow rules
-
applyFlowRules
java.util.Collection<FlowRule> applyFlowRules(java.util.Collection<FlowRule> rules)
Applies the specified collection of flow rules to the device.- Parameters:
rules
- flow rules to be added- Returns:
- collection of flow rules that were added successfully
-
-