Refactoring of cisco-xr-driver and impl modules.
[unimgr.git] / impl / src / main / java / org / opendaylight / unimgr / mef / nrp / api / ActivationDriver.java
index 62de0f9deac3627bee7c84cb9970b7ada2309b97..7ef4f61d5942a06c839bfdc0e64a788858d2852b 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.unimgr.mef.nrp.api;
 
+import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
+import org.opendaylight.unimgr.mef.nrp.common.ResourceActivatorException;
 import org.opendaylight.yang.gen.v1.urn.onf.core.network.module.rev160630.forwarding.constructs.ForwardingConstruct;
 import org.opendaylight.yang.gen.v1.urn.onf.core.network.module.rev160630.g_forwardingconstruct.FcPort;
 
@@ -45,12 +47,12 @@ public interface ActivationDriver {
     /**
      * Performs the activation action.
      */
-    void activate();
+    void activate() throws TransactionCommitFailedException, ResourceActivatorException;
 
     /**
      * Performs the deactivation action.
      */
-    void deactivate();
+    void deactivate() throws TransactionCommitFailedException, ResourceActivatorException;
 
 
     /**