Fix ConvertORToTapiTopology getXpdrUsedWavelength
[transportpce.git] / 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) {