private void processGroupAction(GroupActionCase actionCase, FlowTableLookUpResult result) { GroupAction groupAction = actionCase.getGroupAction(); Group group = indexedGroups.get(groupAction.getGroupId()); GroupTypes groupType = group.getGroupType(); List<Bucket> buckets = group.getBuckets().getBucket(); if (groupType.equals(GroupTypes.GroupAll)) { for (Bucket bucket : buckets) { processActionSet(bucket.getAction(), result); } } else if (groupType.equals(GroupTypes.GroupIndirect) && buckets.size() == 1) { processActionSet(buckets.get(0).getAction(), result); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_buckets == null) ? 0 : _buckets.hashCode()); result = prime * result + ((_containerName == null) ? 0 : _containerName.hashCode()); result = prime * result + ((_groupId == null) ? 0 : _groupId.hashCode()); result = prime * result + ((_groupName == null) ? 0 : _groupName.hashCode()); result = prime * result + ((_groupType == null) ? 0 : _groupType.hashCode()); result = prime * result + ((_barrier == null) ? 0 : _barrier.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
if (GroupTypes.GroupAll.equals(source.getGroupType())) { groupModInputBuilder.setType(GroupType.OFPGTALL); if (GroupTypes.GroupSelect.equals(source.getGroupType())) { groupModInputBuilder.setType(GroupType.OFPGTSELECT); if (GroupTypes.GroupIndirect.equals(source.getGroupType())) { groupModInputBuilder.setType(GroupType.OFPGTINDIRECT); if (GroupTypes.GroupFf.equals(source.getGroupType())) { groupModInputBuilder.setType(GroupType.OFPGTFF); List<BucketsList> bucketLists = salToOFBucketList(source.getBuckets(), data.getVersion(), source.getGroupType().getIntValue(), data.getDatapathId()); groupModInputBuilder.setBucketsList(bucketLists);
@Override public List<GroupDescStats> convert(List<GroupDesc> source, VersionConvertorData data) { List<GroupDescStats> convertedSALGroupsDesc = new ArrayList<>(); for (GroupDesc groupDesc : source) { GroupDescStatsBuilder salGroupDescStats = new GroupDescStatsBuilder(); salGroupDescStats.setBuckets(toSALBucketsDesc(groupDesc.getBucketsList(), data.getVersion())); salGroupDescStats.setGroupId(new GroupId(groupDesc.getGroupId().getValue())); salGroupDescStats.setGroupType(GroupTypes.forValue(groupDesc.getType().getIntValue())); salGroupDescStats.setKey(new GroupDescStatsKey(salGroupDescStats.getGroupId())); convertedSALGroupsDesc.add(salGroupDescStats.build()); } return convertedSALGroupsDesc; } }
return false; } else if(!_groupType.equals(other._groupType)) { return false;
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_buckets == null) ? 0 : _buckets.hashCode()); result = prime * result + ((_containerName == null) ? 0 : _containerName.hashCode()); result = prime * result + ((_groupId == null) ? 0 : _groupId.hashCode()); result = prime * result + ((_groupName == null) ? 0 : _groupName.hashCode()); result = prime * result + ((_groupType == null) ? 0 : _groupType.hashCode()); result = prime * result + ((_key == null) ? 0 : _key.hashCode()); result = prime * result + ((_barrier == null) ? 0 : _barrier.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
return false; } else if(!_groupType.equals(other.getGroupType())) { return false;
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_buckets == null) ? 0 : _buckets.hashCode()); result = prime * result + ((_containerName == null) ? 0 : _containerName.hashCode()); result = prime * result + ((_groupId == null) ? 0 : _groupId.hashCode()); result = prime * result + ((_groupName == null) ? 0 : _groupName.hashCode()); result = prime * result + ((_groupType == null) ? 0 : _groupType.hashCode()); result = prime * result + ((_key == null) ? 0 : _key.hashCode()); result = prime * result + ((_barrier == null) ? 0 : _barrier.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
return false; } else if(!_groupType.equals(other.getGroupType())) { return false;
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_id == null) ? 0 : _id.hashCode()); result = prime * result + ((_key == null) ? 0 : _key.hashCode()); result = prime * result + ((_node == null) ? 0 : _node.hashCode()); result = prime * result + ((_barrier == null) ? 0 : _barrier.hashCode()); result = prime * result + ((_buckets == null) ? 0 : _buckets.hashCode()); result = prime * result + ((_containerName == null) ? 0 : _containerName.hashCode()); result = prime * result + ((_groupId == null) ? 0 : _groupId.hashCode()); result = prime * result + ((_groupName == null) ? 0 : _groupName.hashCode()); result = prime * result + ((_groupType == null) ? 0 : _groupType.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
return false; } else if(!_groupType.equals(other.getGroupType())) { return false;
@Override protected int doHash(Group group) { final int prime = 31; int result = 1; result = prime * result + ((group.getBuckets() == null) ? 0 : EquivalenceFabric.BUCKETS_EQUIVALENCE.wrap(group.getBuckets()).hashCode()); result = prime * result + ((group.getContainerName() == null) ? 0 : group.getContainerName().hashCode()); result = prime * result + ((group.getGroupName() == null) ? 0 : group.getGroupName().hashCode()); result = prime * result + ((group.getGroupType() == null) ? 0 : group.getGroupType().hashCode()); result = prime * result + ((group.isBarrier() == null) ? 0 : group.isBarrier().hashCode()); return result; } }