use of org.opendaylight.openflowjava.protocol.impl.deserialization.factories.MeterModInputMessageFactory in project openflowplugin by opendaylight.
the class AdditionalMessageDeserializerInitializer method registerMessageDeserializers.
/**
* Registers additional message deserializers.
* @param registry registry to be filled with deserializers
*/
public static void registerMessageDeserializers(final DeserializerRegistry registry) {
SimpleDeserializerRegistryHelper helper;
// register OF v1.0 message deserializers
helper = new SimpleDeserializerRegistryHelper(EncodeConstants.OF10_VERSION_ID, registry);
helper.registerDeserializer(5, GetFeaturesInput.class, new OF10FeaturesRequestMessageFactory());
helper.registerDeserializer(7, GetConfigInput.class, new GetConfigInputMessageFactory());
helper.registerDeserializer(9, SetConfigInput.class, new SetConfigInputMessageFactory());
helper.registerDeserializer(13, PacketOutInput.class, new OF10PacketOutInputMessageFactory());
helper.registerDeserializer(14, FlowModInput.class, new OF10FlowModInputMessageFactory());
helper.registerDeserializer(15, PortModInput.class, new OF10PortModInputMessageFactory());
helper.registerDeserializer(16, MultipartRequestInput.class, new OF10StatsRequestInputFactory());
helper.registerDeserializer(18, BarrierInput.class, new BarrierInputMessageFactory());
helper.registerDeserializer(20, GetQueueConfigInput.class, new OF10GetQueueConfigInputMessageFactory());
// register OF v1.3 message deserializers
helper = new SimpleDeserializerRegistryHelper(EncodeConstants.OF13_VERSION_ID, registry);
helper.registerDeserializer(5, GetFeaturesInput.class, new GetFeaturesInputMessageFactory());
helper.registerDeserializer(7, GetConfigInput.class, new GetConfigInputMessageFactory());
helper.registerDeserializer(9, SetConfigInput.class, new SetConfigInputMessageFactory());
helper.registerDeserializer(13, PacketOutInput.class, new PacketOutInputMessageFactory());
helper.registerDeserializer(14, FlowModInput.class, new FlowModInputMessageFactory());
helper.registerDeserializer(15, GroupModInput.class, new GroupModInputMessageFactory());
helper.registerDeserializer(16, PortModInput.class, new PortModInputMessageFactory());
helper.registerDeserializer(17, TableModInput.class, new TableModInputMessageFactory());
helper.registerDeserializer(18, MultipartRequestInput.class, new MultipartRequestInputMessageFactory());
helper.registerDeserializer(20, BarrierInput.class, new BarrierInputMessageFactory());
helper.registerDeserializer(22, GetQueueConfigInput.class, new GetQueueConfigInputMessageFactory());
helper.registerDeserializer(24, RoleRequestInput.class, new RoleRequestInputMessageFactory());
helper.registerDeserializer(26, GetAsyncInput.class, new GetAsyncRequestMessageFactory());
helper.registerDeserializer(28, SetAsyncInput.class, new SetAsyncInputMessageFactory());
helper.registerDeserializer(29, MeterModInput.class, new MeterModInputMessageFactory());
// register OF v1.4 message deserializers
helper = new SimpleDeserializerRegistryHelper(EncodeConstants.OF14_VERSION_ID, registry);
helper.registerDeserializer(7, GetConfigInput.class, new GetConfigInputMessageFactory());
helper.registerDeserializer(9, SetConfigInput.class, new SetConfigInputMessageFactory());
helper.registerDeserializer(20, BarrierInput.class, new BarrierInputMessageFactory());
// register OF v1.5 message deserializers
helper = new SimpleDeserializerRegistryHelper(EncodeConstants.OF15_VERSION_ID, registry);
helper.registerDeserializer(7, GetConfigInput.class, new GetConfigInputMessageFactory());
helper.registerDeserializer(9, SetConfigInput.class, new SetConfigInputMessageFactory());
helper.registerDeserializer(20, BarrierInput.class, new BarrierInputMessageFactory());
}
Aggregations