use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestMeterCase in project openflowplugin by opendaylight.
the class MultipartRequestInputMessageFactory method setMeter.
private MultipartRequestMeterCase setMeter(ByteBuf input) {
MultipartRequestMeterCaseBuilder caseBuilder = new MultipartRequestMeterCaseBuilder();
MultipartRequestMeterBuilder meterBuilder = new MultipartRequestMeterBuilder();
meterBuilder.setMeterId(new MeterId(input.readUnsignedInt()));
caseBuilder.setMultipartRequestMeter(meterBuilder.build());
return caseBuilder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestMeterCase in project openflowplugin by opendaylight.
the class MultipartRequestInputFactoryTest method decodeRequestMeter.
private static MultipartRequestMeterCase decodeRequestMeter(ByteBuf output) {
MultipartRequestMeterCaseBuilder caseBuilder = new MultipartRequestMeterCaseBuilder();
MultipartRequestMeterBuilder builder = new MultipartRequestMeterBuilder();
builder.setMeterId(new MeterId(output.readUnsignedInt()));
output.skipBytes(PADDING_IN_MULTIPART_REQUEST_METER_BODY);
caseBuilder.setMultipartRequestMeter(builder.build());
return caseBuilder.build();
}
Aggregations