return false; if (!Objects.equals(_macAddress, other.getMacAddress())) { 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()); } } }
/** * Adds the rule to allow arp packets. * * @param dpId the dpId * @param allowedAddresses the allowed addresses * @param lportTag the lport tag * @param addOrRemove whether to add or remove the flow */ protected void programArpRule(BigInteger dpId, List<AllowedAddressPairs> allowedAddresses, int lportTag, int addOrRemove) { for (AllowedAddressPairs allowedAddress : allowedAddresses) { String attachMac = allowedAddress.getMacAddress().getValue(); List<MatchInfo> matches = new ArrayList<>(); matches.add(new MatchInfo(MatchFieldType.eth_type, new long[] {NwConstants.ETHTYPE_ARP})); matches.add(new MatchInfo(MatchFieldType.arp_sha, new String[] {attachMac})); matches.add(AclServiceUtils.buildLPortTagMatch(lportTag)); List<InstructionInfo> instructions = getDispatcherTableResubmitInstructions(new ArrayList<>()); String flowName = "Egress_ARP_" + dpId + "_" + attachMac; syncFlow(dpId, NwConstants.INGRESS_ACL_TABLE, flowName, AclConstants.PROTO_ARP_TRAFFIC_MATCH_PRIORITY, "ACL", 0, 0, AclConstants.COOKIE_ACL_BASE, matches, instructions, addOrRemove); } } }
for (AllowedAddressPairs allowedAddress : allowedAddresses) { IpPrefixOrAddress attachIp = allowedAddress.getIpAddress(); String attachMac = allowedAddress.getMacAddress().getValue();
for (AllowedAddressPairs allowedAddress : allowedAddresses) { IpPrefixOrAddress attachIp = allowedAddress.getIpAddress(); String attachMac = allowedAddress.getMacAddress().getValue();
for (AllowedAddressPairs allowedAddress : allowedAddresses) { IpPrefixOrAddress attachIp = allowedAddress.getIpAddress(); String attachMac = allowedAddress.getMacAddress().getValue();