Class BundleControlConverter
java.lang.Object
org.opendaylight.openflowplugin.extension.onf.converter.BundleControlConverter
- All Implemented Interfaces:
ConverterMessageToOFJava<BundleControlSal,
,BundleControlOnf, ExtensionConvertorData> ConvertorMessageFromOFJava<BundleControlOnf,
MessagePath>
public class BundleControlConverter
extends Object
implements ConverterMessageToOFJava<BundleControlSal,BundleControlOnf,ExtensionConvertorData>, ConvertorMessageFromOFJava<BundleControlOnf,MessagePath>
Converter for BundleControl messages (ONF approved extension #230).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(BundleControlSal experimenterMessageCase, ExtensionConvertorData data) Converts a message to MD-SAL model.convert
(BundleControlOnf input, MessagePath path) Convert OF model to MD-SAL model.Returns the corresponding experimenter id (vendor id).org.opendaylight.yangtools.yang.common.Uint32
getType()
Returns the corresponding experimenter message type.
-
Constructor Details
-
BundleControlConverter
public BundleControlConverter()
-
-
Method Details
-
convert
public BundleControlOnf convert(BundleControlSal experimenterMessageCase, ExtensionConvertorData data) Description copied from interface:ConverterMessageToOFJava
Converts a message to MD-SAL model.- Specified by:
convert
in interfaceConverterMessageToOFJava<BundleControlSal,
BundleControlOnf, ExtensionConvertorData> - Parameters:
experimenterMessageCase
- where is vendor's augmentationdata
- which contains the Xid and datapathId- Returns:
- message converted to OFJava-API
-
convert
Description copied from interface:ConvertorMessageFromOFJava
Convert OF model to MD-SAL model.- Specified by:
convert
in interfaceConvertorMessageFromOFJava<BundleControlOnf,
MessagePath> - Parameters:
input
- OF modelpath
- in yang schema where a converted value has to be augmented- Returns:
- message converted to MD-SAL and its type
-
getExperimenterId
Description copied from interface:ConverterMessageToOFJava
Returns the corresponding experimenter id (vendor id).- Specified by:
getExperimenterId
in interfaceConverterMessageToOFJava<BundleControlSal,
BundleControlOnf, ExtensionConvertorData> - Returns:
- experimenter id
-
getType
public org.opendaylight.yangtools.yang.common.Uint32 getType()Description copied from interface:ConverterMessageToOFJava
Returns the corresponding experimenter message type.- Specified by:
getType
in interfaceConverterMessageToOFJava<BundleControlSal,
BundleControlOnf, ExtensionConvertorData> - Returns:
- experimenter message type.
-