public FlowAddedBuilder(FlowAdded base) { this._bufferId = base.getBufferId(); this._containerName = base.getContainerName(); this._cookie = base.getCookie(); this._cookieMask = base.getCookieMask(); this._flags = base.getFlags(); this._flowName = base.getFlowName(); this._flowRef = base.getFlowRef(); this._flowTable = base.getFlowTable(); this._hardTimeout = base.getHardTimeout(); this._idleTimeout = base.getIdleTimeout(); this._instructions = base.getInstructions(); this._match = base.getMatch(); this._node = base.getNode(); this._outGroup = base.getOutGroup(); this._outPort = base.getOutPort(); this._priority = base.getPriority(); this._tableId = base.getTableId(); this._transactionId = base.getTransactionId(); this._transactionUri = base.getTransactionUri(); this._barrier = base.isBarrier(); this._installHw = base.isInstallHw(); this._strict = base.isStrict(); if (base instanceof FlowAddedImpl) { FlowAddedImpl impl = (FlowAddedImpl) base;
public static Flow toConfigurationFlow(final FlowConfig sourceCfg) { org.opendaylight.controller.sal.flowprogrammer.Flow _flow = sourceCfg.getFlow(); final FlowAdded source = MDFlowMapping.flowAdded(_flow); FlowBuilder _flowBuilder = new FlowBuilder(); final FlowBuilder it = _flowBuilder; Instructions _instructions = source.getInstructions(); it.setInstructions(_instructions); BigInteger _cookie = source.getCookie(); it.setCookie(_cookie); Integer _hardTimeout = source.getHardTimeout(); it.setHardTimeout(_hardTimeout); Integer _idleTimeout = source.getIdleTimeout(); it.setIdleTimeout(_idleTimeout); Match _match = source.getMatch(); it.setMatch(_match); NodeRef _node = source.getNode(); it.setNode(_node); String _name = sourceCfg.getName(); long _parseLong = Long.parseLong(_name); NodeRef _node_1 = it.getNode(); FlowKey _flowKey = new FlowKey(Long.valueOf(_parseLong), _node_1); it.setKey(_flowKey); return it.build(); }
@Override public void onFlowAdded(FlowAdded notification) { LOG.info("flow to be added.........................." + notification.toString()); LOG.info("added flow Xid........................." + notification.getTransactionId().getValue()); LOG.info("-----------------------------------------------------------------------------------"); }
if (!Objects.equals(_bufferId, other.getBufferId())) { return false; if (!Objects.equals(_containerName, other.getContainerName())) { return false; if (!Objects.equals(_cookie, other.getCookie())) { return false; if (!Objects.equals(_cookieMask, other.getCookieMask())) { return false; if (!Objects.equals(_flags, other.getFlags())) { return false; if (!Objects.equals(_flowName, other.getFlowName())) { return false; if (!Objects.equals(_flowRef, other.getFlowRef())) { return false; if (!Objects.equals(_flowTable, other.getFlowTable())) { return false; if (!Objects.equals(_hardTimeout, other.getHardTimeout())) { return false; if (!Objects.equals(_idleTimeout, other.getIdleTimeout())) { return false;