*/
package org.opendaylight.neutron.spi;
+import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
+import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
+import org.opendaylight.yangtools.yang.common.OperationFailedException;
+
/**
* This interface defines the methods for CRUD of NB OpenStack Tap Flow objects.
*/
* @param tapFlowUUID
* UUID of Tap Flow
* @return boolean on whether the object was added or not
+ * @throws ReadFailedException if the read failed
*/
- boolean tapFlowExists(String tapServiceUUID, String tapFlowUUID);
+ boolean tapFlowExists(String tapServiceUUID, String tapFlowUUID) throws ReadFailedException;
/**
* Applications call this interface method to get a NeutronTapFlow object.
* @param tapFlowUUID
* UUID of Tap Flow
* @return NeutronTapFlow object
+ * @throws ReadFailedException if the read failed
*/
-
- NeutronTapFlow getTapFlow(String tapServiceUUID, String tapFlowUUID);
+ NeutronTapFlow getTapFlow(String tapServiceUUID, String tapFlowUUID) throws ReadFailedException;
/**
* Applications call this interface method to add a NeutronTapFlow object to the
* @param input
* OpenStackNetwork object
* @return boolean on whether the object was added or not
+ * @throws OperationFailedException if the read or write failed
*/
-
- boolean addTapFlow(NeutronTapFlow input);
+ boolean addTapFlow(NeutronTapFlow input) throws ReadFailedException, OperationFailedException;
/**
* Applications call this interface method to update a NeutronTapFlow object to the
*
* @param input
* OpenStackNetwork object
- * @return boolean on whether the object was added or not
+ * @throws TransactionCommitFailedException if the write failed
*/
-
- boolean updateTapFlow(NeutronTapFlow input);
+ void updateTapFlow(NeutronTapFlow input) throws TransactionCommitFailedException;
/**
* Applications call this interface method to delete a NeutronTapFlow object.
* UUID of Tap Service
* @param tapFlowUUID
* UUID of Tap Flow
- * @return boolean on whether the object was added or not
+ * @throws TransactionCommitFailedException if the write failed
*/
-
- boolean deleteTapFlow(String tapServiceUUID, String tapFlowUUID);
+ void deleteTapFlow(String tapServiceUUID, String tapFlowUUID) throws TransactionCommitFailedException;
}