Loading src/pathcomp/frontend/service/algorithms/_Algorithm.py +3 −0 Original line number Original line Diff line number Diff line Loading @@ -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): Loading @@ -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 Loading Loading
src/pathcomp/frontend/service/algorithms/_Algorithm.py +3 −0 Original line number Original line Diff line number Diff line Loading @@ -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): Loading @@ -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 Loading