Loading src/service/service/tools/OpticalTools.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
src/service/service/tools/OpticalTools.py +1 −1 Original line number Diff line number Diff line Loading @@ -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) Loading