Refactor transportpce-routing-constraint model
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / listeners / ServiceHandlerListener.java
index 5f588a09de9c6afb85297e458bc1c42671493015..9f432cff09cf590e86f8783547fcb8fe8775d7ac 100644 (file)
@@ -8,19 +8,19 @@
 
 package org.opendaylight.transportpce.networkmodel.listeners;
 
-import org.opendaylight.transportpce.networkmodel.service.NetworkModelWavelengthService;
+import org.opendaylight.transportpce.networkmodel.service.FrequenciesService;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev201125.ServiceRpcResultSh;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.servicehandler.rev201125.TransportpceServicehandlerListener;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev190531.ServiceNotificationTypes;
-import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev200128.RpcStatusEx;
+import org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.service.types.rev220118.RpcStatusEx;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class ServiceHandlerListener implements TransportpceServicehandlerListener {
     private static final Logger LOG = LoggerFactory.getLogger(ServiceHandlerListener.class);
-    private final NetworkModelWavelengthService service;
+    private final FrequenciesService service;
 
-    public ServiceHandlerListener(NetworkModelWavelengthService service) {
+    public ServiceHandlerListener(FrequenciesService service) {
         LOG.info("Init service handler listener for network");
         this.service = service;
     }
@@ -57,7 +57,7 @@ public class ServiceHandlerListener implements TransportpceServicehandlerListene
     }
 
     /**
-     * Allocate wavelength in topology.
+     * Allocate frequencies in topology.
      * @param notification ServiceRpcResultSh
      */
     private void onServiceCreation(ServiceRpcResultSh notification) {
@@ -68,7 +68,7 @@ public class ServiceHandlerListener implements TransportpceServicehandlerListene
     }
 
     /**
-     * Release wavelength in topology.
+     * Release frequencies in topology.
      * @param notification ServiceRpcResultSh
      */
     private void onServiceDeletion(ServiceRpcResultSh notification) {