fix import extra separations
[transportpce.git] / renderer / src / main / java / org / opendaylight / transportpce / renderer / provisiondevice / otn / OtnDeviceOperations.java
1 /*
2  * Copyright © 2019 AT&T and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.transportpce.renderer.provisiondevice.otn;
9
10 import java.util.List;
11 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.CircuitPacks;
12 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev181019.org.openroadm.device.container.org.openroadm.device.OduSwitchingPools;
13 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;
14 import org.opendaylight.yang.gen.v1.http.org.openroadm.port.capability.rev181019.port.group.restriction.grp.PortGroupRestriction;
15
16 public interface OtnDeviceOperations {
17
18     /**
19      * This method checks if the client port can be used or not.
20      * @param circuitPackName circuit pack name of the client port
21      * @param portName port name of the client port
22      * @param capacity rate of the service needed
23      * @param portGroupRestriction TODO
24      *
25      * @return String which states whether the client port is valid or not
26      */
27     String validateClientPort(String circuitPackName, String portName, String capacity,
28             PortGroupRestriction portGroupRestriction);
29
30     /**
31      * This method retrieves the possible network ports.
32      *
33      *<p>
34      *     checks for the possible network ports in odu-switching-pool
35      *</p>
36      * @param circuitPackName Circuit pack name of the client port
37      * @param portName port name of the client port
38      * @param oduSwitchingPools TODO
39      * @param circuitPacks TODO
40      * @return List of all possible network ports
41      */
42     List<PortList> getPossibleNetworkPorts(String circuitPackName, String portName,
43             OduSwitchingPools oduSwitchingPools, CircuitPacks circuitPacks);
44
45
46 }