Commit bdca3f5d authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

PathComp component:

- Fixed service type selection for sub-service computation
parent 18a2d67f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -60,7 +60,9 @@ def get_service_type(
    device_type : DeviceTypeEnum, prv_service_type : ServiceTypeEnum
) -> ServiceTypeEnum:
    if device_type is DeviceTypeEnum.NCE: return ServiceTypeEnum.SERVICETYPE_L3NM
    if device_type is DeviceTypeEnum.TERAFLOWSDN_CONTROLLER: return ServiceTypeEnum.SERVICETYPE_L3NM
    if device_type is DeviceTypeEnum.TERAFLOWSDN_CONTROLLER:
        if prv_service_type is not None: return prv_service_type
        return ServiceTypeEnum.SERVICETYPE_L3NM
    if (
        device_type in PACKET_DEVICE_TYPES and
        prv_service_type in SERVICE_TYPE_LXNM