2 * Copyright © 2019 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
8 package org.opendaylight.transportpce.renderer.provisiondevice.otn;
10 import java.util.List;
11 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.org.openroadm.device.container.org.openroadm.device.odu.switching.pools.non.blocking.list.PortList;
13 public interface OtnDeviceOperations {
16 * This method checks if the client port can be used or not.
18 * @param nodeID unique identifier of a device
19 * @param circuitPackName circuit pack name of the client port
20 * @param portName port name of the client port
21 * @param capacity rate of the service needed
22 * @return String which states whether the client port is valid or not
24 String validateClientPort(String nodeID, String circuitPackName, String portName, String capacity);
27 * This method retrieves the possible network ports.
30 * checks for the possible network ports in odu-switching-pool
32 * @param circuitPackName Circuit pack name of the client port
33 * @param portName port name of the client port
34 * @return List of all possible network ports
36 List<PortList> getPossibleNetworkPorts(String circuitPackName, String portName);