- private void readIncludeNodes(List<OrderedHops> listHops, PceConstraints constraints) {
- Collections.sort(listHops, ORDERED_HOP_COMPARATOR);
- for (int i = 0; i < listHops.size(); i++) {
- HopType hoptype = listHops.get(i).getHopType().getHopType();
-
- String hopt = hoptype.implementedInterface().getSimpleName();
- LOG.info("in readIncludeNodes next hop to include {}", hopt);
- switch (hopt) {
- case "Node":
- org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints
- .rev171017.ordered.constraints.sp.hop.type.hop.type.Node
- node = (org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing
- .constraints.rev171017.ordered.constraints.sp.hop.type.hop.type.Node) hoptype;
- constraints.setListToInclude(new PceConstraints.ResourcePair(PceConstraints.ResourceType.NODE,
- node.getNodeId()));
- break;
- case "SRLG":
- org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints
- .rev171017.ordered.constraints.sp.hop.type.hop.type.SRLG
- srlg = (org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing
- .constraints.rev171017.ordered.constraints.sp.hop.type.hop.type.SRLG) hoptype;
- constraints.setListToInclude(new PceConstraints.ResourcePair(PceConstraints.ResourceType.SRLG,
- srlg.getSRLG()));
- break;
- case "Clli":
- org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing.constraints
- .rev171017.ordered.constraints.sp.hop.type.hop.type.Clli
- clli = (org.opendaylight.yang.gen.v1.http.org.transportpce.b.c._interface.routing
- .constraints.rev171017.ordered.constraints.sp.hop.type.hop.type.Clli) hoptype;
- constraints.setListToInclude(new PceConstraints.ResourcePair(PceConstraints.ResourceType.CLLI,
- clli.getClli()));
- break;
- default:
- LOG.error("in readIncludeNodes unsupported include type {}", hopt);
- }
+ private void readCoRouting(CoRouting tmpcoRouting, PceConstraints constraints) {
+ if (tmpcoRouting == null) {
+ LOG.info("In readCoRoutingContrains: no CoRouting constraints.");
+ } else {
+ LOG.warn("CoRouting constraints handling not implemented yet");