Create OC path at 200Gbps and 300Gbps 10/108410/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Fri, 13 Oct 2023 12:19:33 +0000 (14:19 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Sun, 15 Oct 2023 14:37:27 +0000 (14:37 +0000)
Allocate a valid service-path value for OC service at 200Gbps and
300Gbps.

JIRA: TRNSPRTPCE-766
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ib85fbce2108e52885e97ed13a6e2a77632706421
(cherry picked from commit a9a9f1d10a729739de6063a2a63cac28cec098d6)

common/src/main/java/org/opendaylight/transportpce/common/service/ServiceTypes.java

index 368e81c13397db7929638a2c7235ecb88945b582..e682484f5666d98151b2e9eea3dfebfb71aea65d 100644 (file)
@@ -30,6 +30,12 @@ public final class ServiceTypes {
                 if (Uint32.valueOf(100).equals(serviceRate)) {
                     return StringConstants.SERVICE_TYPE_100GE_T;
                 }
+                if (Uint32.valueOf(200).equals(serviceRate)) {
+                    return StringConstants.SERVICE_TYPE_OTUC2;
+                }
+                if (Uint32.valueOf(300).equals(serviceRate)) {
+                    return StringConstants.SERVICE_TYPE_OTUC3;
+                }
                 if (Uint32.valueOf(400).equals(serviceRate)) {
                     return StringConstants.SERVICE_TYPE_400GE;
                 }