Fix SH DowngradeConstraints max OTN Hop count bug
[transportpce.git] / servicehandler / src / test / java / org / opendaylight / transportpce / servicehandler / utils / ConstraintsUtils.java
index d4758dc3b8eef062ece800abbc5af20d7cf24d53..faff25e4034f7854835d789802c4d5df29d39710 100644 (file)
@@ -141,6 +141,7 @@ public final class ConstraintsUtils {
         if (hopCount) {
             hc = new HopCountBuilder()
                 .setMaxWdmHopCount(Uint8.valueOf(3))
+                .setMaxOtnHopCount(Uint8.valueOf(5))
                 .build();
         }
         Map<String, Exclude> excludeMap = initialiseExcludeMap();
@@ -157,6 +158,7 @@ public final class ConstraintsUtils {
         if (teMetric) {
             tem = new TEMetricBuilder()
                 .setMaxWdmTEMetric(Uint32.valueOf(8))
+                .setMaxOtnTEMetric(Uint32.valueOf(11))
                 .build();
         }
         Distance distance = null;