Commit 19328bbc authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

PathComp component - Frontend:

- Added missing name-uuid mapping
parent f4ed75a8
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -64,6 +64,7 @@ class _Algorithm:
            _device_uuid = grpc_device.device_id.device_uuid.uuid
            _device_uuid = grpc_device.device_id.device_uuid.uuid
            _device_name = grpc_device.name
            _device_name = grpc_device.name
            self.device_name_mapping[_device_name] = _device_uuid
            self.device_name_mapping[_device_name] = _device_uuid
            self.device_name_mapping[_device_uuid] = _device_uuid


            device_endpoint_dict : Dict[str, Tuple[Dict, EndPointId]] = dict()
            device_endpoint_dict : Dict[str, Tuple[Dict, EndPointId]] = dict()
            for json_endpoint,grpc_endpoint in zip(json_device['device_endpoints'], grpc_device.device_endpoints):
            for json_endpoint,grpc_endpoint in zip(json_device['device_endpoints'], grpc_device.device_endpoints):
@@ -75,6 +76,8 @@ class _Algorithm:
                _endpoint_name = grpc_endpoint.name
                _endpoint_name = grpc_endpoint.name
                self.endpoint_name_mapping[(_device_uuid, _endpoint_name)] = _endpoint_uuid
                self.endpoint_name_mapping[(_device_uuid, _endpoint_name)] = _endpoint_uuid
                self.endpoint_name_mapping[(_device_name, _endpoint_name)] = _endpoint_uuid
                self.endpoint_name_mapping[(_device_name, _endpoint_name)] = _endpoint_uuid
                self.endpoint_name_mapping[(_device_uuid, _endpoint_uuid)] = _endpoint_uuid
                self.endpoint_name_mapping[(_device_name, _endpoint_uuid)] = _endpoint_uuid


            self.endpoint_dict[device_uuid] = device_endpoint_dict
            self.endpoint_dict[device_uuid] = device_endpoint_dict