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.renderer.provisiondevice.servicepath.ServicePathDirection;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.RendererRollbackInput;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.RendererRollbackOutput;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.ServicePathInput;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.renderer.rev170228.ServicePathOutput;
17 public interface DeviceRendererService {
20 * This method set's wavelength path based on following steps.
24 * 1. Create Och interface on source termination point.
25 * 2. Create Och interface on destination termination point.
26 * 3. Create cross connect between source and destination tps created in step 1
29 * Naming convention used for OCH interfaces name : tp-wavenumber Naming
30 * convention used for cross connect name : src-dest-wavenumber
34 * Input parameter from the service-path yang model
36 * @return Result list of all nodes if request successful otherwise specific
39 ServicePathOutput setupServicePath(ServicePathInput input, ServicePathDirection direction);
42 * This method removes wavelength path based on following steps.
46 * 1. Delete Cross connect between source and destination tps.
47 * 2. Delete Och interface on source termination point.
48 * 3. Delete Och interface on destination termination point.
50 * Naming convention used for OCH interfaces name : tp-wavenumber Naming
51 * convention used for cross connect name : src-dest-wavenumber
55 * Input parameter from the service-path yang model
57 * @return Result result of the request.
59 ServicePathOutput deleteServicePath(ServicePathInput input);
62 * Rollback created interfaces and cross connects specified by input.
64 * @param input Lists of created interfaces and connections per node
65 * @return Success flag and nodes which failed to rollback
67 RendererRollbackOutput rendererRollback(RendererRollbackInput input);