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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -367,7 +367,7 @@ class ServiceServiceServicerImpl(ServiceServiceServicer):
            context_client.RemoveService(request)
            return Empty()

        if service.service_type == ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY:
        if is_deployed_optical() and service.service_type == ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY:
            params = {
                "src"     : None,
                "dst"     : None,
+9 −6
Original line number Diff line number Diff line
@@ -56,7 +56,10 @@ class Task_ConnectionDeconfigure(_Task):
        endpointids_to_delete = endpointids_to_raw(connection.path_hops_endpoint_ids)

        errors = list()
        for _, (service_handler, connection_devices) in service_handlers.items():
        for device_type, (service_handler, connection_devices) in service_handlers.items():
            if device_type == DeviceTypeEnum.TERAFLOWSDN_CONTROLLER:
                _endpointids_to_delete = endpointids_to_delete
            else:
                _endpointids_to_delete = [
                    (device_uuid, endpoint_uuid, topology_uuid)
                    for device_uuid, endpoint_uuid, topology_uuid in endpointids_to_delete