Manage ODU4 services over multiple OTU4
[transportpce.git] / renderer / src / main / java / org / opendaylight / transportpce / renderer / provisiondevice / DeviceRendererService.java
index 7d2b73a77e6a52be8bc12d66111a78ac34c98423..a242147bdcdfffe2e4cb4d15a8fa7addc3e097d6 100644 (file)
@@ -8,11 +8,15 @@
 
 package org.opendaylight.transportpce.renderer.provisiondevice;
 
+import org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaceException;
 import org.opendaylight.transportpce.renderer.provisiondevice.servicepath.ServicePathDirection;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.RendererRollbackInput;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.RendererRollbackOutput;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.ServicePathInput;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.ServicePathOutput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.device.renderer.rev211004.CreateOtsOmsInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.device.renderer.rev211004.CreateOtsOmsOutput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.device.renderer.rev211004.RendererRollbackInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.device.renderer.rev211004.RendererRollbackOutput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.device.renderer.rev211004.ServicePathInput;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.device.renderer.rev211004.ServicePathOutput;
+
 
 public interface DeviceRendererService {
 
@@ -32,6 +36,8 @@ public interface DeviceRendererService {
      *
      * @param input
      *            Input parameter from the service-path yang model
+     * @param direction
+     *            Service Path direction
      *
      * @return Result list of all nodes if request successful otherwise specific
      *         reason of failure.
@@ -65,4 +71,14 @@ public interface DeviceRendererService {
      * @return Success flag and nodes which failed to rollback
      */
     RendererRollbackOutput rendererRollback(RendererRollbackInput input);
+
+    /**
+     * This method creates the basis of ots and oms interfaces on a specific ROADM degree.
+     *
+     * @param input
+     *             Input parameter from the create-ots-oms yang model
+     * @return Success flag and names of interfaces created
+     * @throws OpenRoadmInterfaceException OpenRoadmInterfaceException
+     */
+    CreateOtsOmsOutput createOtsOms(CreateOtsOmsInput input) throws OpenRoadmInterfaceException;
 }