Skip to content
Snippets Groups Projects
Commit b055fc3f authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component:

- Corrected ConnectionDeconfigure task to enable management of underlaying TFS controllers
- Enhanced DeleteService to identify if optical controller is present
parent 9e8ceb44
No related branches found
No related tags found
3 merge requests!359Release TeraFlowSDN 5.0,!328Resolve "(CTTC) Update recommendations to use SocketIO on NBI and E2E Orch components",!286Resolve "(CTTC) Implement integration test between E2E-IP-Optical SDN Controllers"
...@@ -367,7 +367,7 @@ class ServiceServiceServicerImpl(ServiceServiceServicer): ...@@ -367,7 +367,7 @@ class ServiceServiceServicerImpl(ServiceServiceServicer):
context_client.RemoveService(request) context_client.RemoveService(request)
return Empty() return Empty()
if service.service_type == ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY: if is_deployed_optical() and service.service_type == ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY:
params = { params = {
"src" : None, "src" : None,
"dst" : None, "dst" : None,
......
...@@ -56,12 +56,15 @@ class Task_ConnectionDeconfigure(_Task): ...@@ -56,12 +56,15 @@ class Task_ConnectionDeconfigure(_Task):
endpointids_to_delete = endpointids_to_raw(connection.path_hops_endpoint_ids) endpointids_to_delete = endpointids_to_raw(connection.path_hops_endpoint_ids)
errors = list() errors = list()
for _, (service_handler, connection_devices) in service_handlers.items(): for device_type, (service_handler, connection_devices) in service_handlers.items():
_endpointids_to_delete = [ if device_type == DeviceTypeEnum.TERAFLOWSDN_CONTROLLER:
(device_uuid, endpoint_uuid, topology_uuid) _endpointids_to_delete = endpointids_to_delete
for device_uuid, endpoint_uuid, topology_uuid in endpointids_to_delete else:
if device_uuid in connection_devices _endpointids_to_delete = [
] (device_uuid, endpoint_uuid, topology_uuid)
for device_uuid, endpoint_uuid, topology_uuid in endpointids_to_delete
if device_uuid in connection_devices
]
results_deleteendpoint = service_handler.DeleteEndpoint( results_deleteendpoint = service_handler.DeleteEndpoint(
_endpointids_to_delete, connection_uuid=connection_uuid _endpointids_to_delete, connection_uuid=connection_uuid
) )
......
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