use of org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.GroupBuilder in project openflowplugin by opendaylight.
the class MultipartRequestInputMessageFactory method setGroup.
private MultipartRequestGroupCase setGroup(ByteBuf input) {
MultipartRequestGroupCaseBuilder caseBuilder = new MultipartRequestGroupCaseBuilder();
MultipartRequestGroupBuilder groupBuilder = new MultipartRequestGroupBuilder();
groupBuilder.setGroupId(new GroupId(input.readUnsignedInt()));
caseBuilder.setMultipartRequestGroup(groupBuilder.build());
return caseBuilder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.GroupBuilder in project openflowplugin by opendaylight.
the class Activator method createGroup.
private static Group createGroup(long groupId) {
GroupBuilder groupBuilder = new GroupBuilder();
GroupKey groupKey = new GroupKey(new GroupId(groupId));
groupBuilder.setKey(groupKey);
groupBuilder.setGroupId(groupKey.getGroupId());
groupBuilder.setBarrier(false);
groupBuilder.setGroupName("Foo");
groupBuilder.setContainerName(null);
groupBuilder.setGroupType(GroupTypes.GroupAll);
groupBuilder.setBuckets(createBuckets().build());
return groupBuilder.build();
}
Aggregations