use of org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.TableFeaturePropType in project openflowplugin by opendaylight.
the class TableFeaturesConvertorTest method getTableProperties.
private static TableProperties getTableProperties() {
TableFeaturePropertiesBuilder tableFeaturePropertiesBuilder = new TableFeaturePropertiesBuilder();
List<TableFeatureProperties> tableFeaturePropertieses = new ArrayList<>();
int counter = 0;
for (Entry<Class<? extends TableFeaturePropType>, TableFeaturePropType> entry : AUGMENTATIONS_MAP.entrySet()) {
counter++;
tableFeaturePropertiesBuilder.setTableFeaturePropType(entry.getValue());
tableFeaturePropertiesBuilder.setOrder(counter);
tableFeaturePropertieses.add(tableFeaturePropertiesBuilder.build());
}
tableFeaturePropertieses.add(tableFeaturePropertiesBuilder.build());
TABLE_PROPERTIES_BUILDER.setTableFeatureProperties(tableFeaturePropertieses);
return TABLE_PROPERTIES_BUILDER.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.TableFeaturePropType in project openflowplugin by opendaylight.
the class MultipartTableFeaturesSerializerInjector method injectSerializers.
/**
* Injects multipart table features serializers into provided
* {@link org.opendaylight.openflowjava.protocol.api.extensibility.SerializerExtensionProvider}.
*
* @param provider OpenflowJava serializer extension provider
*/
static void injectSerializers(final SerializerExtensionProvider provider) {
// Inject new message serializers here using injector created by createInjector method
final Function<Class<? extends TableFeaturePropType>, Consumer<OFSerializer<TableFeaturePropType>>> injector = createInjector(provider, EncodeConstants.OF13_VERSION_ID);
injector.apply(Instructions.class).accept(new InstructionsTablePropertySerializer());
injector.apply(InstructionsMiss.class).accept(new InstructionsMissTablePropertySerializer());
injector.apply(NextTable.class).accept(new NextTableTablePropertySerializer());
injector.apply(NextTableMiss.class).accept(new NextTableMissTablePropertySerializer());
injector.apply(ApplyActions.class).accept(new ApplyActionsTablePropertySerializer());
injector.apply(ApplyActionsMiss.class).accept(new ApplyActionsMissTablePropertySerializer());
injector.apply(WriteActions.class).accept(new WriteActionsTablePropertySerializer());
injector.apply(WriteActionsMiss.class).accept(new WriteActionsMissTablePropertySerializer());
injector.apply(Match.class).accept(new MatchTablePropertySerializer());
injector.apply(Wildcards.class).accept(new WildcardsTablePropertySerializer());
injector.apply(WriteSetfield.class).accept(new WriteSetfieldTablePropertySerializer());
injector.apply(WriteSetfieldMiss.class).accept(new WriteSetfieldMissTablePropertySerializer());
injector.apply(ApplySetfield.class).accept(new ApplySetfieldTablePropertySerializer());
injector.apply(ApplySetfieldMiss.class).accept(new ApplySetfieldMissTablePropertySerializer());
// TODO: Add support for experimenters
}
Aggregations