Search in sources :

Example 1 with FlowRemovedTranslator

use of org.opendaylight.openflowplugin.impl.translator.FlowRemovedTranslator in project openflowplugin by opendaylight.

the class TranslatorLibraryUtil method injectBasicTranslatorLibrary.

public static void injectBasicTranslatorLibrary(final TranslatorLibrarian librarian, final ConvertorExecutor convertorExecutor) {
    final TranslatorLibrary basicTranslatorLibrary = new TranslatorLibraryBuilder().addTranslator(OF_13_TRANSLATOR_KEY_FACTORY.createTranslatorKey(PacketIn.class), new PacketReceivedTranslator(convertorExecutor)).addTranslator(OF_13_TRANSLATOR_KEY_FACTORY.createTranslatorKey(PortGrouping.class), new PortUpdateTranslator()).addTranslator(OF_13_TRANSLATOR_KEY_FACTORY.createTranslatorKey(MultipartReplyAggregateCase.class), new AggregatedFlowStatisticsTranslator()).addTranslator(OF_13_TRANSLATOR_KEY_FACTORY.createTranslatorKey(FlowRemoved.class), new FlowRemovedTranslator(convertorExecutor)).addTranslator(OF_10_TRANSLATOR_KEY_FACTORY.createTranslatorKey(PacketIn.class), new PacketReceivedTranslator(convertorExecutor)).addTranslator(OF_10_TRANSLATOR_KEY_FACTORY.createTranslatorKey(PortGrouping.class), new PortUpdateTranslator()).addTranslator(OF_10_TRANSLATOR_KEY_FACTORY.createTranslatorKey(MultipartReplyAggregateCase.class), new AggregatedFlowStatisticsTranslator()).addTranslator(OF_10_TRANSLATOR_KEY_FACTORY.createTranslatorKey(FlowRemoved.class), new FlowRemovedV10Translator(convertorExecutor)).build();
    librarian.setTranslatorLibrary(basicTranslatorLibrary);
}
Also used : TranslatorLibrary(org.opendaylight.openflowplugin.api.openflow.device.TranslatorLibrary) PacketIn(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.PacketIn) MultipartReplyAggregateCase(org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.reply.multipart.reply.body.MultipartReplyAggregateCase) PortUpdateTranslator(org.opendaylight.openflowplugin.impl.translator.PortUpdateTranslator) FlowRemovedV10Translator(org.opendaylight.openflowplugin.impl.translator.FlowRemovedV10Translator) TranslatorLibraryBuilder(org.opendaylight.openflowplugin.impl.translator.TranslatorLibraryBuilder) PacketReceivedTranslator(org.opendaylight.openflowplugin.impl.translator.PacketReceivedTranslator) FlowRemovedTranslator(org.opendaylight.openflowplugin.impl.translator.FlowRemovedTranslator) AggregatedFlowStatisticsTranslator(org.opendaylight.openflowplugin.impl.translator.AggregatedFlowStatisticsTranslator)

Aggregations

TranslatorLibrary (org.opendaylight.openflowplugin.api.openflow.device.TranslatorLibrary)1 AggregatedFlowStatisticsTranslator (org.opendaylight.openflowplugin.impl.translator.AggregatedFlowStatisticsTranslator)1 FlowRemovedTranslator (org.opendaylight.openflowplugin.impl.translator.FlowRemovedTranslator)1 FlowRemovedV10Translator (org.opendaylight.openflowplugin.impl.translator.FlowRemovedV10Translator)1 PacketReceivedTranslator (org.opendaylight.openflowplugin.impl.translator.PacketReceivedTranslator)1 PortUpdateTranslator (org.opendaylight.openflowplugin.impl.translator.PortUpdateTranslator)1 TranslatorLibraryBuilder (org.opendaylight.openflowplugin.impl.translator.TranslatorLibraryBuilder)1 PacketIn (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.PacketIn)1 MultipartReplyAggregateCase (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.reply.multipart.reply.body.MultipartReplyAggregateCase)1