public EthernetSourceBuilder(EthernetSource base) { this._address = base.getAddress(); this._mask = base.getMask(); if (base instanceof EthernetSourceImpl) { EthernetSourceImpl _impl = (EthernetSourceImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }
if (other.getAddress() != null) { return false; } else if(!_address.equals(other.getAddress())) { return false; if (other.getMask() != null) { return false; } else if(!_mask.equals(other.getMask())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
private static boolean convertEthernetDlSrc(final MatchV10Builder matchBuilder, final EthernetMatch ethernetMatch) { if (ethernetMatch.getEthernetSource() != null) { matchBuilder.setDlSrc(ethernetMatch.getEthernetSource().getAddress()); return false; } return true; }
.getEthernetSource().getAddress().getValue().toUpperCase(); int portTag = MetaDataUtil.getLportFromMetadata(metadata).intValue(); if (portTag == 0) {
private boolean matchEthernetSrc(EthernetSource ethSrc, MatchFields matchFields) { return (ethSrc == null) || matchMacAddressWithMask(ethSrc.getAddress(), matchFields.srcMac, ethSrc.getMask()); }
String source = flowBuilder.getMatch().getEthernetMatch().getEthernetSource().getAddress().getValue(); String logFlowId = L2_Rule_NAME + source + destination; if (table != null) {
EthSrcCaseBuilder ethSrcCaseBuilder = new EthSrcCaseBuilder(); EthSrcBuilder ethDstBuilder = new EthSrcBuilder(); ethDstBuilder.setMacAddress(ethernetSource.getAddress()); boolean hasMask = ethernetSource.getMask() != null; ethDstBuilder.setMask(ByteBufUtils.macAddressToBytes(ethernetSource.getMask().getValue()));