+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.controller.sal.compatibility;
import com.google.common.net.InetAddresses
}
- public static def toMDFlow(Flow sourceFlow) {
+ public static def toMDFlow(Flow sourceFlow, String flowId) {
if (sourceFlow == null)
throw new IllegalArgumentException();
val it = new FlowBuilder();
idleTimeout = sourceFlow.idleTimeout as int
cookie = BigInteger.valueOf(sourceFlow.id)
priority = sourceFlow.priority as int
- id = new FlowId(sourceFlow.id)
+ id = new FlowId(flowId)
val sourceActions = sourceFlow.actions;
val targetActions = new ArrayList<Action>();