Merge "Fix ConvertORToTapiTopology getXpdrUsedWavelength"
authorGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 10 Apr 2024 11:13:44 +0000 (11:13 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 10 Apr 2024 11:13:44 +0000 (11:13 +0000)
tapi/src/main/java/org/opendaylight/transportpce/tapi/topology/ConvertORToTapiTopology.java

index 209fef96739068372b5f716096a1eac2c689d890..7d188bb2e081136bb76de594fc07e49ed98a8dad 100644 (file)
@@ -590,8 +590,7 @@ public class ConvertORToTapiTopology {
         }
         Double freqValue = freq.getValue().doubleValue();
         Double widthValue = width.getValue().doubleValue();
-        Double value = freqValue - widthValue * 0.001 / 2;
-        return new HashMap<>(Map.of(value, value));
+        return new HashMap<>(Map.of(freqValue - widthValue * 0.001 / 2, freqValue + widthValue * 0.001 / 2));
     }
 
     public Map<Double, Double> getPPUsedWavelength(TerminationPoint tp) {