2 * Copyright © 2017 AT&T and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.transportpce.renderer.provisiondevice;
11 import org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaceException;
12 import org.opendaylight.transportpce.renderer.provisiondevice.servicepath.ServicePathDirection;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.CreateOtsOmsInput;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.CreateOtsOmsOutput;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.RendererRollbackInput;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.RendererRollbackOutput;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.ServicePathInput;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.ServicePathOutput;
20 public interface DeviceRendererService {
23 * This method set's wavelength path based on following steps.
27 * 1. Create Och interface on source termination point.
28 * 2. Create Och interface on destination termination point.
29 * 3. Create cross connect between source and destination tps created in step 1
32 * Naming convention used for OCH interfaces name : tp-wavenumber Naming
33 * convention used for cross connect name : src-dest-wavenumber
37 * Input parameter from the service-path yang model
39 * @return Result list of all nodes if request successful otherwise specific
42 ServicePathOutput setupServicePath(ServicePathInput input, ServicePathDirection direction);
45 * This method removes wavelength path based on following steps.
49 * 1. Delete Cross connect between source and destination tps.
50 * 2. Delete Och interface on source termination point.
51 * 3. Delete Och interface on destination termination point.
53 * Naming convention used for OCH interfaces name : tp-wavenumber Naming
54 * convention used for cross connect name : src-dest-wavenumber
58 * Input parameter from the service-path yang model
60 * @return Result result of the request.
62 ServicePathOutput deleteServicePath(ServicePathInput input);
65 * Rollback created interfaces and cross connects specified by input.
67 * @param input Lists of created interfaces and connections per node
68 * @return Success flag and nodes which failed to rollback
70 RendererRollbackOutput rendererRollback(RendererRollbackInput input);
73 * This method creates the basis of ots and oms interfaces on a specific ROADM degree.
76 * Input parameter from the create-ots-oms yang model
77 * @return Success flag and names of interfaces created
78 * @throws OpenRoadmInterfaceException OpenRoadmInterfaceException
80 CreateOtsOmsOutput createOtsOms(CreateOtsOmsInput input) throws OpenRoadmInterfaceException;