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
Fields Modifier and Type Field Description static org.opendaylight.yangtools.yang.common.Uint16
DEFAULT_HARD_TIMEOUT
Default hard timeout.static org.opendaylight.yangtools.yang.common.Uint16
DEFAULT_IDLE_TIMEOUT
Default idle timeout.static List<MatchEntry>
DEFAULT_MATCH_ENTRIES
default match entries - empty.static Class<? extends MatchTypeBase>
DEFAULT_MATCH_TYPE
OxmMatch type.static boolean
DEFAULT_OFPFF_CHECK_OVERLAP
flow flag: check overlap.static boolean
DEFAULT_OFPFF_EMERGENCY
flow flag: emergency [OFP-1.0].static boolean
DEFAULT_OFPFF_FLOW_REM
flow flag: remove.static boolean
DEFAULT_OFPFF_NO_BYT_COUNTS
flow flag: don't keep track of byte counts.static boolean
DEFAULT_OFPFF_NO_PKT_COUNTS
flow flag: don't keep track of packet counts.static boolean
DEFAULT_OFPFF_RESET_COUNTS
flow flag: reset counts.static org.opendaylight.yangtools.yang.common.Uint16
DEFAULT_PRIORITY
Default priority.
-
Constructor Summary
Constructors Constructor Description FlowConvertor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<FlowModInputBuilder>
convert(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 Detail
-
DEFAULT_IDLE_TIMEOUT
public static final org.opendaylight.yangtools.yang.common.Uint16 DEFAULT_IDLE_TIMEOUT
Default idle timeout.
-
DEFAULT_HARD_TIMEOUT
public static final org.opendaylight.yangtools.yang.common.Uint16 DEFAULT_HARD_TIMEOUT
Default hard timeout.
-
DEFAULT_PRIORITY
public static final org.opendaylight.yangtools.yang.common.Uint16 DEFAULT_PRIORITY
Default priority.
-
DEFAULT_OFPFF_FLOW_REM
public static final boolean DEFAULT_OFPFF_FLOW_REM
flow flag: remove.- See Also:
- Constant Field Values
-
DEFAULT_OFPFF_CHECK_OVERLAP
public static final boolean DEFAULT_OFPFF_CHECK_OVERLAP
flow flag: check overlap.- See Also:
- Constant Field Values
-
DEFAULT_OFPFF_RESET_COUNTS
public static final boolean DEFAULT_OFPFF_RESET_COUNTS
flow flag: reset counts.- See Also:
- Constant Field Values
-
DEFAULT_OFPFF_NO_PKT_COUNTS
public static final boolean DEFAULT_OFPFF_NO_PKT_COUNTS
flow flag: don't keep track of packet counts.- See Also:
- Constant Field Values
-
DEFAULT_OFPFF_NO_BYT_COUNTS
public static final boolean DEFAULT_OFPFF_NO_BYT_COUNTS
flow flag: don't keep track of byte counts.- See Also:
- Constant Field Values
-
DEFAULT_OFPFF_EMERGENCY
public static final boolean DEFAULT_OFPFF_EMERGENCY
flow flag: emergency [OFP-1.0].- See Also:
- Constant Field Values
-
DEFAULT_MATCH_TYPE
public static final Class<? extends MatchTypeBase> DEFAULT_MATCH_TYPE
OxmMatch type.
-
DEFAULT_MATCH_ENTRIES
public static final List<MatchEntry> DEFAULT_MATCH_ENTRIES
default match entries - empty.
-
-
Method Detail
-
getTypes
public Collection<Class<?>> 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
public List<FlowModInputBuilder> convert(Flow source, VersionDatapathIdConvertorData data)
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
-
-