Class P4RuntimeFlowRuleProgrammable
- java.lang.Object
-
- org.onosproject.net.driver.AbstractBehaviour
-
- org.onosproject.net.driver.AbstractHandlerBehaviour
-
- org.onosproject.grpc.utils.AbstractGrpcHandlerBehaviour<org.onosproject.p4runtime.api.P4RuntimeClient,org.onosproject.p4runtime.api.P4RuntimeController>
-
- org.onosproject.drivers.p4runtime.AbstractP4RuntimeHandlerBehaviour
-
- org.onosproject.drivers.p4runtime.P4RuntimeFlowRuleProgrammable
-
- All Implemented Interfaces:
org.onosproject.net.driver.Behaviour,org.onosproject.net.driver.HandlerBehaviour,org.onosproject.net.flow.FlowRuleProgrammable
public class P4RuntimeFlowRuleProgrammable extends AbstractP4RuntimeHandlerBehaviour implements org.onosproject.net.flow.FlowRuleProgrammable
Implementation of the flow rule programmable behaviour for P4Runtime.
-
-
Field Summary
-
Fields inherited from class org.onosproject.drivers.p4runtime.AbstractP4RuntimeHandlerBehaviour
p4DeviceId, pipeconf
-
-
Constructor Summary
Constructors Constructor Description P4RuntimeFlowRuleProgrammable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<org.onosproject.net.flow.FlowRule>applyFlowRules(java.util.Collection<org.onosproject.net.flow.FlowRule> rules)java.util.Collection<org.onosproject.net.flow.FlowEntry>getFlowEntries()java.util.Collection<org.onosproject.net.flow.FlowRule>removeFlowRules(java.util.Collection<org.onosproject.net.flow.FlowRule> rules)protected booleansetupBehaviour(java.lang.String opName)Initializes this behaviour attributes.-
Methods inherited from class org.onosproject.grpc.utils.AbstractGrpcHandlerBehaviour
mgmtUriFromNetcfg
-
Methods inherited from class org.onosproject.net.driver.AbstractHandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
setupBehaviour
protected boolean setupBehaviour(java.lang.String opName)
Description copied from class:AbstractP4RuntimeHandlerBehaviourInitializes this behaviour attributes. Returns true if the operation was successful, false otherwise.- Overrides:
setupBehaviourin classAbstractP4RuntimeHandlerBehaviour- Parameters:
opName- name of the operation- Returns:
- true if successful, false otherwise
-
getFlowEntries
public java.util.Collection<org.onosproject.net.flow.FlowEntry> getFlowEntries()
- Specified by:
getFlowEntriesin interfaceorg.onosproject.net.flow.FlowRuleProgrammable
-
applyFlowRules
public java.util.Collection<org.onosproject.net.flow.FlowRule> applyFlowRules(java.util.Collection<org.onosproject.net.flow.FlowRule> rules)
- Specified by:
applyFlowRulesin interfaceorg.onosproject.net.flow.FlowRuleProgrammable
-
removeFlowRules
public java.util.Collection<org.onosproject.net.flow.FlowRule> removeFlowRules(java.util.Collection<org.onosproject.net.flow.FlowRule> rules)
- Specified by:
removeFlowRulesin interfaceorg.onosproject.net.flow.FlowRuleProgrammable
-
-