/** * @param source notification, missing instructions * @param node corresponding node where the flow change occured * @return ad-sal node, build from given data */ public static Flow toFlow(SwitchFlowRemoved source, Node node) { final Flow target = new Flow(); genericFlowToAdFlow(source, target); target.setMatch(toMatch(source.getMatch())); return target; }
return false; if (!Objects.equals(_match, other.getMatch())) { return false;
public SwitchFlowRemovedBuilder(SwitchFlowRemoved base) { this._byteCount = base.getByteCount(); this._cookie = base.getCookie(); this._durationNsec = base.getDurationNsec(); this._durationSec = base.getDurationSec(); this._flowTable = base.getFlowTable(); this._hardTimeout = base.getHardTimeout(); this._idleTimeout = base.getIdleTimeout(); this._match = base.getMatch(); this._node = base.getNode(); this._packetCount = base.getPacketCount(); this._priority = base.getPriority(); this._removedReason = base.getRemovedReason(); this._tableId = base.getTableId(); if (base instanceof SwitchFlowRemovedImpl) { SwitchFlowRemovedImpl impl = (SwitchFlowRemovedImpl) 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.flow.service.rev130819.SwitchFlowRemoved> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SwitchFlowRemoved>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
Layer3Match layer3Match = switchFlowRemoved.getMatch().getLayer3Match(); if (layer3Match instanceof Ipv4Match) { Ipv4Match internalIpv4Match = (Ipv4Match) layer3Match; Layer4Match layer4Match = switchFlowRemoved.getMatch().getLayer4Match(); if (layer4Match instanceof TcpMatch) { TcpMatchFields tcpMatchFields = (TcpMatchFields)layer4Match; BigInteger metadata = switchFlowRemoved.getMatch().getMetadata().getMetadata(); if (MetaDataUtil.getNatRouterIdFromMetadata(metadata) != 0) { routerId = MetaDataUtil.getNatRouterIdFromMetadata(metadata);