Merge "Enable 400G rate for OC service-format"
authorGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 21 Apr 2023 14:02:59 +0000 (14:02 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 21 Apr 2023 14:02:59 +0000 (14:02 +0000)
common/src/main/java/org/opendaylight/transportpce/common/service/ServiceTypes.java

index 76fb5b0f6810befe663628fa36e75a44485bbdbd..368e81c13397db7929638a2c7235ecb88945b582 100644 (file)
@@ -30,6 +30,9 @@ public final class ServiceTypes {
                 if (Uint32.valueOf(100).equals(serviceRate)) {
                     return StringConstants.SERVICE_TYPE_100GE_T;
                 }
+                if (Uint32.valueOf(400).equals(serviceRate)) {
+                    return StringConstants.SERVICE_TYPE_400GE;
+                }
                 LOG.warn("Invalid service-rate {}", serviceRate);
                 return null;