private static List<MatchInfoBase> updateAAPMatches(boolean isSourceIpMacMatch, List<MatchInfoBase> flows, AllowedAddressPairs aap) { List<MatchInfoBase> matchInfoBaseList; if (isSourceIpMacMatch) { matchInfoBaseList = AclServiceUtils.buildIpMatches(aap.getIpAddress(), MatchCriteria.MATCH_SOURCE); } else { matchInfoBaseList = AclServiceUtils.buildIpMatches(aap.getIpAddress(), MatchCriteria.MATCH_DESTINATION); } matchInfoBaseList.addAll(flows); return matchInfoBaseList; }
if (!Objects.equals(_ipAddress, other.getIpAddress())) { return false;
public AllowedAddressPairsBuilder(AllowedAddressPairs base) { if (base.getKey() == null) { this._key = new AllowedAddressPairsKey( base.getIpAddress(), base.getMacAddress() ); this._ipAddress = base.getIpAddress(); this._macAddress = base.getMacAddress(); } else { this._key = base.getKey(); this._ipAddress = _key.getIpAddress(); this._macAddress = _key.getMacAddress(); } if (base instanceof AllowedAddressPairsImpl) { AllowedAddressPairsImpl impl = (AllowedAddressPairsImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.interfaces._interface.AllowedAddressPairs> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.interfaces._interface.AllowedAddressPairs>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
Integer priority, String flowId, int conntrackState, int conntrackMask, int addOrRemove) { for (AllowedAddressPairs allowedAddress : allowedAddresses) { IpPrefixOrAddress attachIp = allowedAddress.getIpAddress(); String attachMac = allowedAddress.getMacAddress().getValue();
Integer priority, String flowId, int conntrackState, int conntrackMask, String portId, int addOrRemove) { for (AllowedAddressPairs allowedAddress : allowedAddresses) { IpPrefixOrAddress attachIp = allowedAddress.getIpAddress(); String attachMac = allowedAddress.getMacAddress().getValue();
Integer priority, String flowId, int conntrackState, int conntrackMask, String portId, int addOrRemove) { for (AllowedAddressPairs allowedAddress : allowedAddresses) { IpPrefixOrAddress attachIp = allowedAddress.getIpAddress(); String attachMac = allowedAddress.getMacAddress().getValue();
private static boolean isIPv4Address(AllowedAddressPairs aap) { IpPrefixOrAddress ipPrefixOrAddress = aap.getIpAddress(); IpPrefix ipPrefix = ipPrefixOrAddress.getIpPrefix(); if (ipPrefix != null) { if (ipPrefix.getIpv4Prefix() != null) { return true; } } else { IpAddress ipAddress = ipPrefixOrAddress.getIpAddress(); if (ipAddress.getIpv4Address() != null) { return true; } } return false; }