Skip to content
Snippets Groups Projects
Commit 36709d05 authored by Mohammad Ismaeel's avatar Mohammad Ismaeel
Browse files

bugs in opticalcontroller

parent 797a722c
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!284Resolve: "(CNIT) Multi-Granular Optical Nodes and Optical Transpoders management"
...@@ -117,6 +117,7 @@ def refresh_opticalcontroller (topology_id:dict): ...@@ -117,6 +117,7 @@ def refresh_opticalcontroller (topology_id:dict):
res = requests.get(urlx, headers=headers) res = requests.get(urlx, headers=headers)
if (res is not None ): 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: ...@@ -165,9 +166,9 @@ def delete_lightpath( src, dst, bitrate, ob_id,delete_band,flow_id=None) -> str:
if not TESTING: if not TESTING:
urlx=None urlx=None
if flow_id is not 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 : 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"} headers = {"Content-Type": "application/json"}
r = requests.delete(urlx, headers=headers) r = requests.delete(urlx, headers=headers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment