Migrate renderer module to Aluminium
[transportpce.git] / renderer / src / main / java / org / opendaylight / transportpce / renderer / provisiondevice / tasks / OtnDeviceRenderingTask.java
index 238697dd2cbca898b52d6fc7b900c1753c74c7d3..5c9e930c3d63bc545b070881e4244885f3b2b7cb 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.transportpce.renderer.provisiondevice.tasks;
 
+import java.util.ArrayList;
 import java.util.concurrent.Callable;
 import org.opendaylight.transportpce.renderer.provisiondevice.OtnDeviceRendererService;
 import org.opendaylight.transportpce.renderer.provisiondevice.OtnDeviceRenderingResult;
@@ -34,7 +35,7 @@ public class OtnDeviceRenderingTask implements Callable<OtnDeviceRenderingResult
         OtnServicePathOutput output = this.otnDeviceRenderer.setupOtnServicePath(this.otnServicePathInput);
         if (Boolean.TRUE.equals(output.isSuccess())) {
             LOG.info("Device rendering finished successfully.");
-            return OtnDeviceRenderingResult.ok(output.getNodeInterface());
+            return OtnDeviceRenderingResult.ok(new ArrayList<>(output.nonnullNodeInterface().values()));
 
         } else { //false or null case
             LOG.warn("Device rendering not successfully finished.");