+ if (rate.equals("1")) {
+ opuBuilder.setExpPayloadType(PayloadTypeDef.getDefaultInstance("07"))
+ .setPayloadType(PayloadTypeDef.getDefaultInstance("07"));
+ oduBuilder.setRate(ODU4.class);
+ logicalConnPoint += "-ODU4";
+ } else if (rate.equals("4")) {
+ opuBuilder.setExpPayloadType(PayloadTypeDef.getDefaultInstance("32"))
+ .setPayloadType(PayloadTypeDef.getDefaultInstance("32"));
+ oduBuilder.setRate(ODUflexCbr.class).setOduflexCbrService(ODUflexCbr400G.class);
+ logicalConnPoint += "-ODUFLEX";
+ }
+
+ // Build the OPU container to the ODU builder
+ oduBuilder.setOpu(opuBuilder.build());
+