Merge "creation of tunnel ingress flow and lfib table entries moved to interface...
[vpnservice.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / vpnservice / mdsalutil / interfaces / IMdsalApiManager.java
index ec09bbdd3a44c8af3eb464322d411e92cc7f8621..defa0f596c77693c5e09eb41cba746d046caddeb 100644 (file)
@@ -9,14 +9,27 @@ package org.opendaylight.vpnservice.mdsalutil.interfaces;
 
 import java.math.BigInteger;
 import java.util.List;
+
+import com.google.common.util.concurrent.CheckedFuture;
+import org.opendaylight.controller.md.sal.binding.api.WriteTransaction;
+import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
 import org.opendaylight.vpnservice.mdsalutil.ActionInfo;
 import org.opendaylight.vpnservice.mdsalutil.FlowEntity;
 import org.opendaylight.vpnservice.mdsalutil.GroupEntity;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow;
 
 public interface IMdsalApiManager {
 
     public void installFlow(FlowEntity flowEntity);
 
+    public CheckedFuture<Void,TransactionCommitFailedException> installFlow(BigInteger dpId, Flow flowEntity);
+
+    public CheckedFuture<Void,TransactionCommitFailedException> removeFlow(BigInteger dpId, Flow flowEntity);
+
+    public CheckedFuture<Void,TransactionCommitFailedException> removeFlow(BigInteger dpId, FlowEntity flowEntity);
+
+    public CheckedFuture<Void,TransactionCommitFailedException> installFlow(BigInteger dpId, FlowEntity flowEntity);
+
     public void removeFlow(FlowEntity flowEntity);
 
     public void installGroup(GroupEntity groupEntity);