import java.util.List;
import java.util.Optional;
import org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaceException;
+import org.opendaylight.yang.gen.v1.http.org.transportpce.common.types.rev200128.otn.renderer.input.Nodes;
public interface CrossConnect {
* @param connectionNumber
* Name of the cross connect.
*
- * @return Roadm connection subtree from the device.
+ * @return optional of Roadm connection subtree from the device.
*/
- <T> Optional<T> getCrossConnect(String deviceId, String connectionNumber);
+ Optional<?> getCrossConnect(String deviceId, String connectionNumber);
/**
* This method does a post(edit-config) on roadm connection subtree for a
* Device id.
* @param connectionNumber
* Name of the cross connect.
+ * @param isOtn
+ * True for odu-connection, False for roadm-connection.
*
* @return true/false based on status of operation.
*/
-
- List<String> deleteCrossConnect(String deviceId, String connectionNumber);
+ List<String> deleteCrossConnect(String deviceId, String connectionNumber, Boolean isOtn);
/**
* This public method returns the list of ports (port-trail) for a roadm's
* Destination logical connection point.
*
* @return list of Ports object type.
+ *
+ * @throws OpenRoadmInterfaceException
+ * an exception at OpenRoadm interface.
*/
- <T> List<T> getConnectionPortTrail(String nodeId, Long waveNumber, String srcTp, String destTp)
+ List<?> getConnectionPortTrail(String nodeId, Long waveNumber, String srcTp, String destTp)
throws OpenRoadmInterfaceException;
/**
* Name of the cross connect.
* @return true/false based on status of operation.
*/
- boolean setPowerLevel(String deviceId, Enum mode, BigDecimal powerValue,
+ boolean setPowerLevel(String deviceId, String mode, BigDecimal powerValue,
String connectionNumber);
+
+ Optional<String> postOtnCrossConnect(List<String> createdOduInterfaces, Nodes node) throws
+ OpenRoadmInterfaceException;
+
}