package org.opendaylight.openflowplugin.learningswitch;
+import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.HashMap;
private NodeId nodeId;
private AtomicLong flowIdInc = new AtomicLong();
+ private AtomicLong flowCookieInc = new AtomicLong(0x2a00000000000000L);
+
private InstanceIdentifier<Node> nodePath;
private InstanceIdentifier<Table> tablePath;
Short tableId = InstanceIdentifierUtils.getTableId(tablePath);
FlowBuilder srcToDstFlow = FlowUtils.createDirectMacToMacFlow(tableId, DIRECT_FLOW_PRIORITY, srcMac,
dstMac, destNodeConnector);
+ srcToDstFlow.setCookie(BigInteger.valueOf(flowCookieInc.getAndIncrement()));
dataStoreAccessor.writeFlowToConfig(flowPath, srcToDstFlow.build());
}