Flexgrid for pce and network model
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / listeners / ServiceHandlerListener.java
index a193e3dfdfff1cdd4c0f0d6db5ea9816e31c459c..5f588a09de9c6afb85297e458bc1c42671493015 100644 (file)
@@ -63,7 +63,7 @@ public class ServiceHandlerListener implements TransportpceServicehandlerListene
     private void onServiceCreation(ServiceRpcResultSh notification) {
         if (notification.getAToZDirection() != null || notification.getZToADirection() != null) {
             LOG.info("Update topology with used frequency by service {}", notification.getServiceName());
-            service.useWavelengths(notification.getAToZDirection(), notification.getZToADirection());
+            service.allocateFrequencies(notification.getAToZDirection(), notification.getZToADirection());
         }
     }
 
@@ -75,7 +75,7 @@ public class ServiceHandlerListener implements TransportpceServicehandlerListene
         if (notification.getAToZDirection() != null || notification.getZToADirection() != null) {
             LOG.info("Update topology with no more used frequency by deleted service {}",
                     notification.getServiceName());
-            service.freeWavelengths(notification.getAToZDirection(), notification.getZToADirection());
+            service.releaseFrequencies(notification.getAToZDirection(), notification.getZToADirection());
         }
     }