use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestQueueCase in project openflowplugin by opendaylight.
the class OF10StatsRequestInputFactory method setQueue.
private MultipartRequestQueueCase setQueue(ByteBuf input) {
final MultipartRequestQueueCaseBuilder caseBuilder = new MultipartRequestQueueCaseBuilder();
MultipartRequestQueueBuilder queueBuilder = new MultipartRequestQueueBuilder();
queueBuilder.setPortNo((long) input.readUnsignedShort());
input.skipBytes(2);
queueBuilder.setQueueId(input.readUnsignedInt());
caseBuilder.setMultipartRequestQueue(queueBuilder.build());
return caseBuilder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestQueueCase in project openflowplugin by opendaylight.
the class MultipartRequestQueueInputMessageFactoryTest method createRequestQueue.
private static MultipartRequestQueueCase createRequestQueue() {
MultipartRequestQueueCaseBuilder caseBuilder = new MultipartRequestQueueCaseBuilder();
MultipartRequestQueueBuilder builder = new MultipartRequestQueueBuilder();
builder.setPortNo(2256L);
builder.setQueueId(2211L);
caseBuilder.setMultipartRequestQueue(builder.build());
return caseBuilder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestQueueCase in project openflowplugin by opendaylight.
the class MultipartRequestInputFactoryTest method createRequestQueue.
private static MultipartRequestQueueCase createRequestQueue() {
MultipartRequestQueueCaseBuilder caseBuilder = new MultipartRequestQueueCaseBuilder();
MultipartRequestQueueBuilder builder = new MultipartRequestQueueBuilder();
builder.setPortNo(2256L);
builder.setQueueId(2211L);
caseBuilder.setMultipartRequestQueue(builder.build());
return caseBuilder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestQueueCase in project openflowplugin by opendaylight.
the class MultipartRequestInputFactoryTest method decodeRequestQueue.
private static MultipartRequestQueueCase decodeRequestQueue(ByteBuf output) {
MultipartRequestQueueCaseBuilder caseBuilder = new MultipartRequestQueueCaseBuilder();
MultipartRequestQueueBuilder builder = new MultipartRequestQueueBuilder();
builder.setPortNo(output.readUnsignedInt());
builder.setQueueId(output.readUnsignedInt());
caseBuilder.setMultipartRequestQueue(builder.build());
return caseBuilder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.MultipartRequestQueueCase in project openflowplugin by opendaylight.
the class MultipartRequestInputFactory method serializeQueueBody.
private static void serializeQueueBody(final MultipartRequestBody multipartRequestBody, final ByteBuf output) {
MultipartRequestQueueCase queueCase = (MultipartRequestQueueCase) multipartRequestBody;
MultipartRequestQueue queue = queueCase.getMultipartRequestQueue();
output.writeInt(queue.getPortNo().intValue());
output.writeInt(queue.getQueueId().intValue());
}
Aggregations