Class FlowConvertor
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor<Flow,List<FlowModInputBuilder>,VersionDatapathIdConvertorData>
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowConvertor
public class FlowConvertor
extends Convertor<Flow,List<FlowModInputBuilder>,VersionDatapathIdConvertorData>
Converts the SAL Flow to OF Flow. It checks if there is a set-vlan-id (1.0) action made on OF1.3.
If yes its handled separately.
Example usage:
VersionDatapathIdConvertorData data = new VersionDatapathIdConvertorData(version);
data.setDatapathId(datapathId);
Optional<List<FlowModInputBuilder>> ofFlow = convertorManager.convert(salFlow, data);
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opendaylight.yangtools.yang.common.Uint16
Default hard timeout.static final org.opendaylight.yangtools.yang.common.Uint16
Default idle timeout.static final List<MatchEntry>
default match entries - empty.static final MatchTypeBase
OxmMatch type.static final boolean
flow flag: check overlap.static final boolean
flow flag: emergency [OFP-1.0].static final boolean
flow flag: remove.static final boolean
flow flag: don't keep track of byte counts.static final boolean
flow flag: don't keep track of packet counts.static final boolean
flow flag: reset counts.static final org.opendaylight.yangtools.yang.common.Uint16
Default priority. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert
(Flow source, VersionDatapathIdConvertorData data) Converts source to result.Collection<Class<?>>
getTypes()
Gets type of convertor, used inConvertorManager
.Methods inherited from class org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor
getConvertorExecutor, setConvertorExecutor
-
Field Details
-
DEFAULT_IDLE_TIMEOUT
public static final org.opendaylight.yangtools.yang.common.Uint16 DEFAULT_IDLE_TIMEOUTDefault idle timeout. -
DEFAULT_HARD_TIMEOUT
public static final org.opendaylight.yangtools.yang.common.Uint16 DEFAULT_HARD_TIMEOUTDefault hard timeout. -
DEFAULT_PRIORITY
public static final org.opendaylight.yangtools.yang.common.Uint16 DEFAULT_PRIORITYDefault priority. -
DEFAULT_OFPFF_FLOW_REM
public static final boolean DEFAULT_OFPFF_FLOW_REMflow flag: remove.- See Also:
-
DEFAULT_OFPFF_CHECK_OVERLAP
public static final boolean DEFAULT_OFPFF_CHECK_OVERLAPflow flag: check overlap.- See Also:
-
DEFAULT_OFPFF_RESET_COUNTS
public static final boolean DEFAULT_OFPFF_RESET_COUNTSflow flag: reset counts.- See Also:
-
DEFAULT_OFPFF_NO_PKT_COUNTS
public static final boolean DEFAULT_OFPFF_NO_PKT_COUNTSflow flag: don't keep track of packet counts.- See Also:
-
DEFAULT_OFPFF_NO_BYT_COUNTS
public static final boolean DEFAULT_OFPFF_NO_BYT_COUNTSflow flag: don't keep track of byte counts.- See Also:
-
DEFAULT_OFPFF_EMERGENCY
public static final boolean DEFAULT_OFPFF_EMERGENCYflow flag: emergency [OFP-1.0].- See Also:
-
DEFAULT_MATCH_TYPE
OxmMatch type. -
DEFAULT_MATCH_ENTRIES
default match entries - empty.
-
-
Constructor Details
-
FlowConvertor
public FlowConvertor()
-
-
Method Details
-
getTypes
Description copied from class:Convertor
Gets type of convertor, used inConvertorManager
.- Specified by:
getTypes
in classConvertor<Flow,
List<FlowModInputBuilder>, VersionDatapathIdConvertorData> - Returns:
- the type of convertor
-
convert
Description copied from class:Convertor
Converts source to result.- Specified by:
convert
in classConvertor<Flow,
List<FlowModInputBuilder>, VersionDatapathIdConvertorData> - Parameters:
source
- sourcedata
- convertor data- Returns:
- converted source
-