Interface PiPipelineInterpreter

    • Method Detail

      • mapCriterionType

        java.util.Optional<PiMatchFieldId> mapCriterionType​(Criterion.Type type)
        Returns a PI match field ID that is equivalent to the given criterion type, if present. If not present, it means that the given criterion type is not supported by this interpreter.
        Parameters:
        type - criterion type
        Returns:
        optional match field ID
      • mapFlowRuleTableId

        java.util.Optional<PiTableId> mapFlowRuleTableId​(int flowRuleTableId)
        Returns a PI table ID equivalent to the given numeric table ID (as in FlowRule.tableId()). If not present, it means that the given integer table ID cannot be mapped to any table of the pipeline model.
        Parameters:
        flowRuleTableId - a numeric table ID
        Returns:
        PI table ID
      • mapLogicalPortNumber

        default java.util.Optional<java.lang.Integer> mapLogicalPortNumber​(PortNumber port)
        Maps the given logical port number to the data plane port ID (integer) identifying the same port for this pipeconf, if such mapping is possible.
        Parameters:
        port - port number
        Returns:
        optional integer
      • getOriginalDefaultAction

        default java.util.Optional<PiAction> getOriginalDefaultAction​(PiTableId tableId)
        If the given table allows for mutable default actions, this method returns an action instance to be used when ONOS tries to remove a different default action previously set.
        Parameters:
        tableId - table ID
        Returns:
        optional default action