Interface ExtensionTreatmentInterpreter
-
- All Superinterfaces:
org.onosproject.net.driver.Behaviour,org.onosproject.net.flow.ExtensionTreatmentCodec,org.onosproject.net.driver.HandlerBehaviour
@Beta public interface ExtensionTreatmentInterpreter extends org.onosproject.net.flow.ExtensionTreatmentCodecInterprets extension treatments and converts them to/from OpenFlow objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.onosproject.net.flow.instructions.ExtensionTreatmentmapAction(org.projectfloodlight.openflow.protocol.action.OFAction action)Maps an OpenFlow action to an extension treatment.org.projectfloodlight.openflow.protocol.action.OFActionmapInstruction(org.projectfloodlight.openflow.protocol.OFFactory factory, org.onosproject.net.flow.instructions.ExtensionTreatment extensionTreatment)Maps an extension treatment to an OpenFlow action.booleansupported(org.onosproject.net.flow.instructions.ExtensionTreatmentType extensionTreatmentType)Returns true if the given extension treatment is supported by this driver.
-
-
-
Method Detail
-
supported
boolean supported(org.onosproject.net.flow.instructions.ExtensionTreatmentType extensionTreatmentType)
Returns true if the given extension treatment is supported by this driver.- Parameters:
extensionTreatmentType- extension treatment type- Returns:
- true if the extension is supported, otherwise false
-
mapInstruction
org.projectfloodlight.openflow.protocol.action.OFAction mapInstruction(org.projectfloodlight.openflow.protocol.OFFactory factory, org.onosproject.net.flow.instructions.ExtensionTreatment extensionTreatment)Maps an extension treatment to an OpenFlow action.- Parameters:
factory- OpenFlow factoryextensionTreatment- extension treatment- Returns:
- OpenFlow action
-
mapAction
org.onosproject.net.flow.instructions.ExtensionTreatment mapAction(org.projectfloodlight.openflow.protocol.action.OFAction action) throws java.lang.UnsupportedOperationExceptionMaps an OpenFlow action to an extension treatment.- Parameters:
action- OpenFlow action- Returns:
- extension treatment
- Throws:
java.lang.UnsupportedOperationException- if driver does not support extension type
-
-