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;
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.");