X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=networkmodel%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fnetworkmodel%2Flisteners%2FServiceHandlerListener.java;h=5f588a09de9c6afb85297e458bc1c42671493015;hb=7e175bf72bc28db4299b1fd76e6d01bdb0854d0f;hp=a193e3dfdfff1cdd4c0f0d6db5ea9816e31c459c;hpb=90f7343d69fd5629f28eddae873ab3d2571ec46a;p=transportpce.git diff --git a/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/ServiceHandlerListener.java b/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/ServiceHandlerListener.java index a193e3dfd..5f588a09d 100644 --- a/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/ServiceHandlerListener.java +++ b/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/ServiceHandlerListener.java @@ -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()); } }