From 58c83e1e527e97d58471a64dd2f73a9d55db42be Mon Sep 17 00:00:00 2001
From: sgambelluri <andrea.sgambelluri@cnit.it>
Date: Wed, 18 Sep 2024 10:57:51 +0200
Subject: [PATCH] integration withe the new REST API for optical-band deletion

---
 src/service/service/tools/OpticalTools.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/service/service/tools/OpticalTools.py b/src/service/service/tools/OpticalTools.py
index 331b0b827..2067d71c3 100644
--- a/src/service/service/tools/OpticalTools.py
+++ b/src/service/service/tools/OpticalTools.py
@@ -135,7 +135,7 @@ def delete_lightpath( src, dst, bitrate, ob_id,delete_band,flow_id=None) -> str:
         if flow_id is not None:
            urlx = "http://{}:{}/OpticalTFS/DelFlexLightpath/{}/{}/{}/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, bitrate, ob_id,delete_band,flow_id)
         else :
-            urlx = "http://{}:{}/OpticalTFS/DelFlexLightpath/{}/{}/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, bitrate, ob_id,delete_band)
+            urlx = "http://{}:{}/OpticalTFS/DelOpticalBand/{}/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, ob_id,delete_band)
 
         headers = {"Content-Type": "application/json"}
         r = requests.delete(urlx, headers=headers)
-- 
GitLab