X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=renderer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Frenderer%2Fprovisiondevice%2Ftasks%2FDeviceRenderingTask.java;h=9efefd1f7f49f8eeef0c34de9b1037f5ea34d93a;hb=e3438cad213946cd76a73219876487c30024dfae;hp=975b0435989ac38dfb583f0defa5239034b40e11;hpb=0779ad5796bb645690874959c9a891c42e2f7175;p=transportpce.git diff --git a/renderer/src/main/java/org/opendaylight/transportpce/renderer/provisiondevice/tasks/DeviceRenderingTask.java b/renderer/src/main/java/org/opendaylight/transportpce/renderer/provisiondevice/tasks/DeviceRenderingTask.java index 975b04359..9efefd1f7 100644 --- a/renderer/src/main/java/org/opendaylight/transportpce/renderer/provisiondevice/tasks/DeviceRenderingTask.java +++ b/renderer/src/main/java/org/opendaylight/transportpce/renderer/provisiondevice/tasks/DeviceRenderingTask.java @@ -7,14 +7,15 @@ */ package org.opendaylight.transportpce.renderer.provisiondevice.tasks; +import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; import org.opendaylight.transportpce.renderer.ServicePathInputData; import org.opendaylight.transportpce.renderer.provisiondevice.DeviceRendererService; import org.opendaylight.transportpce.renderer.provisiondevice.DeviceRenderingResult; import org.opendaylight.transportpce.renderer.provisiondevice.servicepath.ServicePathDirection; -import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.device.rev170228.ServicePathOutput; -import org.opendaylight.yang.gen.v1.http.org.transportpce.common.types.rev170907.olm.renderer.input.Nodes; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.device.rev200128.ServicePathOutput; +import org.opendaylight.yang.gen.v1.http.org.transportpce.common.types.rev200615.olm.renderer.input.Nodes; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -37,13 +38,13 @@ public class DeviceRenderingTask implements Callable { public DeviceRenderingResult call() throws Exception { ServicePathOutput output = this.deviceRenderer.setupServicePath(this.servicePathInputData.getServicePathInput(), this.direction); - if (! output.isSuccess()) { + if (!output.isSuccess()) { LOG.warn("Device rendering not successfully finished."); return DeviceRenderingResult.failed("Operation Failed"); } List olmList = this.servicePathInputData.getNodeLists().getOlmList(); LOG.info("Device rendering finished successfully."); - return DeviceRenderingResult.ok(olmList, output.getNodeInterface()); + return DeviceRenderingResult.ok(olmList, new ArrayList<>(output.nonnullNodeInterface().values())); } }