Interface ExtensionSelectorInterpreter

  • All Superinterfaces:
    org.onosproject.net.driver.Behaviour, org.onosproject.net.flow.ExtensionSelectorCodec, org.onosproject.net.driver.HandlerBehaviour

    @Beta
    public interface ExtensionSelectorInterpreter
    extends org.onosproject.net.flow.ExtensionSelectorCodec
    Interprets extension selectors and converts them to/from OpenFlow objects.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.onosproject.net.flow.criteria.ExtensionSelector mapOxm​(org.projectfloodlight.openflow.protocol.oxm.OFOxm<?> oxm)
      Maps an OpenFlow OXM to an extension selector.
      org.projectfloodlight.openflow.protocol.oxm.OFOxm<?> mapSelector​(org.projectfloodlight.openflow.protocol.OFFactory factory, org.onosproject.net.flow.criteria.ExtensionSelector extensionSelector)
      Maps an extension selector to an OpenFlow OXM.
      boolean supported​(org.onosproject.net.flow.criteria.ExtensionSelectorType extensionSelectorType)
      Returns true if the given extension selector is supported by this driver.
      • Methods inherited from interface org.onosproject.net.driver.Behaviour

        data, setData
      • Methods inherited from interface org.onosproject.net.flow.ExtensionSelectorCodec

        decode, encode
      • Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour

        handler, setHandler
    • Method Detail

      • supported

        boolean supported​(org.onosproject.net.flow.criteria.ExtensionSelectorType extensionSelectorType)
        Returns true if the given extension selector is supported by this driver.
        Parameters:
        extensionSelectorType - extension selector type
        Returns:
        true if the instruction is supported, otherwise false
      • mapSelector

        org.projectfloodlight.openflow.protocol.oxm.OFOxm<?> mapSelector​(org.projectfloodlight.openflow.protocol.OFFactory factory,
                                                                         org.onosproject.net.flow.criteria.ExtensionSelector extensionSelector)
        Maps an extension selector to an OpenFlow OXM.
        Parameters:
        factory - OpenFlow factory
        extensionSelector - extension selector
        Returns:
        OpenFlow OXM
      • mapOxm

        org.onosproject.net.flow.criteria.ExtensionSelector mapOxm​(org.projectfloodlight.openflow.protocol.oxm.OFOxm<?> oxm)
        Maps an OpenFlow OXM to an extension selector.
        Parameters:
        oxm - OpenFlow OXM
        Returns:
        extension selector