[TRNSPRTPCE-146] Unused PCE code Created: 09/Sep/19  Updated: 13/Mar/20  Resolved: 06/Feb/20

Status: Verified
Project: transportpce
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Low
Reporter: Jonas Mårtensson Assignee: Ahmed Triki
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 2 days
Original Estimate: Not Specified


 Description   

In the pathComputation() method in PceSendingPceRPCs.java there is the following code:

// TODO fix. This is quick workaround for algorithm problem
if ((rc.getLocalCause() == PceResult.LocalCause.TOO_HIGH_LATENCY)
        && (pceHardConstraints.getPceMetrics() == PceMetric.HopCount)
        && (pceHardConstraints.getMaxLatency() != -1)) {
    pceHardConstraints.setPceMetrics(PceMetric.PropagationDelay);
    graph = patchRerunGraph(graph);
}

This code does not seem to be relevant anymore with the new PCE implementation. LocalCause.TOO_HIGH_LATENCY is never set anywhere.


Generated at Wed Feb 07 20:42:22 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.