X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=pce%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fpce%2FPcePathDescription.java;h=c5967f278a1226b4831f340a6e09d0a8b78b8084;hb=feb80c05128f6292a0c9735db4e7e542fbac1999;hp=9e5fc4bcd6c7252ac1e442d9453f2e9b8320bb9e;hpb=28f2a7aea63e35dd31dd883aa796d11838959324;p=transportpce.git diff --git a/pce/src/main/java/org/opendaylight/transportpce/pce/PcePathDescription.java b/pce/src/main/java/org/opendaylight/transportpce/pce/PcePathDescription.java index 9e5fc4bcd..c5967f278 100644 --- a/pce/src/main/java/org/opendaylight/transportpce/pce/PcePathDescription.java +++ b/pce/src/main/java/org/opendaylight/transportpce/pce/PcePathDescription.java @@ -93,15 +93,18 @@ public class PcePathDescription { .setAToZ(atozMap); switch (rc.getServiceType()) { case StringConstants.SERVICE_TYPE_400GE: - case StringConstants.SERVICE_TYPE_100GE: + case StringConstants.SERVICE_TYPE_OTUC4: + case StringConstants.SERVICE_TYPE_100GE_T: case StringConstants.SERVICE_TYPE_OTU4: atoZDirectionBldr.setAToZMaxFrequency(new FrequencyTHz(rc.getMaxFreq())); atoZDirectionBldr.setAToZMinFrequency(new FrequencyTHz(rc.getMinFreq())); atoZDirectionBldr.setAToZWavelengthNumber(Uint32.valueOf(rc.getResultWavelength())); break; + case StringConstants.SERVICE_TYPE_100GE_M: case StringConstants.SERVICE_TYPE_10GE: case StringConstants.SERVICE_TYPE_1GE: case StringConstants.SERVICE_TYPE_ODU4: + case StringConstants.SERVICE_TYPE_ODUC4: if (rc.getResultTribSlot() != null && rc.getResultTribPort() != null) { @SuppressWarnings("unchecked") List tribSlotList = (List) rc.getResultTribSlot().values().toArray()[0]; @@ -132,12 +135,14 @@ public class PcePathDescription { .setZToA(ztoaMap); switch (rc.getServiceType()) { case StringConstants.SERVICE_TYPE_400GE: - case StringConstants.SERVICE_TYPE_100GE: + case StringConstants.SERVICE_TYPE_OTUC4: + case StringConstants.SERVICE_TYPE_100GE_T: case StringConstants.SERVICE_TYPE_OTU4: ztoADirectionBldr.setZToAMaxFrequency(new FrequencyTHz(rc.getMaxFreq())); ztoADirectionBldr.setZToAMinFrequency(new FrequencyTHz(rc.getMinFreq())); ztoADirectionBldr.setZToAWavelengthNumber(Uint32.valueOf(rc.getResultWavelength())); break; + case StringConstants.SERVICE_TYPE_100GE_M: case StringConstants.SERVICE_TYPE_10GE: case StringConstants.SERVICE_TYPE_1GE: case StringConstants.SERVICE_TYPE_ODU4: