2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowplugin.applications.frsync;
11 import java.util.concurrent.Future;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
13 import org.opendaylight.yangtools.yang.binding.DataObject;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15 import org.opendaylight.yangtools.yang.common.RpcResult;
18 * Represents a configuration item add-contract for device.
20 public interface ForwardingRulesAddCommitter<D extends DataObject, A extends DataObject> {
23 * Method adds the DataObject which is identified by InstanceIdentifier
26 * @param identifier - the whole path to new DataObject
27 * @param add - new DataObject
28 * @param nodeIdent - Node InstanceIdentifier
29 * @return RpcResult of action
31 Future<RpcResult<A>> add(InstanceIdentifier<D> identifier, D add, InstanceIdentifier<FlowCapableNode> nodeIdent);