From 36709d05bfc7129c64bf669ffc674ff02098ca37 Mon Sep 17 00:00:00 2001 From: ismaeel <mohammad.ismaael@cnit.it> Date: Wed, 2 Oct 2024 05:47:53 +0000 Subject: [PATCH] bugs in opticalcontroller --- src/service/service/tools/OpticalTools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service/service/tools/OpticalTools.py b/src/service/service/tools/OpticalTools.py index b7760d2ef..f66c64f97 100644 --- a/src/service/service/tools/OpticalTools.py +++ b/src/service/service/tools/OpticalTools.py @@ -117,6 +117,7 @@ def refresh_opticalcontroller (topology_id:dict): res = requests.get(urlx, headers=headers) if (res is not None ): + log.debug(f"DELETELIGHTPATH Response {res} ") @@ -165,9 +166,9 @@ def delete_lightpath( src, dst, bitrate, ob_id,delete_band,flow_id=None) -> str: if not TESTING: urlx=None if flow_id is not None: - urlx = "http://{}:{}/OpticalTFS/DelFlexLightpath/{}/{}/{}/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, bitrate, ob_id,flow_id) + urlx = "http://{}:{}/OpticalTFS/DelFlexLightpath/{}/{}/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, bitrate, ob_id,flow_id) else : - urlx = "http://{}:{}/OpticalTFS/DelOpticalBand/{}/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, ob_id) + urlx = "http://{}:{}/OpticalTFS/DelOpticalBand/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, ob_id) headers = {"Content-Type": "application/json"} r = requests.delete(urlx, headers=headers) -- GitLab