+/*
+ * 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.adsal;
import java.math.BigInteger;
@Override
public Future<RpcResult<AddFlowOutput>> addFlow(AddFlowInput input) {
- Flow flow = ToSalConversionsUtils.toFlow(input);
+ Flow flow = ToSalConversionsUtils.toFlow(input, null);
@SuppressWarnings("unchecked")
org.opendaylight.controller.sal.core.Node node = InventoryMapping.toAdNode((InstanceIdentifier<Node>) input
.getNode().getValue());
@Override
public Future<RpcResult<RemoveFlowOutput>> removeFlow(RemoveFlowInput input) {
- Flow flow = ToSalConversionsUtils.toFlow(input);
+ Flow flow = ToSalConversionsUtils.toFlow(input, null);
@SuppressWarnings("unchecked")
org.opendaylight.controller.sal.core.Node node = InventoryMapping.toAdNode((InstanceIdentifier<Node>) input
.getNode().getValue());
@SuppressWarnings("unchecked")
org.opendaylight.controller.sal.core.Node node = InventoryMapping.toAdNode((InstanceIdentifier<Node>) input
.getNode().getValue());
- Flow originalFlow = ToSalConversionsUtils.toFlow(input.getOriginalFlow());
- Flow updatedFlow = ToSalConversionsUtils.toFlow(input.getUpdatedFlow());
+ Flow originalFlow = ToSalConversionsUtils.toFlow(input.getOriginalFlow(), null);
+ Flow updatedFlow = ToSalConversionsUtils.toFlow(input.getUpdatedFlow(), null);
Status status = delegate.modifyFlowAsync(node, originalFlow, updatedFlow);
UpdateFlowOutputBuilder builder = new UpdateFlowOutputBuilder();
builder.setTransactionId(new TransactionId(BigInteger.valueOf(status.getRequestId())));