Loading src/service/service/tools/OpticalTools.py +2 −3 Changes for src/service/service/tools/OpticalTools.py: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -284,9 +284,8 @@ def DelFlexLightpath( src, dst, bitrate, ob_id, flow_id=None) -> str: base_url = get_optical_controller_base_url() if not TESTING: if flow_id is not None: if ob_id is not None : urlx = "{:s}/DelFlexLightpath/{}/{}/{}/{}".format(base_url, src, dst, flow_id, ob_id) # Route: /DelFlexLightpath/<src>/<dst>/<bitrate>/<o_band_id>/<flow_id> urlx = "{:s}/DelFlexLightpath/{}/{}/{}/{}/{}".format(base_url, src, dst, bitrate, ob_id, flow_id) else : #urlx = "http://{}:{}/OpticalTFS/DelOpticalBand/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, ob_id) urlx = "{:s}/DelOpticalBandSimple/{}".format(base_url, ob_id) Loading Loading
src/service/service/tools/OpticalTools.py +2 −3 Changes for src/service/service/tools/OpticalTools.py: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -284,9 +284,8 @@ def DelFlexLightpath( src, dst, bitrate, ob_id, flow_id=None) -> str: base_url = get_optical_controller_base_url() if not TESTING: if flow_id is not None: if ob_id is not None : urlx = "{:s}/DelFlexLightpath/{}/{}/{}/{}".format(base_url, src, dst, flow_id, ob_id) # Route: /DelFlexLightpath/<src>/<dst>/<bitrate>/<o_band_id>/<flow_id> urlx = "{:s}/DelFlexLightpath/{}/{}/{}/{}/{}".format(base_url, src, dst, bitrate, ob_id, flow_id) else : #urlx = "http://{}:{}/OpticalTFS/DelOpticalBand/{}/{}/{}".format(OPTICAL_IP, OPTICAL_PORT, src, dst, ob_id) urlx = "{:s}/DelOpticalBandSimple/{}".format(base_url, ob_id) Loading