ServicePathInputBuilder servicePathInputBuilder = new ServicePathInputBuilder()
.setServiceName(serviceName)
.setOperation(Action.Create)
- .setNodes(nodeLists.getList())
+ .setNodes(nodeLists.getRendererNodeList())
.setWidth(new FrequencyGHz(GridConstant.WIDTH_40));
if (atoZDirection.getAToZWavelengthNumber() != null) {
servicePathInputBuilder
ServicePathInputBuilder servicePathInputBuilder = new ServicePathInputBuilder()
.setOperation(Action.Create)
.setServiceName(serviceName)
- .setNodes(nodeLists.getList())
+ .setNodes(nodeLists.getRendererNodeList())
.setWidth(new FrequencyGHz(GridConstant.WIDTH_40));
if (ztoADirection.getZToAWavelengthNumber() != null) {
servicePathInputBuilder
if (!asideToZside) {
nodeLists = getNodesListZtoA(pathDescription.getZToADirection().nonnullZToA().values().iterator());
}
- LOG.info("These are node-lists {}, {}", nodeLists.getList(), nodeLists.getOlmList());
- for (Nodes node: nodeLists.getList()) {
+ LOG.info("These are node-lists {}, {}", nodeLists.getRendererNodeList(), nodeLists.getOlmNodeList());
+ for (Nodes node: nodeLists.getRendererNodeList()) {
nodes.add(new org.opendaylight.yang.gen.v1.http.org.transportpce.common.types.rev210618.otn.renderer.nodes
.NodesBuilder()
.setNodeId(node.getNodeId())
public class NodeLists {
- private List<Nodes> olmList;
- private List<Nodes> list;
+ private List<Nodes> olmNodeList;
+ private List<Nodes> rendererNodelist;
public NodeLists(List<Nodes> olmList, List<Nodes> list) {
- this.olmList = olmList;
- this.list = list;
+ this.olmNodeList = olmList;
+ this.rendererNodelist = list;
}
- public List<Nodes> getOlmList() {
- return olmList;
+ public List<Nodes> getOlmNodeList() {
+ return olmNodeList;
}
- public List<Nodes> getList() {
- return list;
+ public List<Nodes> getRendererNodeList() {
+ return rendererNodelist;
}
}
case StringConstants.SERVICE_TYPE_400GE:
case StringConstants.SERVICE_TYPE_OTU4:
case StringConstants.SERVICE_TYPE_OTUC4:
- if (!createServicepathInput(input)) {
+ if (!manageServicePathCreation(input)) {
return ModelMappingUtils.createServiceImplResponse(ResponseCodes.RESPONSE_FAILED,
OPERATION_FAILED);
}
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
value = "UPM_UNCALLED_PRIVATE_METHOD",
justification = "call in call() method")
- private boolean createServicepathInput(ServiceImplementationRequestInput input) {
+ private boolean manageServicePathCreation(ServiceImplementationRequestInput input) {
ServicePathInputData servicePathInputDataAtoZ = ModelMappingUtils
.rendererCreateServiceInputAToZ(input.getServiceName(), input.getPathDescription());
ServicePathInputData servicePathInputDataZtoA = ModelMappingUtils
LOG.warn("Device rendering not successfully finished.");
return DeviceRenderingResult.failed("Operation Failed");
}
- List<Nodes> olmList = this.servicePathInputData.getNodeLists().getOlmList();
+ List<Nodes> olmList = this.servicePathInputData.getNodeLists().getOlmNodeList();
LOG.info("Device rendering finished successfully.");
return DeviceRenderingResult.ok(olmList, new ArrayList<>(output.nonnullNodeInterface().values()));
}