BUG:5021 ELan datapath code-changes and cleanUp some code.
[vpnservice.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / vpnservice / mdsalutil / interfaces / IMdsalApiManager.java
index a86ad65110f507fe1eaf7f2a7e72d3e32155b3c1..250a247175274b6ae31a6d788f4a3f65fa4f11ec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
+ * Copyright (c) 2015 - 2016 Ericsson India Global Services Pvt Ltd. 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,
@@ -23,8 +23,12 @@ public interface IMdsalApiManager {
 
     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);
@@ -39,4 +43,30 @@ public interface IMdsalApiManager {
 
     public void sendARPPacketOutWithActions(BigInteger dpnId, byte[] payload, List<ActionInfo> action_info);
 
+    /**
+     * API to remove the flow on Data Plane Node synchronously. It internally waits for
+     * Flow Change Notification to confirm flow delete request is being sent with-in delayTime.
+     *
+     * @param flowEntity
+     * @param delayTime
+     */
+    public void syncRemoveFlow(FlowEntity flowEntity, long delayTime);
+    public void syncInstallFlow(FlowEntity flowEntity, long delayTime);
+
+    /**
+     * API to install the Group on Data Plane Node synchronously. It internally waits for
+     * Group Change Notification to confirm group mod request is being sent with-in delayTime
+     *
+     * @param groupEntity
+     * @param delayTime
+     */
+    public void syncInstallGroup(GroupEntity groupEntity, long delayTime);
+
+    /**
+     * API to remove the Group on Data Plane Node synchronously. It internally waits for
+     * Group Change Notification to confirm group delete request is being sent.
+     *
+     * @param groupEntity
+     */
+    public void syncRemoveGroup(GroupEntity groupEntity);
 }