Class 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.
    • 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 boolean setupBehaviour​(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
      • Methods inherited from class org.onosproject.net.driver.AbstractBehaviour

        data, setData
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.driver.Behaviour

        data, setData
      • Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour

        handler, setHandler
    • Constructor Detail

      • P4RuntimeFlowRuleProgrammable

        public P4RuntimeFlowRuleProgrammable()
    • Method Detail

      • setupBehaviour

        protected boolean setupBehaviour​(java.lang.String opName)
        Description copied from class: AbstractP4RuntimeHandlerBehaviour
        Initializes this behaviour attributes. Returns true if the operation was successful, false otherwise.
        Overrides:
        setupBehaviour in class AbstractP4RuntimeHandlerBehaviour
        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:
        getFlowEntries in interface org.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:
        applyFlowRules in interface org.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:
        removeFlowRules in interface org.onosproject.net.flow.FlowRuleProgrammable