Loading src/pathcomp/frontend/service/algorithms/tools/ServiceTypes.py +3 −1 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
src/pathcomp/frontend/service/algorithms/tools/ServiceTypes.py +3 −1 Original line number Diff line number Diff line Loading @@ -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 Loading