Initial OR-TAPI mapping: Services
[transportpce.git] / servicehandler / src / main / java / org / opendaylight / transportpce / servicehandler / service / ServiceDataStoreOperations.java
index d84cf2345c4065f11236d27ede21a2cbfd2c75c3..f388ebe3c3a9ca7f266acf7388ba42e9c0da0d2f 100644 (file)
@@ -14,10 +14,12 @@ import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev20
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.state.types.rev191129.State;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.equipment.states.types.rev191129.AdminStates;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev190531.ServiceCreateInput;
+import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev190531.ServiceList;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev190531.TempServiceCreateInput;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev190531.service.list.Services;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev200128.service.path.PathDescription;
 import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev171017.ServicePathList;
+import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.servicepath.rev171017.service.path.list.ServicePaths;
 
 /**
  * OpenROADM Service operations API providing basic operations on services.
@@ -38,6 +40,13 @@ public interface ServiceDataStoreOperations {
      */
     Optional<Services> getService(String serviceName);
 
+    /**
+     * get all OR services.
+     *
+     * @return Optional of Services
+     */
+    Optional<ServiceList> getServices();
+
     /**
      * get temp service by common-id.
      *
@@ -97,6 +106,8 @@ public interface ServiceDataStoreOperations {
      */
     OperationResult createService(ServiceCreateInput serviceCreateInput);
 
+    Optional<ServicePaths> getServicePath(String serviceName);
+
     /**
      * create new servicePath entry.
      *