Merge "OFPGC_ADD_OR_MOD support in openflowplugin"
[openflowplugin.git] / applications / forwardingrules-sync / src / main / java / org / opendaylight / openflowplugin / applications / frsync / SyncReactor.java
index 12cffd1362eb6bdaab84810cba078d04521cf493..c7435f322cae0cd15bfe373938af55c325640ad6 100644 (file)
@@ -8,22 +8,20 @@
 
 package org.opendaylight.openflowplugin.applications.frsync;
 
+import com.google.common.util.concurrent.ListenableFuture;
+import org.opendaylight.openflowplugin.applications.frsync.util.SyncupEntry;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 
-import com.google.common.util.concurrent.ListenableFuture;
-
 /**
  * Device synchronization API.
  */
 public interface SyncReactor {
     /**
      * @param flowcapableNodePath path to openflow augmentation of node
-     * @param configTree configured node
-     * @param operationalTree device reflection
+     * @param syncupEntry configured node + device reflection
      * @return synchronization outcome
      */
-    ListenableFuture<Boolean> syncup(InstanceIdentifier<FlowCapableNode> flowcapableNodePath,
-            FlowCapableNode configTree, FlowCapableNode operationalTree) throws InterruptedException;
-
+    ListenableFuture<Boolean> syncup(final InstanceIdentifier<FlowCapableNode> flowcapableNodePath,
+                                     final SyncupEntry syncupEntry);
 }