Search in sources :

Example 1 with MatchConvertor

use of org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchConvertor in project openflowplugin by opendaylight.

the class ConvertorManagerFactory method createDefaultManager.

/**
 * Create default convertor manager.
 *
 * @return the convertor manager
 */
public static ConvertorManager createDefaultManager() {
    final TableFeaturesConvertor tableFeaturesConvertor = new TableFeaturesConvertor();
    final TableFeaturesResponseConvertor tableFeaturesResponseConvertor = new TableFeaturesResponseConvertor();
    final MeterConvertor meterConvertor = new MeterConvertor();
    final MeterStatsResponseConvertor meterStatsResponseConvertor = new MeterStatsResponseConvertor();
    final MeterConfigStatsResponseConvertor meterConfigStatsResponseConvertor = new MeterConfigStatsResponseConvertor();
    final PortConvertor portConvertor = new PortConvertor();
    final MatchConvertor matchConvertor = new MatchConvertor();
    final MatchV10Convertor matchV10Convertor = new MatchV10Convertor();
    final MatchResponseConvertor matchResponseConvertor = new MatchResponseConvertor();
    final MatchV10ResponseConvertor matchV10ResponseConvertor = new MatchV10ResponseConvertor();
    final ActionConvertor actionConvertor = new ActionConvertor();
    final ActionResponseConvertor actionResponseConvertor = new ActionResponseConvertor();
    final GroupConvertor groupConvertor = new GroupConvertor();
    final GroupDescStatsResponseConvertor groupDescStatsResponseConvertor = new GroupDescStatsResponseConvertor();
    final GroupStatsResponseConvertor groupStatsResponseConvertor = new GroupStatsResponseConvertor();
    final PacketOutConvertor packetOutConvertor = new PacketOutConvertor();
    final FlowConvertor flowConvertor = new FlowConvertor();
    final FlowInstructionResponseConvertor flowInstructionResponseConvertor = new FlowInstructionResponseConvertor();
    final FlowStatsResponseConvertor flowStatsResponseConvertor = new FlowStatsResponseConvertor();
    final FlowFlagsConvertor flowFlagsConvertor = new FlowFlagsConvertor();
    final FlowFlagsV10Convertor flowFlagsV10Convertor = new FlowFlagsV10Convertor();
    return new ConvertorManager(OFConstants.OFP_VERSION_1_0, OFConstants.OFP_VERSION_1_3).registerConvertor(OFConstants.OFP_VERSION_1_0, tableFeaturesConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, tableFeaturesConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, tableFeaturesResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, tableFeaturesResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, meterConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, meterConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, meterStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, meterStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, meterConfigStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, meterConfigStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, portConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, portConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, matchV10Convertor).registerConvertor(OFConstants.OFP_VERSION_1_3, matchConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, matchResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, matchV10ResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, actionConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, actionConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, actionResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, actionResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, groupConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, groupConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, groupDescStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, groupDescStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, groupStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, groupStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, packetOutConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, packetOutConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, flowConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, flowConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, flowInstructionResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, flowInstructionResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, flowStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_3, flowStatsResponseConvertor).registerConvertor(OFConstants.OFP_VERSION_1_0, flowFlagsV10Convertor).registerConvertor(OFConstants.OFP_VERSION_1_3, flowFlagsConvertor);
}
Also used : FlowStatsResponseConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowStatsResponseConvertor) FlowConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowConvertor) FlowInstructionResponseConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowInstructionResponseConvertor) ActionConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.ActionConvertor) MatchConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchConvertor) ActionResponseConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.ActionResponseConvertor) FlowFlagsV10Convertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowFlagsV10Convertor) MatchV10ResponseConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchV10ResponseConvertor) MatchV10Convertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchV10Convertor) MatchResponseConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchResponseConvertor) FlowFlagsConvertor(org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowFlagsConvertor)

Aggregations

ActionConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.ActionConvertor)1 ActionResponseConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.ActionResponseConvertor)1 FlowConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowConvertor)1 FlowFlagsConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowFlagsConvertor)1 FlowFlagsV10Convertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowFlagsV10Convertor)1 FlowInstructionResponseConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowInstructionResponseConvertor)1 FlowStatsResponseConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.flow.FlowStatsResponseConvertor)1 MatchConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchConvertor)1 MatchResponseConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchResponseConvertor)1 MatchV10Convertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchV10Convertor)1 MatchV10ResponseConvertor (org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchV10ResponseConvertor)1