- .setCoRoutingOrGeneral(new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing
- .constraints.rev171017.constraints.sp.co.routing.or.general.CoRoutingBuilder()
- .setCoRouting(new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing
- .constraints.rev171017.constraints.sp.co.routing.or.general.co.routing.CoRoutingBuilder()
+ .setCoRoutingOrGeneral(
+ new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev220118
+ .constraints.sp.co.routing.or.general.CoRoutingBuilder()
+ .setCoRouting(
+ new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints
+ .rev220118.constraints.sp.co.routing.or.general.co.routing.CoRoutingBuilder()
+ .setExistingService(Arrays.asList("Some existing-service"))
+ .build())
+ .build())
+ .build(),
+ new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev220118.routing
+ .constraints.sp.SoftConstraintsBuilder()
+ .setCustomerCode(Arrays.asList("Some customer-code"))
+ .setCoRoutingOrGeneral(
+ new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev220118
+ .constraints.sp.co.routing.or.general.CoRoutingBuilder()
+ .setCoRouting(
+ new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints
+ .rev220118.constraints.sp.co.routing.or.general.co.routing.CoRoutingBuilder()
+ .setExistingService(Arrays.asList("Some existing-service"))
+ .build())
+ .build())
+ .build());
+
+ mappingConstraints.serviceToServicePathConstarints();
+ Assert.assertEquals(
+ new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev220118
+ .constraints.sp.co.routing.or.general.CoRoutingBuilder()
+ .setCoRouting(
+ new org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints.rev220118
+ .constraints.sp.co.routing.or.general.co.routing.CoRoutingBuilder()