public SourcePortRangeBuilder(SourcePortRange base) { this._lowerPort = base.getLowerPort(); this._upperPort = base.getUpperPort(); if (base instanceof SourcePortRangeImpl) { SourcePortRangeImpl impl = (SourcePortRangeImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<SourcePortRange>>, Augmentation<SourcePortRange>> aug =((AugmentationHolder<SourcePortRange>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
return false; if (!Objects.equals(_upperPort, other.getUpperPort())) { return false;
private ObjectNode getSourcePortRangeObjectNode(AceIp aceIp) { if (aceIp == null) { return null; } ObjectNode sourcePortRangeNode = null; SourcePortRange sourcePortRange = aceIp.getSourcePortRange(); if (sourcePortRange != null) { sourcePortRangeNode = mapper.createObjectNode(); if (sourcePortRange.getLowerPort() != null) { sourcePortRangeNode.put(_LOWER_PORT, sourcePortRange.getLowerPort().getValue()); } if (sourcePortRange.getUpperPort() != null) { sourcePortRangeNode.put(_UPPER_PORT, sourcePortRange.getUpperPort().getValue()); } } return sourcePortRangeNode; }
sourcePortRange.getUpperPort().getValue()); for (Integer port: portMaskMap.keySet()) { List<MatchInfoBase> flowMatches = new ArrayList<>();
sourcePortRange.getUpperPort().getValue()); for (Integer port: portMaskMap.keySet()) { List<MatchInfoBase> flowMatches = new ArrayList<>();
flowMatches.add(new MatchInfo(MatchFieldType.icmp_v4, new long[] { sourcePortRange.getLowerPort().getValue(), sourcePortRange.getUpperPort().getValue() })); flowId = flowId + "V4_SOURCE_" + sourcePortRange.getLowerPort().getValue() + sourcePortRange.getUpperPort().getValue(); } else if (acl.getAceIpVersion() instanceof AceIpv6 ) { flowMatches.add(new MatchInfo(MatchFieldType.icmp_v6, new long[] { sourcePortRange.getLowerPort().getValue(), sourcePortRange.getUpperPort().getValue() })); flowId = flowId + "V6_SOURCE_" + sourcePortRange.getLowerPort().getValue() + "_" + sourcePortRange.getUpperPort().getValue() + "_";