Add missing device types in PathComp ComputeSubServices logic
# Reporters - Mohamad Rahhal (CTTC) - Lluis Gifre (CTTC) # Description Add missing device types in PathComp ComputeSubServices logic. ## Deployment environment - Operating System (include version): any - MicroK8s (include version and add-ons): any - TeraFlowSDN (include release/branch-name/commit-id): develop ## TFS deployment settings Any involving PathComp component. ## Sequence of actions that resulted in the bug Compute a path between clients instead of datacenters. ## Document the explicit error ``` [2024-12-11 14:13:03,612] INFO:__main__:Starting... [2024-12-11 14:13:03,612] INFO:pathcomp.frontend.service.PathCompService:Starting Service (tentative endpoint: 0.0.0.0:10020, max_workers: 200)... [2024-12-11 14:13:03,617] INFO:pathcomp.frontend.service.PathCompService:Listening on 0.0.0.0:10020... [2024-12-11 14:13:34,772] WARNING:pathcomp.frontend.service.TopologyTools:Forecaster is explicitly disabled [2024-12-11 14:13:34,785] ERROR:pathcomp.frontend.service.algorithms.ShortestPathAlgorithm:Unable to Extrapolate sub-services and sub-connections. Assuming single-service and single-connection. Traceback (most recent call last): File "/var/teraflow/pathcomp/frontend/service/algorithms/_Algorithm.py", line 274, in get_reply connections = convert_explicit_path_hops_to_connections( File "/var/teraflow/pathcomp/frontend/service/algorithms/tools/ComputeSubServices.py", line 77, in convert_explicit_path_hops_to_connections res_class = get_resource_classification(grpc_device, device_dict) File "/var/teraflow/pathcomp/frontend/service/algorithms/tools/ResourceGroups.py", line 99, in get_resource_classification resource_deepness = _map_resource_to_deepness(device_type) File "/var/teraflow/pathcomp/frontend/service/algorithms/tools/ResourceGroups.py", line 82, in _map_resource_to_deepness if deepness is None: raise Exception('Unsupported DeviceType({:s})'.format(str(device_type.value))) Exception: Unsupported DeviceType(emu-client) ``` ## Expected behaviour Path computation to succeed. # References None
issue